maspack.render
Class RenderProps

java.lang.Object
  extended by maspack.render.RenderProps
All Implemented Interfaces:
java.lang.Cloneable, CompositeProperty, HasProperties, Clonable, Scannable
Direct Known Subclasses:
FaceRenderProps, LineEdgeRenderProps, LineFaceRenderProps, LineRenderProps, MeshRenderProps, PointEdgeRenderProps, PointFaceRenderProps, PointLineRenderProps, PointRenderProps

public class RenderProps
extends java.lang.Object
implements CompositeProperty, Scannable, Clonable


Nested Class Summary
static class RenderProps.Faces
           
static class RenderProps.LineStyle
           
static class RenderProps.PointStyle
           
static class RenderProps.Props
           
static class RenderProps.Shading
           
 
Field Summary
static PropertyList myProps
           
 
Constructor Summary
RenderProps()
           
RenderProps(RenderProps props)
           
 
Method Summary
 int allocEdgeDisplayList(javax.media.opengl.GL2 gl)
           
 int allocMeshDisplayList(javax.media.opengl.GL2 gl)
           
 int allocSphereDisplayList(javax.media.opengl.GL2 gl)
           
 int allocTaperedEllipsoidDisplayList(javax.media.opengl.GL2 gl)
           
 void clearAllDisplayLists()
           
 void clearEdgeDisplayList()
           
 void clearMeshDisplayList()
           
 void clearSphereDisplayList()
           
 void clearTaperedEllipsoidDisplayList()
           
 RenderProps clone()
          Returns a clone of this composite property.
 RenderProps copy()
           
static RenderProps createAndInitRenderProps(HasRenderProps host, RenderProps props)
          Creates a set of render properties and initializes for use with the specified host
static RenderProps createFaceProps(HasProperties host)
          Creates a new FaceRenderProps.
static RenderProps createLineEdgeProps(HasProperties host)
          Creates a new LineEdgeRenderProps.
static RenderProps createLineFaceProps(HasProperties host)
          Creates a new LineFaceRenderProps.
static RenderProps createLineProps(HasProperties host)
          Creates a new LineRenderProps.
static RenderProps createMeshProps(HasProperties host)
          Creates a new MeshRenderProps.
static RenderProps createPointFaceProps(HasProperties host)
          Creates a new PointFaceRenderProps.
static RenderProps createPointLineProps(HasProperties host)
          Creates a new PointLineRenderProps.
static RenderProps createPointProps(HasProperties host)
          Creates a new PointRenderProps.
static RenderProps createRenderProps(HasProperties host)
          Creates a new RenderProps.
 void dispose()
           
 boolean equals(java.lang.Object obj)
           
 boolean equals(RenderProps r)
           
static boolean equals(RenderProps r1, RenderProps r2)
           
 PropertyList getAllPropertyInfo()
          Returns a list giving static information about all properties exported by this object.
 double getAlpha()
           
 PropertyMode getAlphaMode()
           
 java.awt.Color getBackColor()
           
 void getBackColor(float[] color)
           
 java.awt.Color getBackColorAmbient()
           
 void getBackColorAmbient(float[] color)
           
 float[] getBackColorAmbientArray()
           
 PropertyMode getBackColorAmbientMode()
           
 float[] getBackColorArray()
           
 java.awt.Color getBackColorDiffuse()
           
 void getBackColorDiffuse(float[] color)
           
 float[] getBackColorDiffuseArray()
           
 PropertyMode getBackColorDiffuseMode()
           
 java.awt.Color getBackColorEmission()
           
 void getBackColorEmission(float[] color)
           
 float[] getBackColorEmissionArray()
           
 PropertyMode getBackColorEmissionMode()
           
 PropertyMode getBackColorMode()
           
 java.awt.Color getBackColorSpecular()
           
 void getBackColorSpecular(float[] color)
           
 float[] getBackColorSpecularArray()
           
 PropertyMode getBackColorSpecularMode()
           
 Material getBackMaterial()
           
 boolean getDrawEdges()
           
 PropertyMode getDrawEdgesMode()
           
 java.awt.Color getEdgeColor()
           
 void getEdgeColor(float[] color)
           
 float[] getEdgeColorArray()
           
 PropertyMode getEdgeColorMode()
           
 int getEdgeDisplayList()
           
 float[] getEdgeOrLineColorArray()
           
 int getEdgeWidth()
           
 PropertyMode getEdgeWidthMode()
           
 java.awt.Color getFaceColor()
           
 void getFaceColor(float[] color)
           
 java.awt.Color getFaceColorAmbient()
           
 void getFaceColorAmbient(float[] color)
           
 float[] getFaceColorAmbientArray()
           
 PropertyMode getFaceColorAmbientMode()
           
 float[] getFaceColorArray()
           
 java.awt.Color getFaceColorDiffuse()
           
 void getFaceColorDiffuse(float[] color)
           
 float[] getFaceColorDiffuseArray()
           
 PropertyMode getFaceColorDiffuseMode()
           
 java.awt.Color getFaceColorEmission()
           
 void getFaceColorEmission(float[] color)
           
 float[] getFaceColorEmissionArray()
           
 PropertyMode getFaceColorEmissionMode()
           
 PropertyMode getFaceColorMode()
           
 java.awt.Color getFaceColorSpecular()
           
 void getFaceColorSpecular(float[] color)
           
 float[] getFaceColorSpecularArray()
           
 PropertyMode getFaceColorSpecularMode()
           
 Material getFaceMaterial()
           
 RenderProps.Faces getFaceStyle()
           
 PropertyMode getFaceStyleMode()
           
 java.awt.Color getLineColor()
           
 void getLineColor(float[] color)
           
 java.awt.Color getLineColorAmbient()
           
 void getLineColorAmbient(float[] color)
           
 float[] getLineColorAmbientArray()
           
 PropertyMode getLineColorAmbientMode()
           
 float[] getLineColorArray()
           
 java.awt.Color getLineColorDiffuse()
           
 void getLineColorDiffuse(float[] color)
           
 float[] getLineColorDiffuseArray()
           
 PropertyMode getLineColorDiffuseMode()
           
 java.awt.Color getLineColorEmission()
           
 void getLineColorEmission(float[] color)
           
 float[] getLineColorEmissionArray()
           
 PropertyMode getLineColorEmissionMode()
           
 PropertyMode getLineColorMode()
           
 java.awt.Color getLineColorSpecular()
           
 void getLineColorSpecular(float[] color)
           
 float[] getLineColorSpecularArray()
           
 PropertyMode getLineColorSpecularMode()
           
 Material getLineMaterial()
           
 double getLineRadius()
           
 PropertyMode getLineRadiusMode()
           
 int getLineSlices()
           
 PropertyMode getLineSlicesMode()
           
 RenderProps.LineStyle getLineStyle()
           
 PropertyMode getLineStyleMode()
           
 int getLineWidth()
           
 PropertyMode getLineWidthMode()
           
 int getMeshDisplayList()
           
 java.awt.Color getPointColor()
           
 void getPointColor(float[] color)
           
 java.awt.Color getPointColorAmbient()
           
 void getPointColorAmbient(float[] color)
           
 float[] getPointColorAmbientArray()
           
 PropertyMode getPointColorAmbientMode()
           
 float[] getPointColorArray()
           
 java.awt.Color getPointColorDiffuse()
           
 void getPointColorDiffuse(float[] color)
           
 float[] getPointColorDiffuseArray()
           
 PropertyMode getPointColorDiffuseMode()
           
 java.awt.Color getPointColorEmission()
           
 void getPointColorEmission(float[] color)
           
 float[] getPointColorEmissionArray()
           
 PropertyMode getPointColorEmissionMode()
           
 PropertyMode getPointColorMode()
           
 java.awt.Color getPointColorSpecular()
           
 void getPointColorSpecular(float[] color)
           
 float[] getPointColorSpecularArray()
           
 PropertyMode getPointColorSpecularMode()
           
 Material getPointMaterial()
           
 double getPointRadius()
           
 PropertyMode getPointRadiusMode()
           
 int getPointSize()
           
 PropertyMode getPointSizeMode()
           
 int getPointSlices()
           
 PropertyMode getPointSlicesMode()
           
 RenderProps.PointStyle getPointStyle()
           
 PropertyMode getPointStyleMode()
           
 Property getProperty(java.lang.String name)
          Returns a property associated with a specified path name.
 HasProperties getPropertyHost()
          Should be either HierarchyNode or HasProperties
 PropertyInfo getPropertyInfo()
          If this object is a property, returns the corresponding information
 RenderProps.Shading getShading()
           
 PropertyMode getShadingMode()
           
 float getShininess()
           
 PropertyMode getShininessMode()
           
 int getSphereDisplayList(javax.media.opengl.GL2 gl)
           
 int getTaperedEllipsoidDisplayList(javax.media.opengl.GL2 gl)
           
 TextureProps getTextureProps()
           
 PropertyMode getVisibleMode()
           
 int getZOrder()
           
 PropertyMode getZOrderMode()
           
 boolean isTransparent()
           
 boolean isVisible()
           
 boolean isWritable()
          Returns true if this component should in fact be written to secondary storage.
 void scaleDistance(double s)
          Scales the properties that are associated with distance.
 void scan(ReaderTokenizer rtok, java.lang.Object ref)
          Scans this element from a ReaderTokenizer.
 void set(RenderProps r)
           
 void setAlpha(double a)
           
static void setAlpha(Renderable r, double alpha)
           
 void setAlphaMode(PropertyMode mode)
           
static void setAlphaMode(Renderable r, PropertyMode mode)
           
 void setBackColor(java.awt.Color color)
           
static void setBackColor(Renderable r, java.awt.Color color)
           
 void setBackColorAmbient(java.awt.Color color)
           
 void setBackColorAmbientMode(PropertyMode mode)
           
 void setBackColorDiffuse(java.awt.Color color)
           
 void setBackColorDiffuseMode(PropertyMode mode)
           
 void setBackColorEmission(java.awt.Color color)
           
 void setBackColorEmissionMode(PropertyMode mode)
           
 void setBackColorMode(PropertyMode mode)
           
static void setBackColorMode(Renderable r, PropertyMode mode)
           
 void setBackColorSpecular(java.awt.Color color)
           
 void setBackColorSpecularMode(PropertyMode mode)
           
 void setBackMaterial(Material mat)
           
 void setDrawEdges(boolean enable)
           
static void setDrawEdges(Renderable r, boolean drawEdges)
           
 void setDrawEdgesMode(PropertyMode mode)
           
static void setDrawEdgesMode(Renderable r, PropertyMode mode)
           
 void setEdgeColor(java.awt.Color color)
           
static void setEdgeColor(Renderable r, java.awt.Color color)
           
 void setEdgeColorMode(PropertyMode mode)
           
static void setEdgeColorMode(Renderable r, PropertyMode mode)
           
 void setEdgeWidth(int width)
           
static void setEdgeWidth(Renderable r, int width)
           
 void setEdgeWidthMode(PropertyMode mode)
           
static void setEdgeWidthMode(Renderable r, PropertyMode mode)
           
 void setFaceColor(java.awt.Color color)
           
