|
Aviatrix3D 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.NodeComponent
org.j3d.aviatrix3d.PointAttributes
Describes attributes used when rendering a point.
Points only have a two controllable attributes - the size and whether antialiasing should be available.
| Field Summary |
| Fields inherited from class org.j3d.aviatrix3d.NodeComponent |
lastParent, liveCount, parentList |
| Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, LISTENER_SET_NOT_LIVE_MESSAGE, updateHandler, WRITE_TIMING_MSG |
| 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. |
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. |
void |
postRender(net.java.games.jogl.GL gl,
net.java.games.jogl.GLU glu)
Restore all openGL state to the given drawable. |
void |
render(net.java.games.jogl.GL gl,
net.java.games.jogl.GLU glu)
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. |
| Methods inherited from class org.j3d.aviatrix3d.NodeComponent |
addParent, getParents, hasChanged, numParents, removeParent |
| Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
checkForCyclicChild, checkForCyclicParent, dataChanged, 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 void render(net.java.games.jogl.GL gl,
net.java.games.jogl.GLU glu)
render in interface RenderableObjectgl - The gl context to draw withglu - The utility context to draw with
public void postRender(net.java.games.jogl.GL gl,
net.java.games.jogl.GLU glu)
postRender in interface RenderableObjectgl - The gl context to draw withglu - The utility context to draw with
public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
compareTo in interface java.lang.Comparableo - 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)
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 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 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 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 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 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 callback methodpublic void getAttenuationFactors(float[] factor)
factor - An array, length 3 to copy the factors intopublic int compareTo(PointAttributes pa)
pa - The attributes instance to be compared
public boolean equals(PointAttributes pa)
pa - The attributes instance to be compared
|
Aviatrix3D 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||