185

Using special-purpose groups
Creating shared groups

  • SharedGroup extends Group to create a group of shapes that can be shared (used multiple times throughout a scene graph)
  • It contains shapes, like other groups
  • It is never added into the scene graph directly
  • It is referenced by one or more Link leaf nodes
  • Changes to a SharedGroup affect all references to it

  • Can be compiled prior to referencing it from a Link node