static void setFaceColor(Renderable r, java.awt.Color color)
           
 void setFaceColorAmbient(java.awt.Color color)
           
 void setFaceColorAmbientMode(PropertyMode mode)
           
 void setFaceColorDiffuse(java.awt.Color color)
           
 void setFaceColorDiffuseMode(PropertyMode mode)
           
 void setFaceColorEmission(java.awt.Color color)
           
 void setFaceColorEmissionMode(PropertyMode mode)
           
 void setFaceColorMode(PropertyMode mode)
           
static void setFaceColorMode(Renderable r, PropertyMode mode)
           
 void setFaceColorSpecular(java.awt.Color color)
           
 void setFaceColorSpecularMode(PropertyMode mode)
           
 void setFaceMaterial(Material mat)
           
static void setFaceStyle(Renderable r, RenderProps.Faces style)
           
 void setFaceStyle(RenderProps.Faces mode)
           
 void setFaceStyleMode(PropertyMode mode)
           
static void setFaceStyleMode(Renderable r, PropertyMode mode)
           
 void setLineColor(java.awt.Color color)
           
static void setLineColor(Renderable r, java.awt.Color color)
           
 void setLineColorAmbient(java.awt.Color color)
           
 void setLineColorAmbientMode(PropertyMode mode)
           
 void setLineColorDiffuse(java.awt.Color color)
           
 void setLineColorDiffuseMode(PropertyMode mode)
           
 void setLineColorEmission(java.awt.Color color)
           
 void setLineColorEmissionMode(PropertyMode mode)
           
 void setLineColorMode(PropertyMode mode)
           
static void setLineColorMode(Renderable r, PropertyMode mode)
           
 void setLineColorSpecular(java.awt.Color color)
           
 void setLineColorSpecularMode(PropertyMode mode)
           
 void setLineMaterial(Material mat)
           
 void setLineRadius(double r)
           
static void setLineRadius(Renderable r, double radius)
           
 void setLineRadiusMode(PropertyMode mode)
           
static void setLineRadiusMode(Renderable r, PropertyMode mode)
           
 void setLineSlices(int num)
           
static void setLineSlices(Renderable r, int nslices)
           
 void setLineSlicesMode(PropertyMode mode)
           
static void setLineSlicesMode(Renderable r, PropertyMode mode)
           
static void setLineStyle(Renderable r, RenderProps.LineStyle style)
           
 void setLineStyle(RenderProps.LineStyle style)
           
 void setLineStyleMode(PropertyMode mode)
           
static void setLineStyleMode(Renderable r, PropertyMode mode)
           
 void setLineWidth(int width)
           
static void setLineWidth(Renderable r, int width)
           
 void setLineWidthMode(PropertyMode mode)
           
static void setLineWidthMode(Renderable r, PropertyMode mode)
           
 void setPointColor(java.awt.Color color)
           
 void setPointColor(float[] color)
           
static void setPointColor(Renderable r, java.awt.Color color)
           
 void setPointColorAmbient(java.awt.Color color)
           
 void setPointColorAmbientMode(PropertyMode mode)
           
 void setPointColorDiffuse(java.awt.Color color)
           
 void setPointColorDiffuseMode(PropertyMode mode)
           
 void setPointColorEmission(java.awt.Color color)
           
 void setPointColorEmissionMode(PropertyMode mode)
           
 void setPointColorMode(PropertyMode mode)
           
static void setPointColorMode(Renderable r, PropertyMode mode)
           
 void setPointColorSpecular(java.awt.Color color)
           
 void setPointColorSpecularMode(PropertyMode mode)
           
 void setPointMaterial(Material mat)
           
 void setPointRadius(double r)
           
static void setPointRadius(Renderable r, double radius)
           
 void setPointRadiusMode(PropertyMode mode)
           
static void setPointRadiusMode(Renderable r, PropertyMode mode)
           
 void setPointSize(int size)
           
static void setPointSize(Renderable r, int size)
           
 void setPointSizeMode(PropertyMode mode)
           
static void setPointSizeMode(Renderable r, PropertyMode mode)
           
 void setPointSlices(int num)
           
static void setPointSlices(Renderable r, int nslices)
           
 void setPointSlicesMode(PropertyMode mode)
           
static void setPointSlicesMode(Renderable r, PropertyMode mode)
           
static void setPointStyle(Renderable r, RenderProps.PointStyle style)
           
 void setPointStyle(RenderProps.PointStyle style)
           
 void setPointStyleMode(PropertyMode mode)
           
static void setPointStyleMode(Renderable r, PropertyMode mode)
           
 void setPropertyHost(HasProperties newParent)
          Sets the host for this property.
 void setPropertyInfo(PropertyInfo info)
          Sets the property information for this property.
static void setShading(Renderable r, RenderProps.Shading shading)
           
 void setShading(RenderProps.Shading shading)
           
 void setShadingMode(PropertyMode mode)
           
static void setShadingMode(Renderable r, PropertyMode mode)
           
 void setShininess(float s)
           
static void setShininess(Renderable r, double shininess)
           
 void setShininessMode(PropertyMode mode)
           
static void setShininessMode(Renderable r, PropertyMode mode)
           
static void setTextureAutomatic(Renderable r, boolean enabled)
           
static void setTextureAutomaticMode(Renderable r, PropertyMode mode)
           
static void setTextureEnabled(Renderable r, boolean enabled)
           
static void setTextureEnabledMode(Renderable r, PropertyMode mode)
           
static void setTextureFileName(Renderable r, java.lang.String fileName)
           
static void setTextureFileNameMode(Renderable r, PropertyMode mode)
           
static void setTextureMode(Renderable r, TextureProps.Mode mode)
           
static void setTextureModeMode(Renderable r, PropertyMode mode)
           
 void setTextureProps(TextureProps props)
           
static void setTextureSCoords(Renderable r, double[] scoords)
           
