60

Building 3D content with a scene graph
Controlling access capabilities

  • Each node has its own read and write capabilities
  • Usually a separate capability for each attribute of a node
  • Node's also inherit parent class capabilities
  • Each capability has an upper-case name
  • For example, Shape3D capabilities include:
  • ALLOW_APPEARANCE_READ
  • ALLOW_APPEARANCE_WRITE
  • ALLOW_GEOMETRY_READ
  • ALLOW_GEOMETRY_WRITE
  • ALLOW_COLLISION_BOUNDS_READ
  • ALLOW_COLLISION_BOUNDS_WRITE
  • Plus capabilities from the parent Node class, including:
  • ALLOW_BOUNDS_READ
  • ALLOW_BOUNDS_WRITE
  • ALLOW_PICKABLE_READ
  • ALLOW_PICKABLE_WRITE
  • . . . and others