org.opensourcephysics.drawing3d.utils
Interface ImplementingObject

All Known Implementing Classes:
Java3dAbstractTile, Java3dElement, Java3dElementArrow, Java3dElementBox, Java3dElementCone, Java3dElementCylinder, Java3dElementDisk, Java3dElementEllipsoid, Java3dElementImage, Java3dElementLight, Java3dElementObject, Java3dElementObject3DS, Java3dElementObjectVRML, Java3dElementPlane, Java3dElementPoints, Java3dElementPolygon, Java3dElementSegment, Java3dElementShape, Java3dElementSpring, Java3dElementSurface, Java3dElementTessellation, Java3dElementTetrahedron, Java3dElementText, Java3dElementTrail, Java3dGroup, SimpleAbstractTile, SimpleElement, SimpleElementArrow, SimpleElementBox, SimpleElementCone, SimpleElementCylinder, SimpleElementDisk, SimpleElementEllipsoid, SimpleElementImage, SimpleElementLight, SimpleElementObject, SimpleElementPlane, SimpleElementPoints, SimpleElementPolygon, SimpleElementSegment, SimpleElementShape, SimpleElementSpring, SimpleElementSurface, SimpleElementTessellation, SimpleElementTetrahedron, SimpleElementText, SimpleElementTrail, SimpleGroup

public interface ImplementingObject

Interface for an object that implements an Element under simple3d, Java3D, ...

Author:
Francisco Esquembre

Method Summary
 void addToScene()
          Efectively adds the element to the 3D scene.
 void processChanges(int _change, int _cumulativeChange)
          Process changes of the element
 void removeFromScene()
          Efectively removes the element from the 3D scene.
 void styleChanged(int _change)
          Applies any change required by a change in style
 

Method Detail

addToScene

void addToScene()
Efectively adds the element to the 3D scene. Required by Java 3D


removeFromScene

void removeFromScene()
Efectively removes the element from the 3D scene. Required by Java 3D


processChanges

void processChanges(int _change,
                    int _cumulativeChange)
Process changes of the element

Parameters:
_change - int the changes of this element
_cumulativeChange - int the cumulative changes, i.e. the changes of the element and those inherited from parent groups

styleChanged

void styleChanged(int _change)
Applies any change required by a change in style

Parameters:
_change - int indicates the change that took place