|
||||||||||
| 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.scenegraph.primitives.Points
public class Points
This Shape represents a set of points in 3D-space. Points are always drawn as real points on the screen.
| Field Summary | |
|---|---|
float |
minBoundsRadius
|
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, parent, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
Points(org.openmali.vecmath2.Tuple3f[] points,
float size,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color)
Creates a new Points instance |
|
Points(org.openmali.vecmath2.Tuple3f[] points,
float size,
org.openmali.vecmath2.Colorf color)
Creates a new Points instance |
|
Points(org.openmali.vecmath2.Tuple3f point,
float size,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color)
Creates a new Points instance |
|
Points(org.openmali.vecmath2.Tuple3f point,
float size,
org.openmali.vecmath2.Colorf color)
Creates a new Points instance |
|
| Method Summary | |
|---|---|
org.openmali.vecmath2.Colorf |
getColor()
|
org.openmali.vecmath2.Tuple3f[] |
getCoordinates()
|
PointArray |
getGeometry()
|
org.openmali.vecmath2.Tuple3f |
getPoint()
|
float |
getSize()
|
boolean |
isAntialiasingEnabled()
|
void |
setAntialiasingEnabled(boolean enabled)
Sets the Points' antialiasing flag to enabled |
void |
setColor(org.openmali.vecmath2.Colorf color)
Sets the Point's color |
void |
setCoordinates(org.openmali.vecmath2.Tuple3f point)
Sets this Point's coordinates |
void |
setCoordinates(org.openmali.vecmath2.Tuple3f[] points)
Sets this Points' coordinates |
void |
setSize(float size)
Sets the Points' size in pixels |
protected void |
updateBoundsCheap(boolean onlyDirty,
boolean childrenToo,
boolean parentToo,
boolean onlyWorld)
Update bounds sets the bounds and virutal world bounds of all nodes recursively. |
| Methods inherited from class org.xith3d.scenegraph.Shape3D |
|---|
absorbDetails, freeOpenGLResources, getAppearance, getAppearance, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setGeometry, setIsShadowReceiver, setLive, setModListener, setVisible, sharedCopy, sharedCopy, traverse, updateBounds, 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, 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 float minBoundsRadius
| Constructor Detail |
|---|
public Points(org.openmali.vecmath2.Tuple3f[] points,
float size,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color)
points - the points' coordinatessize - the points' size in pixelsantiAliasing - the value of the points' antialiasing flagcolor - the points' colorPointAttributes
public Points(org.openmali.vecmath2.Tuple3f[] points,
float size,
org.openmali.vecmath2.Colorf color)
points - the points' coordinatessize - the points' size in pixelscolor - the points' colorPointAttributes
public Points(org.openmali.vecmath2.Tuple3f point,
float size,
boolean antiAliasing,
org.openmali.vecmath2.Colorf color)
point - the point's coordinatessize - the points' size in pixelsantiAliasing - the value of the points' antialiasing flagcolor - the points' colorPointAttributes
public Points(org.openmali.vecmath2.Tuple3f point,
float size,
org.openmali.vecmath2.Colorf color)
point - the point's coordinatessize - the points' size in pixelscolor - the points' colorPointAttributes| Method Detail |
|---|
public PointArray getGeometry()
getGeometry in class Shape3D
protected void updateBoundsCheap(boolean onlyDirty,
boolean childrenToo,
boolean parentToo,
boolean onlyWorld)
updateBoundsCheap in class Shape3DonlyDirty - 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 setCoordinates(org.openmali.vecmath2.Tuple3f[] points)
points - a Tuple3f-array containing the points' coordinatespublic void setCoordinates(org.openmali.vecmath2.Tuple3f point)
point - a Tuple3f containing the point's coordinatespublic org.openmali.vecmath2.Tuple3f[] getCoordinates()
public org.openmali.vecmath2.Tuple3f getPoint()
public void setColor(org.openmali.vecmath2.Colorf color)
color - the new colorpublic org.openmali.vecmath2.Colorf getColor()
public void setSize(float size)
size - the new point-size in pixelspublic float getSize()
public void setAntialiasingEnabled(boolean enabled)
enabled - public boolean isAntialiasingEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||