public class RenderProps extends java.lang.Object implements CompositeProperty, Scannable, Clonable
Modifier and Type | Class and Description |
---|---|
static class |
RenderProps.Props |
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
Constructor and Description |
---|
RenderProps() |
RenderProps(RenderProps props) |
Modifier and Type | Method and Description |
---|---|
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.
|
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() |
float[] |
getBackColor(float[] rgb)
Returns the RGB values for the back color as a float array,
or
null if no back color is set. |
float[] |
getBackColorF()
Returns the internal float array used to store the back color RGB
values.
|
PropertyMode |
getBackColorMode() |
BumpMapProps |
getBumpMap() |
ColorMapProps |
getColorMap() |
boolean |
getDrawEdges() |
PropertyMode |
getDrawEdgesMode() |
java.awt.Color |
getEdgeColor() |
float[] |
getEdgeColor(float[] rgb)
Returns the RGB values for the edge color as a float array,
or
null if no edge color is set. |
float[] |
getEdgeColorF()
Returns the internal float array used to store the edge color RGB
values.
|
PropertyMode |
getEdgeColorMode() |
float[] |
getEdgeOrLineColorF() |
int |
getEdgeWidth() |
PropertyMode |
getEdgeWidthMode() |
java.awt.Color |
getFaceColor() |
float[] |
getFaceColor(float[] rgb)
Returns the RGB values for the face color as a float array.
|
float[] |
getFaceColorF()
Returns the internal float array used to store the face color RGB
values.
|
PropertyMode |
getFaceColorMode() |
Renderer.FaceStyle |
getFaceStyle() |
PropertyMode |
getFaceStyleMode() |
java.awt.Color |
getLineColor() |
float[] |
getLineColor(float[] rgb)
Returns the RGB values for the line color as a float array.
|
float[] |
getLineColorF()
Returns the internal float array used to store the line color RGB
values.
|
PropertyMode |
getLineColorMode() |
double |
getLineRadius() |
PropertyMode |
getLineRadiusMode() |
Renderer.LineStyle |
getLineStyle() |
PropertyMode |
getLineStyleMode() |
int |
getLineWidth() |
PropertyMode |
getLineWidthMode() |
NormalMapProps |
getNormalMap() |
java.awt.Color |
getPointColor() |
float[] |
getPointColor(float[] rgb)
Returns the RGB values for the face color as a float array.
|
float[] |
getPointColorF()
Returns the internal float array used to store the point color RGB
values.
|
PropertyMode |
getPointColorMode() |
double |
getPointRadius() |
PropertyMode |
getPointRadiusMode() |
int |
getPointSize() |
PropertyMode |
getPointSizeMode() |
Renderer.PointStyle |
getPointStyle() |
PropertyMode |
getPointStyleMode() |
Property |
getProperty(java.lang.String name)
Returns a property associated with a specified path name.
|
HasProperties |
getPropertyHost()
Returns the host for this property
|
PropertyInfo |
getPropertyInfo()
If this object is a property, returns the corresponding information
|
Renderer.Shading |
getShading() |
PropertyMode |
getShadingMode() |
float |
getShininess() |
PropertyMode |
getShininessMode() |
java.awt.Color |
getSpecular() |
float[] |
getSpecular(float[] rgb)
Returns the RGB values for the specular color as a float array,
or
null if no specular color is set. |
float[] |
getSpecularF()
Returns the internal float array used to store the specular RGB
values.
|
PropertyMode |
getSpecularMode() |
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) |
void |
setBackColor(float[] rgb) |
static void |
setBackColor(Renderable r,
java.awt.Color color) |
static void |
setBackColor(Renderable r,
float[] rgb) |
void |
setBackColorMode(PropertyMode mode) |
static void |
setBackColorMode(Renderable r,
PropertyMode mode) |
void |
setBumpMap(BumpMapProps props) |
static void |
setBumpMap(Renderable r,
BumpMapProps bprops) |
static void |
setBumpMapEnabled(Renderable r,
boolean enabled) |
static void |
setBumpMapEnabledMode(Renderable r,
PropertyMode mode) |
static void |
setBumpMapFileName(Renderable r,
java.lang.String fileName) |
static void |
setBumpMapFileNameMode(Renderable r,
PropertyMode mode) |
void |
setColorMap(ColorMapProps props) |
static void |
setColorMap(Renderable r,
ColorMapProps tprops) |
static void |
setColorMapEnabled(Renderable r,
boolean enabled) |
static void |
setColorMapEnabledMode(Renderable r,
PropertyMode mode) |
static void |
setColorMapFileName(Renderable r,
java.lang.String fileName) |
static void |
setColorMapFileNameMode(Renderable r,
PropertyMode mode) |
static void |
setCubePoints(Renderable r,
double width,
java.awt.Color color) |
static void |
setCylindricalLines(Renderable r,
double rad,
java.awt.Color color) |
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) |
void |
setEdgeColor(float[] rgb) |
static void |
setEdgeColor(Renderable r,
java.awt.Color color) |
static void |
setEdgeColor(Renderable r,
float[] rgb) |
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) |
void |
setFaceColor(float[] rgb) |
static void |
setFaceColor(Renderable r,
java.awt.Color color) |
static void |
setFaceColor(Renderable r,
float[] rgb) |
void |
setFaceColorMode(PropertyMode mode) |
static void |
setFaceColorMode(Renderable r,
PropertyMode mode) |
static void |
setFaceStyle(Renderable r,
Renderer.FaceStyle style) |
void |
setFaceStyle(Renderer.FaceStyle mode) |
void |
setFaceStyleMode(PropertyMode mode) |
static void |
setFaceStyleMode(Renderable r,
PropertyMode mode) |
void |
setLineColor(java.awt.Color color) |
void |
setLineColor(float[] rgb) |
static void |
setLineColor(Renderable r,
java.awt.Color color) |
static void |
setLineColor(Renderable r,
float[] rgb) |
void |
setLineColorMode(PropertyMode mode) |
static void |
setLineColorMode(Renderable r,
PropertyMode mode) |
void |
setLineRadius(double r) |
static void |
setLineRadius(Renderable r,
double radius) |
void |
setLineRadiusMode(PropertyMode mode) |
static void |
setLineRadiusMode(Renderable r,
PropertyMode mode) |
static void |
setLineStyle(Renderable r,
Renderer.LineStyle style) |
void |
setLineStyle(Renderer.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 |
setNormalMap(NormalMapProps props) |
static void |
setNormalMap(Renderable r,
NormalMapProps nprops) |
static void |
setNormalMapEnabled(Renderable r,
boolean enabled) |
static void |
setNormalMapEnabledMode(Renderable r,
PropertyMode mode) |
static void |
setNormalMapFileName(Renderable r,
java.lang.String fileName) |
static void |
setNormalMapFileNameMode(Renderable r,
PropertyMode mode) |
void |
setPointColor(java.awt.Color color) |
void |
setPointColor(float[] rgb) |
static void |
setPointColor(Renderable r,
java.awt.Color color) |
static void |
setPointColor(Renderable r,
float[] rgb) |
void |
setPointColorMode(PropertyMode mode) |
static void |
setPointColorMode(Renderable r,
PropertyMode mode) |
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) |
static void |
setPointStyle(Renderable r,
Renderer.PointStyle style) |
void |
setPointStyle(Renderer.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,
Renderer.Shading shading) |
void |
setShading(Renderer.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 |
setSolidArrowLines(Renderable r,
double rad,
java.awt.Color color) |
void |
setSpecular(java.awt.Color color) |
void |
setSpecular(float[] rgb) |
static void |
setSpecular(Renderable r,
java.awt.Color color) |
static void |
setSpecular(Renderable r,
float[] rgb) |
void |
setSpecularMode(PropertyMode mode) |
static void |
setSpecularMode(Renderable r,
PropertyMode mode) |
static void |
setSphericalPoints(Renderable r,
double rad,
java.awt.Color color) |
static void |
setSpindleLines(Renderable r,
double rad,
java.awt.Color color) |
static void |
setTextureEnabled(Renderable r,
boolean enabled)
Enable or disable all texture-based properties, such as color-map,
bump-map, and normal-map
|
void |
setVisible(boolean visible) |
static void |
setVisible(Renderable r,
boolean visible) |
void |
setVisibleMode(PropertyMode mode) |
static void |
setVisibleMode(Renderable r,
PropertyMode mode) |
static void |
setWireFrame(Renderable r,
boolean enable)
Sets the render properties for a renderable to be consistent with either
wireframe or solid face rendering.
|
static void |
setWireFrame(Renderable r,
boolean enable,
Renderer.Shading shading)
Sets the render properties for a renderable to be consistent with either
wireframe or solid face rendering.
|
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.
|
public static PropertyList myProps
public RenderProps()
public RenderProps(RenderProps props)
public PropertyInfo getPropertyInfo()
CompositeProperty
getPropertyInfo
in interface CompositeProperty
public void setPropertyInfo(PropertyInfo info)
CompositeProperty
setPropertyInfo
in interface CompositeProperty
info
- property informationpublic HasProperties getPropertyHost()
CompositeProperty
getPropertyHost
in interface CompositeProperty
public void setPropertyHost(HasProperties newParent)
CompositeProperty
setPropertyHost
in interface CompositeProperty
newParent
- host for this propertypublic boolean isVisible()
public void setVisible(boolean visible)
public PropertyMode getVisibleMode()
public void setVisibleMode(PropertyMode mode)
public int getLineWidth()
public void setLineWidth(int width)
public PropertyMode getLineWidthMode()
public void setLineWidthMode(PropertyMode mode)
public int getPointSize()
public void setPointSize(int size)
public PropertyMode getPointSizeMode()
public void setPointSizeMode(PropertyMode mode)
public java.awt.Color getFaceColor()
public float[] getFaceColorF()
public void setFaceColor(float[] rgb)
public void setFaceColor(java.awt.Color color)
public float[] getFaceColor(float[] rgb)
rgb
.
Otherwise, if rgb
is null
, an array
will be allocated.rgb
- optional storage for returning the RGB valuespublic PropertyMode getFaceColorMode()
public void setFaceColorMode(PropertyMode mode)
public double getAlpha()
public void setAlpha(double a)
public PropertyMode getAlphaMode()
public void setAlphaMode(PropertyMode mode)
public int getZOrder()
public void setZOrder(int order)
public PropertyMode getZOrderMode()
public void setZOrderMode(PropertyMode mode)
public boolean isTransparent()
public Renderer.Shading getShading()
public void setShading(Renderer.Shading shading)
public PropertyMode getShadingMode()
public void setShadingMode(PropertyMode mode)
public float getShininess()
public void setShininess(float s)
public PropertyMode getShininessMode()
public void setShininessMode(PropertyMode mode)
public java.awt.Color getSpecular()
public float[] getSpecularF()
null
if the specular color is not set.public void setSpecular(float[] rgb)
public void setSpecular(java.awt.Color color)
public float[] getSpecular(float[] rgb)
null
if no specular color is set. The application may
supply the array via the argument rgb
. Otherwise,
if rgb
is null
and the specular color
is not null
, an array will be allocated.rgb
- optional storage for returning the RGB valuesnull
if no specular color is setpublic PropertyMode getSpecularMode()
public void setSpecularMode(PropertyMode mode)
public Renderer.PointStyle getPointStyle()
public void setPointStyle(Renderer.PointStyle style)
public PropertyMode getPointStyleMode()
public void setPointStyleMode(PropertyMode mode)
public double getPointRadius()
public void setPointRadius(double r)
public PropertyMode getPointRadiusMode()
public void setPointRadiusMode(PropertyMode mode)
public Renderer.LineStyle getLineStyle()
public void setLineStyle(Renderer.LineStyle style)
public PropertyMode getLineStyleMode()
public void setLineStyleMode(PropertyMode mode)
public double getLineRadius()
public void setLineRadius(double r)
public PropertyMode getLineRadiusMode()
public void setLineRadiusMode(PropertyMode mode)
public boolean getDrawEdges()
public void setDrawEdges(boolean enable)
public PropertyMode getDrawEdgesMode()
public void setDrawEdgesMode(PropertyMode mode)
public int getEdgeWidth()
public void setEdgeWidth(int width)
public PropertyMode getEdgeWidthMode()
public void setEdgeWidthMode(PropertyMode mode)
public java.awt.Color getEdgeColor()
public float[] getEdgeOrLineColorF()
public float[] getEdgeColorF()
null
if the edge color is not set.public void setEdgeColor(float[] rgb)
public void setEdgeColor(java.awt.Color color)
public float[] getEdgeColor(float[] rgb)
null
if no edge color is set. The application may
supply the array via the argument rgb
. Otherwise,
if rgb
is null
and the edge color
is not null
, an array will be allocated.rgb
- optional storage for returning the RGB valuesnull
if no edge color is setpublic PropertyMode getEdgeColorMode()
public void setEdgeColorMode(PropertyMode mode)
public Renderer.FaceStyle getFaceStyle()
public void setFaceStyle(Renderer.FaceStyle mode)
public PropertyMode getFaceStyleMode()
public void setFaceStyleMode(PropertyMode mode)
public java.awt.Color getBackColor()
public float[] getBackColorF()
null
if the back color is not set.public void setBackColor(float[] rgb)
public void setBackColor(java.awt.Color color)
public float[] getBackColor(float[] rgb)
null
if no back color is set. The application may
supply the array via the argument rgb
. Otherwise,
if rgb
is null
and the back color
is not null
, an array will be allocated.rgb
- optional storage for returning the RGB valuesnull
if no back color is setpublic PropertyMode getBackColorMode()
public void setBackColorMode(PropertyMode mode)
public java.awt.Color getLineColor()
public float[] getLineColorF()
public void setLineColor(float[] rgb)
public void setLineColor(java.awt.Color color)
public float[] getLineColor(float[] rgb)
rgb
.
Otherwise, if rgb
is null
, an array
will be allocated.rgb
- optional storage for returning the RGB valuespublic PropertyMode getLineColorMode()
public void setLineColorMode(PropertyMode mode)
public java.awt.Color getPointColor()
public float[] getPointColorF()
public void setPointColor(float[] rgb)
public float[] getPointColor(float[] rgb)
rgb
.
Otherwise, if rgb
is null
, an array
will be allocated.rgb
- optional storage for returning the RGB valuespublic void setPointColor(java.awt.Color color)
public PropertyMode getPointColorMode()
public void setPointColorMode(PropertyMode mode)
public ColorMapProps getColorMap()
public void setColorMap(ColorMapProps props)
public NormalMapProps getNormalMap()
public void setNormalMap(NormalMapProps props)
public BumpMapProps getBumpMap()
public void setBumpMap(BumpMapProps props)
public Property getProperty(java.lang.String name)
HasProperties
.
' 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.getProperty
in interface HasProperties
name
- name of the desired property or sub-propertypublic PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
public void set(RenderProps r)
public boolean equals(RenderProps r)
public static boolean equals(RenderProps r1, RenderProps r2)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isWritable()
Scannable
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.isWritable
in interface Scannable
true
if this component should be written to
secondary storage.public void write(java.io.PrintWriter pw, NumberFormat fmt, java.lang.Object ref) throws java.io.IOException
Scannable
scan
and complete
enough to allow full reconstruction of the element.public void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
Scannable
write
.public static RenderProps createRenderProps(HasProperties host)
host
- if non-null, is used to initialize inherited valuespublic static RenderProps createLineProps(HasProperties host)
host
- if non-null, is used to initialize inherited valuespublic static RenderProps createLineFaceProps(HasProperties host)
host
- if non-null, is used to initialize inherited valuespublic static RenderProps createLineEdgeProps(HasProperties host)
host
- if non-null, is used to initialize inherited valuespublic static RenderProps createPointLineProps(HasProperties host)
host
- if non-null, is used to initialize inherited valuespublic static RenderProps createPointFaceProps(HasProperties host)
host
- if non-null, is used to initialize inherited valuespublic static RenderProps createPointProps(HasProperties host)
host
- if non-null, is used to initialize inherited valuespublic static RenderProps createMeshProps(HasProperties host)
host
- if non-null, is used to initialize inherited valuespublic static RenderProps createFaceProps(HasProperties host)
host
- if non-null, is used to initialize inherited valuespublic void scaleDistance(double s)
s
- scale factorpublic java.lang.String toString()
toString
in class java.lang.Object
public RenderProps copy()
public RenderProps clone()
CompositeProperty
clone
in interface CompositeProperty
clone
in interface Clonable
clone
in class java.lang.Object
public static void setVisible(Renderable r, boolean visible)
public static void setVisibleMode(Renderable r, PropertyMode mode)
public static void setShading(Renderable r, Renderer.Shading shading)
public static void setShadingMode(Renderable r, PropertyMode mode)
public static void setAlpha(Renderable r, double alpha)
public static void setAlphaMode(Renderable r, PropertyMode mode)
public static void setZOrder(Renderable r, int order)
public static void setZOrderMode(Renderable r, PropertyMode mode)
public static void setShininess(Renderable r, double shininess)
public static void setShininessMode(Renderable r, PropertyMode mode)
public static void setSpecular(Renderable r, java.awt.Color color)
public static void setSpecular(Renderable r, float[] rgb)
public static void setSpecularMode(Renderable r, PropertyMode mode)
public static void setFaceStyle(Renderable r, Renderer.FaceStyle style)
public static void setFaceStyleMode(Renderable r, PropertyMode mode)
public static void setFaceColor(Renderable r, java.awt.Color color)
public static void setFaceColor(Renderable r, float[] rgb)
public static void setFaceColorMode(Renderable r, PropertyMode mode)
public static void setBackColor(Renderable r, java.awt.Color color)
public static void setBackColor(Renderable r, float[] rgb)
public static void setBackColorMode(Renderable r, PropertyMode mode)
public static void setDrawEdges(Renderable r, boolean drawEdges)
public static void setDrawEdgesMode(Renderable r, PropertyMode mode)
public static void setEdgeWidth(Renderable r, int width)
public static void setEdgeWidthMode(Renderable r, PropertyMode mode)
public static void setEdgeColor(Renderable r, java.awt.Color color)
public static void setEdgeColor(Renderable r, float[] rgb)
public static void setEdgeColorMode(Renderable r, PropertyMode mode)
public static void setLineStyle(Renderable r, Renderer.LineStyle style)
public static void setLineStyleMode(Renderable r, PropertyMode mode)
public static void setLineColor(Renderable r, java.awt.Color color)
public static void setLineColor(Renderable r, float[] rgb)
public static void setLineColorMode(Renderable r, PropertyMode mode)
public static void setLineWidth(Renderable r, int width)
public static void setLineWidthMode(Renderable r, PropertyMode mode)
public static void setLineRadius(Renderable r, double radius)
public static void setLineRadiusMode(Renderable r, PropertyMode mode)
public static void setPointStyle(Renderable r, Renderer.PointStyle style)
public static void setPointStyleMode(Renderable r, PropertyMode mode)
public static void setPointColor(Renderable r, java.awt.Color color)
public static void setPointColor(Renderable r, float[] rgb)
public static void setPointColorMode(Renderable r, PropertyMode mode)
public static void setPointSize(Renderable r, int size)
public static void setPointSizeMode(Renderable r, PropertyMode mode)
public static void setPointRadius(Renderable r, double radius)
public static void setPointRadiusMode(Renderable r, PropertyMode mode)
public static void setCubePoints(Renderable r, double width, java.awt.Color color)
public static void setSphericalPoints(Renderable r, double rad, java.awt.Color color)
public static void setCylindricalLines(Renderable r, double rad, java.awt.Color color)
public static void setSolidArrowLines(Renderable r, double rad, java.awt.Color color)
public static void setSpindleLines(Renderable r, double rad, java.awt.Color color)
public static void setWireFrame(Renderable r, boolean enable)
faces
, drawEdges
and shading
properties are set to Faces.NONE
, true
, and
Shading.NONE
, respectively. For solid frame rendering, they
are set to Faces.FRONT
, false
, and
Shading.FLAT
.r
- Renderable whose properties are to be setenable
- if true
, enable wireframe rendering.public static void setWireFrame(Renderable r, boolean enable, Renderer.Shading shading)
faces
and drawEdges
properties are set to
Faces.NONE
and true
, respectively. For solid
frame rendering, they are set to Faces.FRONT
and
false
. The shading
property is set to the
value of the shading
argument.r
- Renderable whose properties are to be setenable
- if true
, enable wireframe rendering.shading
- new value for the shading
propertypublic static void setTextureEnabled(Renderable r, boolean enabled)
public static void setColorMap(Renderable r, ColorMapProps tprops)
public static void setColorMapEnabled(Renderable r, boolean enabled)
public static void setColorMapEnabledMode(Renderable r, PropertyMode mode)
public static void setColorMapFileName(Renderable r, java.lang.String fileName)
public static void setColorMapFileNameMode(Renderable r, PropertyMode mode)
public static void setNormalMap(Renderable r, NormalMapProps nprops)
public static void setNormalMapEnabled(Renderable r, boolean enabled)
public static void setNormalMapEnabledMode(Renderable r, PropertyMode mode)
public static void setNormalMapFileName(Renderable r, java.lang.String fileName)
public static void setNormalMapFileNameMode(Renderable r, PropertyMode mode)
public static void setBumpMap(Renderable r, BumpMapProps bprops)
public static void setBumpMapEnabled(Renderable r, boolean enabled)
public static void setBumpMapEnabledMode(Renderable r, PropertyMode mode)
public static void setBumpMapFileName(Renderable r, java.lang.String fileName)
public static void setBumpMapFileNameMode(Renderable r, PropertyMode mode)
public static RenderProps createAndInitRenderProps(HasRenderProps host, RenderProps props)
host
- host object that has render propertiesprops
- the properties to copy and assign