public abstract class J3DSurfaceDrawable extends J3DRemovableDrawable
displayProperties, m_shape, m_transformGroup
m_pickCanvas, m_pickResult, m_rebuildNeeded, PICKING_TOLERANCE
m_properties
Constructor and Description |
---|
J3DSurfaceDrawable()
Constructs the drawable.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createShape(DisplayProperties properties)
Initializes the part of the scenegraph for which this drawable is responsible.
|
protected abstract javax.media.j3d.Geometry |
getGeometry()
This method is implemented by the subclass to create the specific geometry.
|
boolean |
isSelectedState() |
void |
removeSelectedState()
This method is called by the system, if another drawable after this drawable was selected.
|
void |
render(DisplayProperties props)
Additionally checks, whether the display properties have changed.
|
void |
setSelectedState()
This method is called by the system, if this drawable is selected.
|
getDisplayProperties, getShape, removeShape, resetShape, setDisplayProperties, setTransformGroup
draw, draw, drawObject, drawSelection, generateNormal, generateNormal, getBoundingBox, getCanvas, getDeformation, getPosition, getTrafoFromOrigin, isAtScreenLocation, isEqual, isFilled, MMDoubleTupel2Point3f, rotate, setCanvas, setDeformation, setPosition, setTrafoFromOrigin, translate, translate, updateFinished
draw, getDrawableProperties, isVisible, setVisible
public J3DSurfaceDrawable()
J3DRemovableDrawable.getShape(net.mumie.mathletfactory.display.DisplayProperties)
has been called for the first time.protected void createShape(DisplayProperties properties)
createShape
in class J3DRemovableDrawable
J3DRemovableDrawable.createShape(DisplayProperties)
protected abstract javax.media.j3d.Geometry getGeometry()
public void setSelectedState()
J3DDrawable
setSelectedState
in class J3DDrawable
J3DDrawable.removeSelectedState()
public void removeSelectedState()
J3DDrawable
removeSelectedState
in class J3DDrawable
J3DDrawable.setSelectedState()
public boolean isSelectedState()
public void render(DisplayProperties props)
J3DRemovableDrawable
render
in class J3DRemovableDrawable
Further documentation and examples can be found under www.mathletfactory.de.