static void setTextureSCoordsMode(Renderable r, PropertyMode mode)
           
static void setTextureSphereMappingEnabled(Renderable r, boolean enabled)
           
static void setTextureSphereMappingMode(Renderable r, PropertyMode mode)
           
static void setTextureTCoords(Renderable r, double[] tcoords)
           
static void setTextureTCoordsMode(Renderable r, PropertyMode mode)
           
 void setVisible(boolean visible)
           
static void setVisible(Renderable r, boolean visible)
           
 void setVisibleMode(PropertyMode mode)
           
static void setVisibleMode(Renderable r, PropertyMode mode)
           
 void setZOrder(int order)
           
static void setZOrder(Renderable r, int order)
           
 void setZOrderMode(PropertyMode mode)
           
static void setZOrderMode(Renderable r, PropertyMode mode)
           
 java.lang.String toString()
           
 void write(java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref)
          Writes a text description of this element to a PrintWriter.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myProps

public static PropertyList myProps
Constructor Detail

RenderProps

public RenderProps()

RenderProps

public RenderProps(RenderProps props)
Method Detail

getPropertyInfo

public PropertyInfo getPropertyInfo()
Description copied from interface: CompositeProperty
If this object is a property, returns the corresponding information

Specified by:
getPropertyInfo in interface CompositeProperty

setPropertyInfo

public void setPropertyInfo(PropertyInfo info)
Description copied from interface: CompositeProperty
Sets the property information for this property.

Specified by:
setPropertyInfo in interface CompositeProperty
Parameters:
info - property information

getPropertyHost

public HasProperties getPropertyHost()
Description copied from interface: CompositeProperty
Should be either HierarchyNode or HasProperties

Specified by:
getPropertyHost in interface CompositeProperty

setPropertyHost

public void setPropertyHost(HasProperties newParent)
Description copied from interface: CompositeProperty
Sets the host for this property.

Specified by:
setPropertyHost in interface CompositeProperty
Parameters:
newParent - host for this property

isVisible

public boolean isVisible()

setVisible

public void setVisible(boolean visible)

getVisibleMode

public PropertyMode getVisibleMode()

setVisibleMode

public void setVisibleMode(PropertyMode mode)

getLineWidth

public int getLineWidth()

setLineWidth

public void setLineWidth(int width)

getLineWidthMode

public PropertyMode getLineWidthMode()

setLineWidthMode

public void setLineWidthMode(PropertyMode mode)

getPointSize

public int getPointSize()

setPointSize

public void setPointSize(int size)

getPointSizeMode

public PropertyMode getPointSizeMode()

setPointSizeMode

public void setPointSizeMode(PropertyMode mode)

getFaceColor

public java.awt.Color getFaceColor()

getFaceColorArray

public float[] getFaceColorArray()

setFaceColor

public void setFaceColor(java.awt.Color color)

getFaceColor

public void getFaceColor(float[] color)

getFaceColorMode

public PropertyMode getFaceColorMode()

setFaceColorMode

public void setFaceColorMode(PropertyMode mode)

getFaceColorDiffuse

public java.awt.Color getFaceColorDiffuse()

getFaceColorDiffuseArray

public float[] getFaceColorDiffuseArray()

setFaceColorDiffuse

public void setFaceColorDiffuse(java.awt.Color color)

getFaceColorDiffuse

public void getFaceColorDiffuse(float[] color)

getFaceColorDiffuseMode

public PropertyMode getFaceColorDiffuseMode()

setFaceColorDiffuseMode

public void setFaceColorDiffuseMode(PropertyMode mode)

getFaceColorAmbient

public java.awt.Color getFaceColorAmbient()

getFaceColorAmbientArray

public float[] getFaceColorAmbientArray()

setFaceColorAmbient

public void setFaceColorAmbient(java.awt.Color color)

getFaceColorAmbient

public void getFaceColorAmbient(float[] color)

getFaceColorAmbientMode

public PropertyMode getFaceColorAmbientMode()

setFaceColorAmbientMode

public void setFaceColorAmbientMode(PropertyMode mode)

getFaceColorSpecular

public java.awt.Color getFaceColorSpecular()

getFaceColorSpecularArray

public float[] getFaceColorSpecularArray()

setFaceColorSpecular

public void setFaceColorSpecular(java.awt.Color color)

getFaceColorSpecular

public void getFaceColorSpecular(float[] color)

getFaceColorSpecularMode

public PropertyMode getFaceColorSpecularMode()

setFaceColorSpecularMode

public void setFaceColorSpecularMode(PropertyMode mode)

getFaceColorEmission

public java.awt.Color getFaceColorEmission()

getFaceColorEmissionArray

public float[] getFaceColorEmissionArray()

setFaceColorEmission

public void setFaceColorEmission(java.awt.Color color)

getFaceColorEmission

public void getFaceColorEmission(float[] color)

getFaceColorEmissionMode

public PropertyMode getFaceColorEmissionMode()

setFaceColorEmissionMode

public void setFaceColorEmissionMode(PropertyMode mode)

getAlpha

public double getAlpha()

setAlpha

public void setAlpha(double a)

getAlphaMode

public PropertyMode getAlphaMode()

setAlphaMode

public void setAlphaMode(PropertyMode mode)

getZOrder

public int getZOrder()

setZOrder

public void setZOrder(int order)

getZOrderMode

public PropertyMode getZOrderMode()

setZOrderMode

public void setZOrderMode(PropertyMode mode)

isTransparent

public boolean isTransparent()

getShading

public RenderProps.Shading getShading()

setShading

public void setShading(RenderProps.Shading shading)

getShadingMode

public PropertyMode getShadingMode()

setShadingMode

public void setShadingMode(PropertyMode mode)

getShininess

public float getShininess()

setShininess

