Package com.aspose.threed
Class LambertMaterial
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.Material
-
- com.aspose.threed.LambertMaterial
-
- All Implemented Interfaces:
INamedObject
,java.lang.Iterable<TextureSlot>
- Direct Known Subclasses:
PhongMaterial
public class LambertMaterial extends Material
Material for lambert shading model
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.Material
MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Constructor Summary
Constructors Constructor Description LambertMaterial()
Initializes a new instance of theLambertMaterial
class.LambertMaterial(java.lang.String name)
Initializes a new instance of theLambertMaterial
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3
getAmbientColor()
Gets the ambient colorVector3
getDiffuseColor()
Gets the diffuse colorVector3
getEmissiveColor()
Gets the emissive colordouble
getTransparency()
Gets the transparency factor.Vector3
getTransparentColor()
Gets the transparent color.void
setAmbientColor(Vector3 value)
Sets the ambient colorvoid
setDiffuseColor(Vector3 value)
Sets the diffuse colorvoid
setEmissiveColor(Vector3 value)
Sets the emissive colorvoid
setTransparency(double value)
Sets the transparency factor.void
setTransparentColor(Vector3 value)
Sets the transparent color.-
Methods inherited from class com.aspose.threed.Material
getTexture, iterator, setTexture, toString
-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Constructor Detail
-
LambertMaterial
public LambertMaterial()
Initializes a new instance of theLambertMaterial
class.
-
LambertMaterial
public LambertMaterial(java.lang.String name)
Initializes a new instance of theLambertMaterial
class.- Parameters:
name
- Name
-
-
Method Detail
-
getEmissiveColor
public Vector3 getEmissiveColor()
Gets the emissive color
-
setEmissiveColor
public void setEmissiveColor(Vector3 value)
Sets the emissive color- Parameters:
value
- New value
-
getAmbientColor
public Vector3 getAmbientColor()
Gets the ambient color
-
setAmbientColor
public void setAmbientColor(Vector3 value)
Sets the ambient color- Parameters:
value
- New value
-
getDiffuseColor
public Vector3 getDiffuseColor()
Gets the diffuse color
-
setDiffuseColor
public void setDiffuseColor(Vector3 value)
Sets the diffuse color- Parameters:
value
- New value
-
getTransparentColor
public Vector3 getTransparentColor()
Gets the transparent color.
-
setTransparentColor
public void setTransparentColor(Vector3 value)
Sets the transparent color.- Parameters:
value
- New value
-
getTransparency
public double getTransparency()
Gets the transparency factor. The factor should be ranged between 0(0%, fully opaque) and 1(100%, fully transparent) Any invalid factor value will be clamped.
-
setTransparency
public void setTransparency(double value)
Sets the transparency factor. The factor should be ranged between 0(0%, fully opaque) and 1(100%, fully transparent) Any invalid factor value will be clamped.- Parameters:
value
- New value
-
-