org.xith3d.scenegraph.primitives
Class Points

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.Node
          extended by org.xith3d.scenegraph.Leaf
              extended by org.xith3d.scenegraph.Shape3D
                  extended by org.xith3d.scenegraph.primitives.Points
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.spatial.SpatialNode

public class Points
extends Shape3D

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, 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, copy, freeOpenGLResources, getAppearance, getAppearance, getCustomComparable, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, newInstance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setCustomComparable, setGeometry, setIsShadowReceiver, 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.Node
cloneNode, detach, duplicateNode, freeOpenGLResources, getBounds, getBoundsAutoCompute, getBoundsType, getBoundsTypeHint, getDefaultPickable, getIndentString, getInheritedNodeAttributes, getModListener, getOrderedChild, getOrderedState, getParent, getRoot, getShadowAttachment, getShowBounds, getTransformGroup, getTreeCell, getWorldBounds, getWorldTransform, getWorldTransform, isBillboard, isIgnoreBounds, isOccluder, isPickable, isRenderable, isUpdatableNode, mergeInheritedClipper, mergeInheritedNodes, mergeInheritedScissorRect, popGlobalIgnoreBounds, printBounds, pushGlobalIgnoreBounds, setBoundsAutoCompute, setBoundsDirty, setBoundsDirtyUpward, setBoundsTypeHint, setDefaultPickable, setGlobalIgnoreBounds, setIgnoreBounds, setIsOccluder, setOrderedChild, setParent, setPickable, setPickableRecursive, setPickableRecursive, setRenderable, setShadowAttachment, setShowBounds, setTransformGroup, setTreeCell, traverse, unmergeInheritedFog, unmergeInheritedLight, unmergeInheritedNodes, updateOrderedChild, updateTransformGroup
 
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

minBoundsRadius

public float minBoundsRadius
Constructor Detail

Points

public Points(org.openmali.vecmath2.Tuple3f[] points,
              float size,
              boolean antiAliasing,
              org.openmali.vecmath2.Colorf color)
Creates a new Points instance

Parameters:
points - the points' coordinates
size - the points' size in pixels
antiAliasing - the value of the points' antialiasing flag
color - the points' color
See Also:
PointAttributes

Points

public Points(org.openmali.vecmath2.Tuple3f[] points,
              float size,
              org.openmali.vecmath2.Colorf color)
Creates a new Points instance

Parameters:
points - the points' coordinates
size - the points' size in pixels
color - the points' color
See Also:
PointAttributes

Points

public Points(org.openmali.vecmath2.Tuple3f point,
              float size,
              boolean antiAliasing,
              org.openmali.vecmath2.Colorf color)
Creates a new Points instance

Parameters:
point - the point's coordinates
size - the points' size in pixels
antiAliasing - the value of the points' antialiasing flag
color - the points' color
See Also:
PointAttributes

Points

public Points(org.openmali.vecmath2.Tuple3f point,
              float size,
              org.openmali.vecmath2.Colorf color)
Creates a new Points instance

Parameters:
point - the point's coordinates
size - the points' size in pixels
color - the points' color
See Also:
PointAttributes
Method Detail

getGeometry

public PointArray getGeometry()

Overrides:
getGeometry in class Shape3D
Returns:
the Geometry for this object.

updateBoundsCheap

protected void updateBoundsCheap(boolean onlyDirty,
                                 boolean childrenToo,
                                 boolean parentToo,
                                 boolean onlyWorld)
Update bounds sets the bounds and virutal world bounds of all nodes recursively.

Overrides:
updateBoundsCheap in class Shape3D
Parameters:
onlyDirty - Only update those nodes which have been marked as dirty.
childrenToo - if false, the children bounds are not updated
parentToo - if false, the parent Node will not be updated
onlyWorld - if true, only the vworld bounds are updated

setCoordinates

public void setCoordinates(org.openmali.vecmath2.Tuple3f[] points)
Sets this Points' coordinates

Parameters:
points - a Tuple3f-array containing the points' coordinates

setCoordinates

public void setCoordinates(org.openmali.vecmath2.Tuple3f point)
Sets this Point's coordinates

Parameters:
point - a Tuple3f containing the point's coordinates

getCoordinates

public org.openmali.vecmath2.Tuple3f[] getCoordinates()
Returns:
this Line's coordinates

getPoint

public org.openmali.vecmath2.Tuple3f getPoint()
Returns:
this Line's coordinates

setColor

public void setColor(org.openmali.vecmath2.Colorf color)
Sets the Point's color

Parameters:
color - the new color

getColor

public org.openmali.vecmath2.Colorf getColor()
Returns:
the Line's color

setSize

public void setSize(float size)
Sets the Points' size in pixels

Parameters:
size - the new point-size in pixels

getSize

public float getSize()
Returns:
the Points' size in pixels

setAntialiasingEnabled

public void setAntialiasingEnabled(boolean enabled)
Sets the Points' antialiasing flag to enabled

Parameters:
enabled -

isAntialiasingEnabled

public boolean isAntialiasingEnabled()
Returns:
the value of the Points' antialiasing flag