public void setShininess(float s)

getShininessMode

public PropertyMode getShininessMode()

setShininessMode

public void setShininessMode(PropertyMode mode)

getFaceMaterial

public Material getFaceMaterial()

getPointStyle

public RenderProps.PointStyle getPointStyle()

setPointStyle

public void setPointStyle(RenderProps.PointStyle style)

getPointStyleMode

public PropertyMode getPointStyleMode()

setPointStyleMode

public void setPointStyleMode(PropertyMode mode)

getPointRadius

public double getPointRadius()

setPointRadius

public void setPointRadius(double r)

getPointRadiusMode

public PropertyMode getPointRadiusMode()

setPointRadiusMode

public void setPointRadiusMode(PropertyMode mode)

getPointSlices

public int getPointSlices()

setPointSlices

public void setPointSlices(int num)

getPointSlicesMode

public PropertyMode getPointSlicesMode()

setPointSlicesMode

public void setPointSlicesMode(PropertyMode mode)

getLineStyle

public RenderProps.LineStyle getLineStyle()

setLineStyle

public void setLineStyle(RenderProps.LineStyle style)

getLineStyleMode

public PropertyMode getLineStyleMode()

setLineStyleMode

public void setLineStyleMode(PropertyMode mode)

getLineRadius

public double getLineRadius()

setLineRadius

public void setLineRadius(double r)

getLineRadiusMode

public PropertyMode getLineRadiusMode()

setLineRadiusMode

public void setLineRadiusMode(PropertyMode mode)

getLineSlices

public int getLineSlices()

setLineSlices

public void setLineSlices(int num)

getLineSlicesMode

public PropertyMode getLineSlicesMode()

setLineSlicesMode

public void setLineSlicesMode(PropertyMode mode)

getDrawEdges

public boolean getDrawEdges()

setDrawEdges

public void setDrawEdges(boolean enable)

getDrawEdgesMode

public PropertyMode getDrawEdgesMode()

setDrawEdgesMode

public void setDrawEdgesMode(PropertyMode mode)

getEdgeWidth

public int getEdgeWidth()

setEdgeWidth

public void setEdgeWidth(int width)

getEdgeWidthMode

public PropertyMode getEdgeWidthMode()

setEdgeWidthMode

public void setEdgeWidthMode(PropertyMode mode)

getEdgeColor

public java.awt.Color getEdgeColor()

getEdgeOrLineColorArray

public float[] getEdgeOrLineColorArray()

getEdgeColorArray

public float[] getEdgeColorArray()

setEdgeColor

public void setEdgeColor(java.awt.Color color)

getEdgeColor

public void getEdgeColor(float[] color)

getEdgeColorMode

public PropertyMode getEdgeColorMode()

setEdgeColorMode

public void setEdgeColorMode(PropertyMode mode)

getFaceStyle

public RenderProps.Faces getFaceStyle()

setFaceStyle

public void setFaceStyle(RenderProps.Faces mode)

getFaceStyleMode

public PropertyMode getFaceStyleMode()

setFaceStyleMode

public void setFaceStyleMode(PropertyMode mode)

getBackColor

public java.awt.Color getBackColor()

getBackColorArray

public float[] getBackColorArray()

setBackColor

public void setBackColor(java.awt.Color color)

getBackColor

public void getBackColor(float[] color)

getBackColorMode

public PropertyMode getBackColorMode()

setBackColorMode

public void setBackColorMode(PropertyMode mode)

getBackColorDiffuse

public java.awt.Color getBackColorDiffuse()

getBackColorDiffuseArray

public float[] getBackColorDiffuseArray()

setBackColorDiffuse

public void setBackColorDiffuse(java.awt.Color color)

getBackColorDiffuse

public void getBackColorDiffuse(float[] color)

getBackColorDiffuseMode

public PropertyMode getBackColorDiffuseMode()

setBackColorDiffuseMode

public void setBackColorDiffuseMode(PropertyMode mode)

getBackColorAmbient

public java.awt.Color getBackColorAmbient()

getBackColorAmbientArray

public float[] getBackColorAmbientArray()

setBackColorAmbient

public void setBackColorAmbient(java.awt.Color color)

getBackColorAmbient

public void getBackColorAmbient(float[] color)

getBackColorAmbientMode

public PropertyMode getBackColorAmbientMode()

setBackColorAmbientMode

public void setBackColorAmbientMode(PropertyMode mode)

getBackColorSpecular

public java.awt.Color getBackColorSpecular()

getBackColorSpecularArray

public float[] getBackColorSpecularArray()

setBackColorSpecular

public void setBackColorSpecular(java.awt.Color color)

getBackColorSpecular

public void getBackColorSpecular(float[] color)

getBackColorSpecularMode

public PropertyMode getBackColorSpecularMode()

setBackColorSpecularMode

public void setBackColorSpecularMode(PropertyMode mode)

getBackColorEmission

public java.awt.Color getBackColorEmission()

getBackColorEmissionArray

public float[] getBackColorEmissionArray()

setBackColorEmission

public void setBackColorEmission(java.awt.Color color)

getBackColorEmission

public void getBackColorEmission(float[] color)

getBackColorEmissionMode

public PropertyMode getBackColorEmissionMode()

setBackColorEmissionMode

public void setBackColorEmissionMode(PropertyMode mode)

getLineColor

public java.awt.Color getLineColor()

getLineColorArray

public float[] getLineColorArray()

setLineColor

public void setLineColor(java.awt.Color color)

getLineColor

public void getLineColor(float[] color)

getLineColorMode

public PropertyMode getLineColorMode()

setLineColorMode

public void setLineColorMode(PropertyMode mode)

getLineColorDiffuse

public java.awt.Color getLineColorDiffuse()

