|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.aviatrix3d.SceneGraphObject org.j3d.aviatrix3d.NodeComponent org.j3d.aviatrix3d.PointAttributes
public class PointAttributes
Describes attributes used when rendering a point.
Points only have a two controllable attributes - the size and whether antialiasing should be available.
If point sprites are available, this class can be used to enable or
disable their use. Note that to use them completely, you also need to enable
the equivalent state with
TextureAttributes.setPointSpriteCoordEnabled(boolean)
Field Summary |
---|
Fields inherited from class org.j3d.aviatrix3d.NodeComponent |
---|
lastParent, liveCount, parentList |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
Fields inherited from interface org.j3d.aviatrix3d.rendering.AppearanceAttributeRenderable |
---|
ALPHA_ATTRIBUTE, BLEND_ATTRIBUTE, DEPTH_ATTRIBUTE, LINE_ATTRIBUTE, POINT_ATTRIBUTE, POLYGON_ATTRIBUTE, STENCIL_ATTRIBUTE |
Constructor Summary | |
---|---|
PointAttributes()
Constructs a attribute set with default values of 1.0 point size and no antialiasing. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
int |
compareTo(PointAttributes pa)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object o)
Compare this object for equality to the given object. |
boolean |
equals(PointAttributes pa)
Compares this object with the specified object to check for equivalence. |
void |
getAttenuationFactors(float[] factor)
Attenuation factor values. |
int |
getAttributeType()
Get the type this visual attribute represents. |
float |
getFadeThresholdSize()
Get the current point size in use. |
float |
getMaxPointSize()
Get the current maximum point size in use. |
float |
getMinPointSize()
Get the current minimum point size in use. |
float |
getPointSize()
Get the current point size in use. |
boolean |
isAntiAliased()
Check the state of the antialiased flag setting for this geometry. |
boolean |
isPointSpriteAllowed()
Convenience method to check if this code has detected the prescense of multitexture extensions. |
boolean |
isPointSpriteEnabled()
Get the current state of the whether the point sprites coordinates are enabled. |
void |
postRender(javax.media.opengl.GL gl)
Restore all openGL state to the given drawable. |
void |
render(javax.media.opengl.GL gl)
Issue ogl commands needed for this component |
void |
setAntiAliased(boolean state)
Set the antialiased flag state. |
void |
setAttenuationFactors(float a,
float b,
float c)
Set the blend colour to use for this texture. |
void |
setFadeThresholdSize(float size)
Set the minimum threshold size in pixels for when multisampling is enabled. |
void |
setMaxPointSize(float size)
Set the size in pixels of the point size. |
void |
setMinPointSize(float size)
Set the size in pixels of the point size. |
void |
setPointSize(float size)
Set the size in pixels of the point size. |
void |
setPointSpriteEnabled(boolean state)
Set the point sprite enabled flag. |
Methods inherited from class org.j3d.aviatrix3d.NodeComponent |
---|
addParent, getParents, numParents, removeParent |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
checkForCyclicChild, checkForCyclicParent, dataChanged, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setLive, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PointAttributes()
Method Detail |
---|
public int getAttributeType()
getAttributeType
in interface AppearanceAttributeRenderable
public void render(javax.media.opengl.GL gl)
render
in interface ObjectRenderable
gl
- The gl context to draw withpublic void postRender(javax.media.opengl.GL gl)
postRender
in interface ObjectRenderable
gl
- The gl context to draw withpublic int compareTo(java.lang.Object o) throws java.lang.ClassCastException
compareTo
in interface java.lang.Comparable
o
- The objec to be compared
java.lang.ClassCastException
- The specified object's type prevents it from
being compared to this Objectpublic boolean equals(java.lang.Object o)
equals
in interface Renderable
equals
in class java.lang.Object
o
- The object to be compared
public void setAntiAliased(boolean state) throws InvalidWriteTimingException
state
- True to use antialiasing, false to turn it off
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener data changed callback methodpublic boolean isAntiAliased()
public void setPointSize(float size) throws InvalidWriteTimingException
size
- The size of the line in pixels
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener data changed callback method
java.lang.IllegalArgumentException
- Point size was non-positivepublic float getPointSize()
public void setFadeThresholdSize(float size) throws InvalidWriteTimingException
size
- The size of the line in pixels
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener data changed callback method
java.lang.IllegalArgumentException
- Point size was non-positivepublic float getFadeThresholdSize()
public void setMinPointSize(float size) throws InvalidWriteTimingException
size
- The size of the line in pixels
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener data changed callback method
java.lang.IllegalArgumentException
- Point size was non-positivepublic float getMinPointSize()
public void setMaxPointSize(float size) throws InvalidWriteTimingException
size
- The size of the line in pixels
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener data changed callback method
java.lang.IllegalArgumentException
- Point size was non-positivepublic float getMaxPointSize()
public void setAttenuationFactors(float a, float b, float c) throws InvalidWriteTimingException
a
- The first param of the attenuation functionb
- The second param of the attenuation functionc
- The third param of the attenuation function
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener data changed callback methodpublic void getAttenuationFactors(float[] factor)
factor
- An array, length 3 to copy the factors intopublic void setPointSpriteEnabled(boolean state) throws InvalidWriteTimingException
TextureAttributes.setPointSpriteCoordEnabled(boolean)
state
- true if this texture unit should enable point sprite
coordinates. False to disable
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener data changed callback methodpublic boolean isPointSpriteEnabled()
public boolean isPointSpriteAllowed()
public int compareTo(PointAttributes pa)
pa
- The attributes instance to be compared
public boolean equals(PointAttributes pa)
pa
- The attributes instance to be compared
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |