|
||||||||||
| 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
org.xith3d.utility.geometry.NormalsVisualizer
public class NormalsVisualizer
This class visualizes the normals of a Shape3D's Geometry.
It must be placed into the same TransformGroup as the opbject Shape3D.
| Field Summary | |
|---|---|
static org.openmali.vecmath2.Colorf |
DEFAULT_NORMAL_COLOR
|
| 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 | |
|---|---|
NormalsVisualizer(Shape3D object)
Create a new NormalsVisualizer for the given object Shape3D. |
|
NormalsVisualizer(Shape3D object,
org.openmali.vecmath2.Colorf color)
Create a new NormalsVisualizer for the given object Shape3D. |
|
NormalsVisualizer(Shape3D object,
org.openmali.vecmath2.Colorf color,
float normalScale)
Create a new NormalsVisualizer for the given object Shape3D. |
|
NormalsVisualizer(Shape3D object,
float normalScale)
Create a new NormalsVisualizer for the given object Shape3D. |
|
| Method Summary | |
|---|---|
LineArray |
getGeometry()
|
float |
getNormalScale()
|
void |
setColor(org.openmali.vecmath2.Colorf color)
Sets the color for the normals lines. |
void |
setNormalScale(float scale)
Sets the scale factor for the visualized normals. |
void |
update()
Updates the normals lines in this Shape's LineArray. |
| Methods inherited from class org.xith3d.scenegraph.Shape3D |
|---|
absorbDetails, copy, freeOpenGLResources, getAppearance, getAppearance, getCustomComparable, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, newInstance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setCustomComparable, setGeometry, setIsShadowReceiver, setModListener, setVisible, sharedCopy, sharedCopy, traverse, updateBounds, updateBoundsCheap, updateWorldTransform, verifyAppChange |
| 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 |
| Field Detail |
|---|
public static final org.openmali.vecmath2.Colorf DEFAULT_NORMAL_COLOR
| Constructor Detail |
|---|
public NormalsVisualizer(Shape3D object,
org.openmali.vecmath2.Colorf color,
float normalScale)
update().
object - the object Shape3Dcolor - normalScale -
public NormalsVisualizer(Shape3D object,
org.openmali.vecmath2.Colorf color)
update().
object - the object Shape3Dcolor -
public NormalsVisualizer(Shape3D object,
float normalScale)
update().
object - the object Shape3DnormalScale - public NormalsVisualizer(Shape3D object)
update().
object - the object Shape3D| Method Detail |
|---|
public LineArray getGeometry()
getGeometry in class Shape3Dpublic void setNormalScale(float scale)
scale - public float getNormalScale()
public void update()
public void setColor(org.openmali.vecmath2.Colorf color)
color -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||