getLineColorDiffuseArray

public float[] getLineColorDiffuseArray()

setLineColorDiffuse

public void setLineColorDiffuse(java.awt.Color color)

getLineColorDiffuse

public void getLineColorDiffuse(float[] color)

getLineColorDiffuseMode

public PropertyMode getLineColorDiffuseMode()

setLineColorDiffuseMode

public void setLineColorDiffuseMode(PropertyMode mode)

getLineColorAmbient

public java.awt.Color getLineColorAmbient()

getLineColorAmbientArray

public float[] getLineColorAmbientArray()

setLineColorAmbient

public void setLineColorAmbient(java.awt.Color color)

getLineColorAmbient

public void getLineColorAmbient(float[] color)

getLineColorAmbientMode

public PropertyMode getLineColorAmbientMode()

setLineColorAmbientMode

public void setLineColorAmbientMode(PropertyMode mode)

getLineColorSpecular

public java.awt.Color getLineColorSpecular()

getLineColorSpecularArray

public float[] getLineColorSpecularArray()

setLineColorSpecular

public void setLineColorSpecular(java.awt.Color color)

getLineColorSpecular

public void getLineColorSpecular(float[] color)

getLineColorSpecularMode

public PropertyMode getLineColorSpecularMode()

setLineColorSpecularMode

public void setLineColorSpecularMode(PropertyMode mode)

getLineColorEmission

public java.awt.Color getLineColorEmission()

getLineColorEmissionArray

public float[] getLineColorEmissionArray()

setLineColorEmission

public void setLineColorEmission(java.awt.Color color)

getLineColorEmission

public void getLineColorEmission(float[] color)

getLineColorEmissionMode

public PropertyMode getLineColorEmissionMode()

setLineColorEmissionMode

public void setLineColorEmissionMode(PropertyMode mode)

getPointColor

public java.awt.Color getPointColor()

getPointColorArray

public float[] getPointColorArray()

setPointColor

public void setPointColor(java.awt.Color color)

getPointColor

public void getPointColor(float[] color)

setPointColor

public void setPointColor(float[] color)

getPointColorMode

public PropertyMode getPointColorMode()

setPointColorMode

public void setPointColorMode(PropertyMode mode)

getPointColorDiffuse

public java.awt.Color getPointColorDiffuse()

getPointColorDiffuseArray

public float[] getPointColorDiffuseArray()

setPointColorDiffuse

public void setPointColorDiffuse(java.awt.Color color)

getPointColorDiffuse

public void getPointColorDiffuse(float[] color)

getPointColorDiffuseMode

public PropertyMode getPointColorDiffuseMode()

setPointColorDiffuseMode

public void setPointColorDiffuseMode(PropertyMode mode)

getPointColorAmbient

public java.awt.Color getPointColorAmbient()

getPointColorAmbientArray

public float[] getPointColorAmbientArray()

setPointColorAmbient

public void setPointColorAmbient(java.awt.Color color)

getPointColorAmbient

public void getPointColorAmbient(float[] color)

getPointColorAmbientMode

public PropertyMode getPointColorAmbientMode()

setPointColorAmbientMode

public void setPointColorAmbientMode(PropertyMode mode)

getPointColorSpecular

public java.awt.Color getPointColorSpecular()

getPointColorSpecularArray

public float[] getPointColorSpecularArray()

setPointColorSpecular

public void setPointColorSpecular(java.awt.Color color)

getPointColorSpecular

public void getPointColorSpecular(float[] color)

getPointColorSpecularMode

public PropertyMode getPointColorSpecularMode()

setPointColorSpecularMode

public void setPointColorSpecularMode(PropertyMode mode)

getPointColorEmission

public java.awt.Color getPointColorEmission()

getPointColorEmissionArray

public float[] getPointColorEmissionArray()

setPointColorEmission

public void setPointColorEmission(java.awt.Color color)

getPointColorEmission

public void getPointColorEmission(float[] color)

getPointColorEmissionMode

public PropertyMode getPointColorEmissionMode()

setPointColorEmissionMode

public void setPointColorEmissionMode(PropertyMode mode)

getBackMaterial

public Material getBackMaterial()

getLineMaterial

public Material getLineMaterial()

getPointMaterial

public Material getPointMaterial()

getTextureProps

public TextureProps getTextureProps()

setTextureProps

public void setTextureProps(TextureProps props)

getProperty

public Property getProperty(java.lang.String name)
Description copied from interface: HasProperties
Returns a property associated with a specified path name. All properties exported by this object must have a name which is a valid Java identifier. Specifying one of these names causes the corresponding Property to be returned. Handles to sub-properties can also be obtained by delimiting the sub-property name(s) by '.' characters. A sub-property exists if the value of a property is itself an object which exports properties. It is only possible to obtain a sub-property handle if each of its ancestor properties exports their values by reference.

Specified by:
getProperty in interface HasProperties
Parameters:
name - name of the desired property or sub-property
Returns:
handle to the property

getAllPropertyInfo

public PropertyList getAllPropertyInfo()
Description copied from interface: HasProperties
Returns a list giving static information about all properties exported by this object.

Specified by:
getAllPropertyInfo in interface HasProperties
Returns:
static information for all exported properties

set

public void set(RenderProps r)

setFaceMaterial

public void setFaceMaterial(Material mat)

setBackMaterial

public void setBackMaterial(Material mat)

setPointMaterial

public void setPointMaterial(Material mat)

setLineMaterial

public void setLineMaterial(Material mat)

equals

public boolean equals(RenderProps r)

equals

public static boolean equals(RenderProps r1,
                             RenderProps r2)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

isWritable

public boolean isWritable()
Description copied from interface: Scannable
Returns true if this component should in fact be written to secondary storage. This gives subclasses control over whether or not they are actually written out.

