Open CASCADE Technology 6.6.0
|
#include <VrmlData_Material.hxx>
Public Member Functions | |
VrmlData_Material () | |
VrmlData_Material (const VrmlData_Scene &theScene, const char *theName, const Standard_Real theAmbientIntensity=-1., const Standard_Real theShininess=-1., const Standard_Real theTransparency=-1.) | |
Standard_Real | AmbientIntensity () const |
Standard_Real | Shininess () const |
Standard_Real | Transparency () const |
const Quantity_Color & | DiffuseColor () const |
const Quantity_Color & | EmissiveColor () const |
const Quantity_Color & | SpecularColor () const |
void | SetAmbientIntensity (const Standard_Real theAmbientIntensity) |
void | SetShininess (const Standard_Real theShininess) |
void | SetTransparency (const Standard_Real theTransparency) |
void | SetDiffuseColor (const Quantity_Color &theColor) |
void | SetEmissiveColor (const Quantity_Color &theColor) |
void | SetSpecularColor (const Quantity_Color &theColor) |
virtual Handle< VrmlData_Node > | Clone (const Handle< VrmlData_Node > &theOther) const |
virtual VrmlData_ErrorStatus | Read (VrmlData_InBuffer &theBuffer) |
virtual VrmlData_ErrorStatus | Write (const char *thePrefix) const |
virtual Standard_Boolean | IsDefault () const |
Implementation of the Material node
VrmlData_Material::VrmlData_Material | ( | ) |
Empty constructor
VrmlData_Material::VrmlData_Material | ( | const VrmlData_Scene & | theScene, |
const char * | theName, | ||
const Standard_Real | theAmbientIntensity = -1. , |
||
const Standard_Real | theShininess = -1. , |
||
const Standard_Real | theTransparency = -1. |
||
) |
Constructor
Standard_Real VrmlData_Material::AmbientIntensity | ( | ) | const [inline] |
Query the Ambient Intensity value
virtual Handle< VrmlData_Node > VrmlData_Material::Clone | ( | const Handle< VrmlData_Node > & | theOther | ) | const [virtual] |
Create a copy of this node. If the parameter is null, a new copied node is created. Otherwise new node is not created, but rather the given one is modified.
Reimplemented from VrmlData_Node.
const Quantity_Color& VrmlData_Material::DiffuseColor | ( | ) | const [inline] |
Query the Diffuse color
const Quantity_Color& VrmlData_Material::EmissiveColor | ( | ) | const [inline] |
Query the Emissive color
virtual Standard_Boolean VrmlData_Material::IsDefault | ( | ) | const [virtual] |
Returns True if the node is default, so that it should not be written.
Reimplemented from VrmlData_Node.
virtual VrmlData_ErrorStatus VrmlData_Material::Read | ( | VrmlData_InBuffer & | theBuffer | ) | [virtual] |
Read the Node from input stream.
Implements VrmlData_Node.
void VrmlData_Material::SetAmbientIntensity | ( | const Standard_Real | theAmbientIntensity | ) | [inline] |
Set the Ambient Intensity value
void VrmlData_Material::SetDiffuseColor | ( | const Quantity_Color & | theColor | ) | [inline] |
Query the Diffuse color
void VrmlData_Material::SetEmissiveColor | ( | const Quantity_Color & | theColor | ) | [inline] |
Query the Emissive color
void VrmlData_Material::SetShininess | ( | const Standard_Real | theShininess | ) | [inline] |
Set the Shininess value
void VrmlData_Material::SetSpecularColor | ( | const Quantity_Color & | theColor | ) | [inline] |
Query the Specular color
void VrmlData_Material::SetTransparency | ( | const Standard_Real | theTransparency | ) | [inline] |
Set the Transparency value
Standard_Real VrmlData_Material::Shininess | ( | ) | const [inline] |
Query the Shininess value
const Quantity_Color& VrmlData_Material::SpecularColor | ( | ) | const [inline] |
Query the Specular color
Standard_Real VrmlData_Material::Transparency | ( | ) | const [inline] |
Query the Transparency value
virtual VrmlData_ErrorStatus VrmlData_Material::Write | ( | const char * | thePrefix | ) | const [virtual] |
Write the Node to the Scene output.
Reimplemented from VrmlData_Node.