| java.lang.Object javax.media.j3d.IndexedObject javax.media.j3d.SceneGraphObjectRetained javax.media.j3d.NodeComponentRetained javax.media.j3d.MaterialRetained
MaterialRetained | class MaterialRetained extends NodeComponentRetained (Code) | | The MaterialRetained object defines the appearance of an object under
illumination.
|
Method Summary | |
protected Object | clone() | void | createMaterial(Color3f aColor, Color3f eColor, Color3f dColor, Color3f sColor, float shine) Constructs and initializes a new material object using the specified
parameters. | synchronized void | createMirrorObject() | boolean | equivalent(MaterialRetained m) | final void | getAmbientColor(Color3f color) Retrieves this material's ambient color. | final int | getColorTarget() | final void | getDiffuseColor(Color3f color) Retrieves this material's diffuse color. | final void | getEmissiveColor(Color3f color) Retrieves this material's emissive color and stores it in the
argument provided. | boolean | getLightingEnable() Retrieves the state of the lighting enable flag. | final float | getShininess() Retrieves this material's shininess. | final void | getSpecularColor(Color3f color) Retrieves this material's specular color. | void | handleFrequencyChange(int bit) | final void | initAmbientColor(Color3f color) Initializes this material's ambient color
This specifies how much ambient light is reflected by
the surface. | final void | initAmbientColor(float r, float g, float b) | void | initColorTarget(int colorTarget) | final void | initDiffuseColor(Color3f color) Sets this material's diffuse color. | final void | initDiffuseColor(float r, float g, float b) Sets this material's diffuse color. | final void | initDiffuseColor(float r, float g, float b, float a) Sets this material's diffuse color plus alpha. | final void | initEmissiveColor(Color3f color) Sets this material's emissive color
This is the color of light, if any, that the material emits. | final void | initEmissiveColor(float r, float g, float b) Sets this material's emissive color. | void | initLightingEnable(boolean state) Enables or disables lighting for this appearance component object. | synchronized void | initMirrorObject() | final void | initShininess(float shininess) Sets this material's shininess. | final void | initSpecularColor(Color3f color) Sets this material's specular color. | final void | initSpecularColor(float r, float g, float b) Sets this material's specular color. | final void | sendMessage(int attrMask, Object attr) | protected void | set(MaterialRetained mat) | final void | setAmbientColor(Color3f color) Sets this material's ambient color and sends a message notifying
the interested structures of the change.
This specifies how much ambient light is reflected by
the surface. | final void | setAmbientColor(float r, float g, float b) Sets this material's ambient color and sends a message notifying
the interested structures of the change. | final void | setColorTarget(int colorTarget) | final void | setDiffuseColor(Color3f color) Sets this material's diffuse color and sends a message notifying
the interested structures of the change. | final void | setDiffuseColor(float r, float g, float b) Sets this material's diffuse color and sends a message notifying
the interested structures of the change. | final void | setDiffuseColor(float r, float g, float b, float a) Sets this material's diffuse color plus alpha and sends
a message notifying the interested structures of the change. | final void | setEmissiveColor(Color3f color) Sets this material's emissive color and sends a message notifying
the interested structures of the change. | final void | setEmissiveColor(float r, float g, float b) Sets this material's emissive color and sends a message notifying
the interested structures of the change. | void | setLightingEnable(boolean state) Enables or disables lighting for this appearance component object
and sends a message notifying
the interested structures of the change. | final void | setShininess(float shininess) Sets this material's shininess and sends a message notifying
the interested structures of the change. | final void | setSpecularColor(Color3f color) Sets this material's specular color and sends a message notifying
the interested structures of the change. | final void | setSpecularColor(float r, float g, float b) Sets this material's specular color and sends a message notifying
the interested structures of the change. | synchronized void | updateMirrorObject(int component, Object value) | void | updateNative(Context ctx, float red, float green, float blue, float alpha, boolean enableLighting) Updates the native context. |
AMBIENT_COLOR_CHANGED | final static int AMBIENT_COLOR_CHANGED(Code) | | |
COLORTARGET_CHANGED | final static int COLORTARGET_CHANGED(Code) | | |
DIFFUSE_COLOR_CHANGED | final static int DIFFUSE_COLOR_CHANGED(Code) | | |
EMISSIVE_COLOR_CHANGED | final static int EMISSIVE_COLOR_CHANGED(Code) | | |
ENABLE_CHANGED | final static int ENABLE_CHANGED(Code) | | |
SHININESS_CHANGED | final static int SHININESS_CHANGED(Code) | | |
SPECULAR_COLOR_CHANGED | final static int SPECULAR_COLOR_CHANGED(Code) | | |
ambientColor | Color3f ambientColor(Code) | | |
colorTarget | int colorTarget(Code) | | |
diffuseColor | Color3f diffuseColor(Code) | | |
emissiveColor | Color3f emissiveColor(Code) | | |
lightingEnable | boolean lightingEnable(Code) | | |
shininess | float shininess(Code) | | |
specularColor | Color3f specularColor(Code) | | |
createMaterial | void createMaterial(Color3f aColor, Color3f eColor, Color3f dColor, Color3f sColor, float shine)(Code) | | Constructs and initializes a new material object using the specified
parameters.
Parameters: ambientColor - the material's ambient color Parameters: emissiveColor - the material's emissive color Parameters: diffuseColor - the material's diffuse color when illuminated by alight Parameters: specularColor - the material's specular color when illuminatedto generate a highlight Parameters: shininess - the material's shininess in therange [1.0, 128.0] with 1.0 being not shiny and 128.0 being very shiny |
createMirrorObject | synchronized void createMirrorObject()(Code) | | |
getAmbientColor | final void getAmbientColor(Color3f color)(Code) | | Retrieves this material's ambient color.
the material's ambient color |
getColorTarget | final int getColorTarget()(Code) | | |
getDiffuseColor | final void getDiffuseColor(Color3f color)(Code) | | Retrieves this material's diffuse color.
Parameters: color - the vector that will receive this material's diffuse color |
getEmissiveColor | final void getEmissiveColor(Color3f color)(Code) | | Retrieves this material's emissive color and stores it in the
argument provided.
Parameters: color - the vector that will receive this material's emissive color |
getLightingEnable | boolean getLightingEnable()(Code) | | Retrieves the state of the lighting enable flag.
true if lighting is enabled, false if lighting is disabled |
getShininess | final float getShininess()(Code) | | Retrieves this material's shininess.
the material's shininess |
getSpecularColor | final void getSpecularColor(Color3f color)(Code) | | Retrieves this material's specular color.
Parameters: color - the vector that will receive this material's specular color |
handleFrequencyChange | void handleFrequencyChange(int bit)(Code) | | |
initAmbientColor | final void initAmbientColor(Color3f color)(Code) | | Initializes this material's ambient color
This specifies how much ambient light is reflected by
the surface. The ambient light color is the product of this
color and the material diffuseColor.
Parameters: color - the material's ambient color |
initAmbientColor | final void initAmbientColor(float r, float g, float b)(Code) | | Sets this material's ambient color
Parameters: r - the new ambient color's red component Parameters: g - the new ambient color's green component Parameters: b - the new ambient color's blue component |
initColorTarget | void initColorTarget(int colorTarget)(Code) | | |
initDiffuseColor | final void initDiffuseColor(Color3f color)(Code) | | Sets this material's diffuse color.
This is the color of the material when illuminated by a light source.
Parameters: color - the new diffuse color |
initDiffuseColor | final void initDiffuseColor(float r, float g, float b)(Code) | | Sets this material's diffuse color.
Parameters: r - the new diffuse color's red component Parameters: g - the new diffuse color's green component Parameters: b - the new diffuse color's blue component |
initDiffuseColor | final void initDiffuseColor(float r, float g, float b, float a)(Code) | | Sets this material's diffuse color plus alpha.
This is the color of the material when illuminated by a light source.
Parameters: r - the new diffuse color's red component Parameters: g - the new diffuse color's green component Parameters: b - the new diffuse color's blue component Parameters: a - the alpha component used to set transparency |
initEmissiveColor | final void initEmissiveColor(Color3f color)(Code) | | Sets this material's emissive color
This is the color of light, if any, that the material emits.
Parameters: color - the new emissive color |
initEmissiveColor | final void initEmissiveColor(float r, float g, float b)(Code) | | Sets this material's emissive color.
This is the color of light, if any, that the material emits.
Parameters: r - the new emissive color's red component Parameters: g - the new emissive color's green component Parameters: b - the new emissive color's blue component |
initLightingEnable | void initLightingEnable(boolean state)(Code) | | Enables or disables lighting for this appearance component object.
Parameters: state - true or false to enable or disable lighting |
initMirrorObject | synchronized void initMirrorObject()(Code) | | Creates a mirror object, point the mirror object to the retained
object if the object is not editable
|
initShininess | final void initShininess(float shininess)(Code) | | Sets this material's shininess.
This specifies a material specular exponent, or shininess.
It takes a floating point number in the range [1.0, 128.0]
with 1.0 being not shiny and 128.0 being very shiny.
Parameters: shininess - the material's shininess |
initSpecularColor | final void initSpecularColor(Color3f color)(Code) | | Sets this material's specular color.
This is the specular highlight color of the material.
Parameters: color - the new specular color |
initSpecularColor | final void initSpecularColor(float r, float g, float b)(Code) | | Sets this material's specular color.
This is the specular highlight color of the material.
Parameters: r - the new specular color's red component Parameters: g - the new specular color's green component Parameters: b - the new specular color's blue component |
sendMessage | final void sendMessage(int attrMask, Object attr)(Code) | | |
setAmbientColor | final void setAmbientColor(Color3f color)(Code) | | Sets this material's ambient color and sends a message notifying
the interested structures of the change.
This specifies how much ambient light is reflected by
the surface. The ambient light color is the product of this
color and the material diffuseColor.
Parameters: color - the material's ambient color |
setAmbientColor | final void setAmbientColor(float r, float g, float b)(Code) | | Sets this material's ambient color and sends a message notifying
the interested structures of the change.
Parameters: r - the new ambient color's red component Parameters: g - the new ambient color's green component Parameters: b - the new ambient color's blue component |
setColorTarget | final void setColorTarget(int colorTarget)(Code) | | |
setDiffuseColor | final void setDiffuseColor(Color3f color)(Code) | | Sets this material's diffuse color and sends a message notifying
the interested structures of the change.
This is the color of the material when illuminated by a light source.
Parameters: color - the new diffuse color |
setDiffuseColor | final void setDiffuseColor(float r, float g, float b)(Code) | | Sets this material's diffuse color and sends a message notifying
the interested structures of the change.
Parameters: r - the new diffuse color's red component Parameters: g - the new diffuse color's green component Parameters: b - the new diffuse color's blue component |
setDiffuseColor | final void setDiffuseColor(float r, float g, float b, float a)(Code) | | Sets this material's diffuse color plus alpha and sends
a message notifying the interested structures of the change.
This is the color of the material when illuminated by a light source.
Parameters: r - the new diffuse color's red component Parameters: g - the new diffuse color's green component Parameters: b - the new diffuse color's blue component Parameters: a - the alpha component used to set transparency |
setEmissiveColor | final void setEmissiveColor(Color3f color)(Code) | | Sets this material's emissive color and sends a message notifying
the interested structures of the change.
This is the color of light, if any, that the material emits.
Parameters: color - the new emissive color |
setEmissiveColor | final void setEmissiveColor(float r, float g, float b)(Code) | | Sets this material's emissive color and sends a message notifying
the interested structures of the change.
This is the color of light, if any, that the material emits.
Parameters: r - the new emissive color's red component Parameters: g - the new emissive color's green component Parameters: b - the new emissive color's blue component |
setLightingEnable | void setLightingEnable(boolean state)(Code) | | Enables or disables lighting for this appearance component object
and sends a message notifying
the interested structures of the change.
Parameters: state - true or false to enable or disable lighting |
setShininess | final void setShininess(float shininess)(Code) | | Sets this material's shininess and sends a message notifying
the interested structures of the change.
This specifies a material specular exponent, or shininess.
It takes a floating point number in the range [1.0, 128.0]
with 1.0 being not shiny and 128.0 being very shiny.
Parameters: shininess - the material's shininess |
setSpecularColor | final void setSpecularColor(Color3f color)(Code) | | Sets this material's specular color and sends a message notifying
the interested structures of the change.
This is the specular highlight color of the material.
Parameters: color - the new specular color |
setSpecularColor | final void setSpecularColor(float r, float g, float b)(Code) | | Sets this material's specular color and sends a message notifying
the interested structures of the change.
This is the specular highlight color of the material.
Parameters: r - the new specular color's red component Parameters: g - the new specular color's green component Parameters: b - the new specular color's blue component |
updateMirrorObject | synchronized void updateMirrorObject(int component, Object value)(Code) | | Update the "component" field of the mirror object with the
given "value"
|
updateNative | void updateNative(Context ctx, float red, float green, float blue, float alpha, boolean enableLighting)(Code) | | Updates the native context.
|
Fields inherited from javax.media.j3d.IndexedObject | int[][] listIdx(Code)(Java Doc)
|
|
|