Specified by:
isWritable in interface Scannable
Returns:
true if this component should be written to secondary storage.

write

public void write(java.io.PrintWriter pw,
                  NumberFormat fmt,
                  java.lang.Object ref)
           throws java.io.IOException
Description copied from interface: Scannable
Writes a text description of this element to a PrintWriter. The text description should be compatable with scan and complete enough to allow full reconstruction of the element.

Specified by:
write in interface Scannable
Parameters:
pw - stream for writing the element
fmt - numeric formating information
ref - optional reference object which can be used for producing references to other objects
Throws:
java.io.IOException - if an I/O error occured

scan

public void scan(ReaderTokenizer rtok,
                 java.lang.Object ref)
          throws java.io.IOException
Description copied from interface: Scannable
Scans this element from a ReaderTokenizer. The expected text format is assumed to be compatible with that produced by write.

Specified by:
scan in interface Scannable
Parameters:
rtok - Tokenizer from which to scan the element
ref - optional reference object which can be used for resolving references to other objects
Throws:
java.io.IOException - if an I/O or formatting error occured

getTaperedEllipsoidDisplayList

public int getTaperedEllipsoidDisplayList(javax.media.opengl.GL2 gl)

allocTaperedEllipsoidDisplayList

public int allocTaperedEllipsoidDisplayList(javax.media.opengl.GL2 gl)

clearTaperedEllipsoidDisplayList

public void clearTaperedEllipsoidDisplayList()

getSphereDisplayList

public int getSphereDisplayList(javax.media.opengl.GL2 gl)

allocSphereDisplayList

public int allocSphereDisplayList(javax.media.opengl.GL2 gl)

clearSphereDisplayList

public void clearSphereDisplayList()

getMeshDisplayList

public int getMeshDisplayList()

allocMeshDisplayList

public int allocMeshDisplayList(javax.media.opengl.GL2 gl)

clearMeshDisplayList

public void clearMeshDisplayList()

clearEdgeDisplayList

public void clearEdgeDisplayList()

allocEdgeDisplayList

public int allocEdgeDisplayList(javax.media.opengl.GL2 gl)

getEdgeDisplayList

public int getEdgeDisplayList()

clearAllDisplayLists

public void clearAllDisplayLists()

createRenderProps

public static RenderProps createRenderProps(HasProperties host)
Creates a new RenderProps. If the supplied host is non-null, then it is used to initialize any inherited properties. The property name associated with the host is assumed to be "renderProps".

Parameters:
host - if non-null, is used to initialize inherited values
Returns:
render properties appropriate for lines

createLineProps

public static RenderProps createLineProps(HasProperties host)
Creates a new LineRenderProps. If the supplied host is non-null, then it is used to initialize any inherited properties. The property name associated with the host is assumed to be "renderProps".

Parameters:
host - if non-null, is used to initialize inherited values
Returns:
render properties appropriate for lines

createLineFaceProps

public static RenderProps createLineFaceProps(HasProperties host)
Creates a new LineFaceRenderProps. If the supplied host is non-null, then it is used to initialize any inherited properties. The property name associated with the host is assumed to be "renderProps".

Parameters:
host - if non-null, is used to initialize inherited values
Returns:
render properties appropriate for lines

createLineEdgeProps

public static RenderProps createLineEdgeProps(HasProperties host)
Creates a new LineEdgeRenderProps. If the supplied host is non-null, then it is used to initialize any inherited properties. The property name associated with the host is assumed to be "renderProps".

Parameters:
host - if non-null, is used to initialize inherited values
Returns:
render properties appropriate for lines

createPointLineProps

public static RenderProps createPointLineProps(HasProperties host)
Creates a new PointLineRenderProps. If the supplied host is non-null, then it is used to initialize any inherited properties. The property name associated with the host is assumed to be "renderProps".

Parameters:
host - if non-null, is used to initialize inherited values
Returns:
render properties appropriate for lines

createPointFaceProps

public static RenderProps createPointFaceProps(HasProperties host)
Creates a new PointFaceRenderProps. If the supplied host is non-null, then it is used to initialize any inherited properties. The property name associated with the host is assumed to be "renderProps".

Parameters:
host - if non-null, is used to initialize inherited values
Returns:
render properties appropriate for lines

createPointProps

public static RenderProps createPointProps(HasProperties host)
Creates a new PointRenderProps. If the supplied host is non-null, then it is used to initialize any inherited properties. The property name associated with the host is assumed to be "renderProps".

Parameters:
host - if non-null, is used to initialize inherited values
Returns:
render properties appropriate for lines

createMeshProps

public static RenderProps createMeshProps(HasProperties host)
Creates a new MeshRenderProps. If the supplied host is non-null, then it is used to initialize any inherited properties. The property name associated with the host is assumed to be "renderProps".

Parameters:
host - if non-null, is used to initialize inherited values
Returns:
render properties appropriate for lines

createFaceProps

public static RenderProps createFaceProps(HasProperties host)
Creates a new FaceRenderProps. If the supplied host is non-null, then it is used to initialize any inherited properties. The property name associated with the host is assumed to be "renderProps".

Parameters:
host - if non-null, is used to initialize inherited values
Returns:
render properties appropriate for lines

scaleDistance

public void scaleDistance(double s)
Scales the properties that are associated with distance. This includes the sphere radius and cylinder radius.

Parameters:
s - scale factor

dispose

public void dispose()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

copy

public RenderProps copy()

clone

public RenderProps clone()
Description copied from interface: CompositeProperty
Returns a clone of this composite property.

Specified by:
clone in interface CompositeProperty
Specified by:
clone in interface Clonable
Overrides:
clone in class java.lang.Object
Returns:
clone of this property

