61

Building 3D content with a scene graph
Controlling access capabilities

  • Set capabilities while you build your content
    Shape3D myShape = new Shape3D( myGeom, myAppear );
    myShape.setCapability( Shape3D.ALLOW_APPEARANCE_WRITE );

  • After a node is live, change attributes that have enabled capabilities
    myShape.setAppearance( newAppear );  // allowed

  • But you cannot change attributes for which you do not have capabilities set
    myShape.setGeometry( newGeom );  // error!