|
Open CASCADE Technology
6.5.4
|
#include <VrmlData_Material.hxx>

Implementation of the Material node
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.
1.8.0