setVisible

public static void setVisible(Renderable r,
                              boolean visible)

setVisibleMode

public static void setVisibleMode(Renderable r,
                                  PropertyMode mode)

setShading

public static void setShading(Renderable r,
                              RenderProps.Shading shading)

setShadingMode

public static void setShadingMode(Renderable r,
                                  PropertyMode mode)

setAlpha

public static void setAlpha(Renderable r,
                            double alpha)

setAlphaMode

public static void setAlphaMode(Renderable r,
                                PropertyMode mode)

setZOrder

public static void setZOrder(Renderable r,
                             int order)

setZOrderMode

public static void setZOrderMode(Renderable r,
                                 PropertyMode mode)

setShininess

public static void setShininess(Renderable r,
                                double shininess)

setShininessMode

public static void setShininessMode(Renderable r,
                                    PropertyMode mode)

setFaceStyle

public static void setFaceStyle(Renderable r,
                                RenderProps.Faces style)

setFaceStyleMode

public static void setFaceStyleMode(Renderable r,
                                    PropertyMode mode)

setFaceColor

public static void setFaceColor(Renderable r,
                                java.awt.Color color)

setFaceColorMode

public static void setFaceColorMode(Renderable r,
                                    PropertyMode mode)

setBackColor

public static void setBackColor(Renderable r,
                                java.awt.Color color)

setBackColorMode

public static void setBackColorMode(Renderable r,
                                    PropertyMode mode)

setDrawEdges

public static void setDrawEdges(Renderable r,
                                boolean drawEdges)

setDrawEdgesMode

public static void setDrawEdgesMode(Renderable r,
                                    PropertyMode mode)

setEdgeWidth

public static void setEdgeWidth(Renderable r,
                                int width)

setEdgeWidthMode

public static void setEdgeWidthMode(Renderable r,
                                    PropertyMode mode)

setEdgeColor

public static void setEdgeColor(Renderable r,
                                java.awt.Color color)

setEdgeColorMode

public static void setEdgeColorMode(Renderable r,
                                    PropertyMode mode)

setLineStyle

public static void setLineStyle(Renderable r,
                                RenderProps.LineStyle style)

setLineStyleMode

public static void setLineStyleMode(Renderable r,
                                    PropertyMode mode)

setLineColor

public static void setLineColor(Renderable r,
                                java.awt.Color color)

setLineColorMode

public static void setLineColorMode(Renderable r,
                                    PropertyMode mode)

setLineWidth

public static void setLineWidth(Renderable r,
                                int width)

setLineWidthMode

public static void setLineWidthMode(Renderable r,
                                    PropertyMode mode)

setLineRadius

public static void setLineRadius(Renderable r,
                                 double radius)

setLineRadiusMode

public static void setLineRadiusMode(Renderable r,
                                     PropertyMode mode)

setLineSlices

public static void setLineSlices(Renderable r,
                                 int nslices)

setLineSlicesMode

public static void setLineSlicesMode(Renderable r,
                                     PropertyMode mode)

setPointStyle

public static void setPointStyle(Renderable r,
                                 RenderProps.PointStyle style)

setPointStyleMode

public static void setPointStyleMode(Renderable r,
                                     PropertyMode mode)

setPointColor

public static void setPointColor(Renderable r,
                                 java.awt.Color color)

setPointColorMode

public static void setPointColorMode(Renderable r,
                                     PropertyMode mode)

setPointSize

public static void setPointSize(Renderable r,
                                int size)

setPointSizeMode

public static void setPointSizeMode(Renderable r,
                                    PropertyMode mode)

setPointRadius

public static void setPointRadius(Renderable r,
                                  double radius)

setPointRadiusMode

public static void setPointRadiusMode(Renderable r,
                                      PropertyMode mode)

setPointSlices

public static void setPointSlices(Renderable r,
                                  int nslices)

setPointSlicesMode

public static void setPointSlicesMode(Renderable r,
                                      PropertyMode mode)

setTextureEnabled

public static void setTextureEnabled(Renderable r,
                                     boolean enabled)

setTextureEnabledMode

public static void setTextureEnabledMode(Renderable r,
                                         PropertyMode mode)

setTextureMode

public static void setTextureMode(Renderable r,
                                  TextureProps.Mode mode)

setTextureModeMode

public static void setTextureModeMode(Renderable r,
                                      PropertyMode mode)

setTextureFileName

public static void setTextureFileName(Renderable r,
                                      java.lang.String fileName)

setTextureFileNameMode

public static void setTextureFileNameMode(Renderable r,
                                          PropertyMode mode)

setTextureSphereMappingEnabled

public static void setTextureSphereMappingEnabled(Renderable r,
                                                  boolean enabled)

setTextureSphereMappingMode

public static void setTextureSphereMappingMode(Renderable r,
                                               PropertyMode mode)

setTextureAutomatic

public static void setTextureAutomatic(Renderable r,
                                       boolean enabled)

setTextureAutomaticMode

public static void setTextureAutomaticMode(Renderable r,
                                           PropertyMode mode)

setTextureSCoords

public static void setTextureSCoords(Renderable r,
                                     double[] scoords)

setTextureSCoordsMode

public static void setTextureSCoordsMode(Renderable r,
                                         PropertyMode mode)

setTextureTCoords

public static void setTextureTCoords(Renderable r,
                                     double[] tcoords)

setTextureTCoordsMode

public static void setTextureTCoordsMode(Renderable r,
                                         PropertyMode mode)

createAndInitRenderProps

public static RenderProps createAndInitRenderProps(HasRenderProps host,
                                                   RenderProps props)
Creates a set of render properties and initializes for use with the specified host

Parameters:
host - host object that has render properties
props - the properties to copy and assign
Returns:
the created render properties