Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
VrmlData_Material Class Reference

#include <VrmlData_Material.hxx>

Inheritance diagram for VrmlData_Material:
Inheritance graph
[legend]

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_ColorDiffuseColor () const
const Quantity_ColorEmissiveColor () const
const Quantity_ColorSpecularColor () 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_NodeClone (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

Detailed Description

Implementation of the Material node


Constructor & Destructor Documentation

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


Member Function Documentation

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.

Query the Diffuse color

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.

Read the Node from input stream.

Implements VrmlData_Node.

Set the Ambient Intensity value

Query the Diffuse color

Query the Emissive color

Set the Shininess value

Query the Specular color

Set the Transparency value

Query the Shininess value

Query the Specular color

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.


The documentation for this class was generated from the following file: