Java javax.media.j3d Material fields, constructors, methods, implement or subclass

Example usage for Java javax.media.j3d Material fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.media.j3d Material.

The text is from its open source code.

Field

intALLOW_COMPONENT_WRITE
For material object, specifies that Material allows reading individual component field information.

Constructor

Material()
Constructs and initializes a Material object using default parameters.
Material(Color3f ambientColor, Color3f emissiveColor, Color3f diffuseColor, Color3f specularColor, float shininess)
Constructs and initializes a new material object using the specified parameters.

Method

voidgetAmbientColor(Color3f color)
Retrieves this material's ambient color.
voidgetDiffuseColor(Color3f color)
Retrieves this material's diffuse color.
voidgetEmissiveColor(Color3f color)
Retrieves this material's emissive color and stores it in the argument provided.
booleangetLightingEnable()
Retrieves the state of the lighting enable flag.
floatgetShininess()
Retrieves this material's shininess.
voidgetSpecularColor(Color3f color)
Retrieves this material's specular color.
voidsetAmbientColor(float r, float g, float b)
Sets this material's ambient color.
voidsetCapability(int bit)
Sets the specified capability bit.
voidsetDiffuseColor(Color3f color)
Sets this material's diffuse color.
voidsetDiffuseColor(float r, float g, float b)
Sets this material's diffuse color.
voidsetLightingEnable(boolean state)
Enables or disables lighting for this appearance component object.
voidsetShininess(float shininess)
Sets this material's shininess.
voidsetSpecularColor(Color3f color)
Sets this material's specular color.
voidsetSpecularColor(float r, float g, float b)
Sets this material's specular color.