|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.Leaf
org.xith3d.scenegraph.Shape3D
public class Shape3D
Shape3D is a class for all scene graph nodes that have no children. Leaf nodes specify lights, geometry, sounds, etc.
| Field Summary |
|---|
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
Shape3D()
Constructs a new Shape3D object with a null geometry component and a null appearance component. |
|
Shape3D(Geometry geometry)
Constructs a new Shape3D object with specified geometry component and a null appearance component. |
|
Shape3D(Geometry geometry,
Appearance appearance)
Constructs a new Shape3D object with specified geometry and appearance components. |
|
| Method Summary | |
|---|---|
void |
absorbDetails(Node node)
Turns the receiver into a shared copy of the node parameter. |
protected void |
copy(Shape3D dest)
|
void |
freeOpenGLResources(CanvasPeer canvasPeer)
This method frees OpenGL resources (names) for all Nodes in the traversal of this Node(-Group). |
Appearance |
getAppearance()
|
Appearance |
getAppearance(boolean forceExistance)
Returns this shape's Appearance, if it exists. |
java.lang.Comparable |
getCustomComparable()
Returns the custom comparable object. |
Geometry |
getGeometry()
|
boolean |
isBumpMappingEnabled()
|
boolean |
isShadowReceiver()
|
boolean |
isVisible()
Checks, whether this Shape3D is visible. |
Appearance |
newAppearance()
Creates a new appearance for this Shape3D and returns it. |
protected Shape3D |
newInstance()
|
void |
setAppearance(Appearance appearance)
Sets the appearance for this object. |
void |
setBounds(org.openmali.spatial.bounds.Bounds bounds)
Sets the bounds for this object. |
void |
setBumpMappingEnabled(boolean enabled,
java.lang.String normalMapTex)
|
void |
setBumpMappingEnabled(boolean enabled,
Texture normalMapTex)
|
void |
setCustomComparable(java.lang.Comparable customComparable)
Sets the custom comparable object. |
void |
setGeometry(Geometry geometry)
Sets the geometry for this object. |
void |
setIsShadowReceiver(boolean isSR)
|
void |
setModListener(ScenegraphModificationsListener modListener)
|
void |
setVisible(boolean visible)
Sets this Shape3D is visible or invisible. |
Shape3D |
sharedCopy()
Creates a shared copy of this Node. |
Shape3D |
sharedCopy(CopyListener listener)
Creates a shared copy of this Node. |
boolean |
traverse(DetailedTraversalCallback callback)
Traverses the scenegraph from this node on. |
void |
updateBounds(boolean onlyDirty)
Update bounds sets the bounds and virutal world bounds of all nodes recursively. |
protected void |
updateBoundsCheap(boolean onlyDirty,
boolean childrenToo,
boolean parentToo,
boolean onlyWorld)
Update bounds sets the bounds and virutal world bounds of all nodes recursively. |
void |
updateWorldTransform()
If this is a TransformGroupm then it will multiply the transform against the parent transform and store it into the world-transform matrix. |
boolean |
verifyAppChange(OpenGLCapabilities glCaps)
|
| Methods inherited from class org.xith3d.scenegraph.Leaf |
|---|
dump, getPickHost, setPickHost |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Shape3D()
public Shape3D(Geometry geometry)
public Shape3D(Geometry geometry,
Appearance appearance)
| Method Detail |
|---|
public void setModListener(ScenegraphModificationsListener modListener)
setModListener in class Nodepublic void setVisible(boolean visible)
public final boolean isVisible()
public final void setBounds(org.openmali.spatial.bounds.Bounds bounds)
setBounds in class Node
protected void updateBoundsCheap(boolean onlyDirty,
boolean childrenToo,
boolean parentToo,
boolean onlyWorld)
updateBoundsCheap in class NodeonlyDirty - Only update those nodes which have been marked as dirty.childrenToo - if false, the children bounds are not updatedparentToo - if false, the parent Node will not be updatedonlyWorld - if true, only the vworld bounds are updatedpublic void updateBounds(boolean onlyDirty)
updateBounds in class NodeonlyDirty - Only update those nodes which have been marked as dirty.public final void updateWorldTransform()
updateWorldTransform in class Nodepublic void setGeometry(Geometry geometry)
geometry - The new geometrypublic Geometry getGeometry()
public final void setAppearance(Appearance appearance)
public final Appearance getAppearance()
public Appearance getAppearance(boolean forceExistance)
forceExistance - if true, a new Appearance is created and attached,
if it doesn't already exist.
public Appearance newAppearance()
public final boolean verifyAppChange(OpenGLCapabilities glCaps)
public void setCustomComparable(java.lang.Comparable customComparable)
customComparable - public final java.lang.Comparable getCustomComparable()
public final void setBumpMappingEnabled(boolean enabled,
Texture normalMapTex)
public final void setBumpMappingEnabled(boolean enabled,
java.lang.String normalMapTex)
public final boolean isBumpMappingEnabled()
public final void setIsShadowReceiver(boolean isSR)
public final boolean isShadowReceiver()
protected void copy(Shape3D dest)
protected Shape3D newInstance()
sharedCopy(CopyListener)public Shape3D sharedCopy(CopyListener listener)
sharedCopy in class NodeNode.absorbDetails(Node)public Shape3D sharedCopy()
sharedCopy in class NodeNode.absorbDetails(Node)public void absorbDetails(Node node)
absorbDetails in class Nodenode - the node to copy.Node.sharedCopy()public void freeOpenGLResources(CanvasPeer canvasPeer)
freeOpenGLResources in class Nodepublic boolean traverse(DetailedTraversalCallback callback)
traverse in class Leafcallback - the listener is notified of any traversed Node on the way
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||