CFx SDK Documentation 2024 SP0
|
#include <GiMaterial.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdGiWoodTexture) | |
OdGiWoodTexture () | |
virtual Type | type () const |
virtual void | setColor1 (const OdGiMaterialColor &woodColor1) |
virtual const OdGiMaterialColor & | color1 (void) const |
virtual void | setColor2 (const OdGiMaterialColor &woodColor2) |
virtual const OdGiMaterialColor & | color2 (void) const |
virtual void | setRadialNoise (double radialNoise) |
virtual double | radialNoise (void) const |
virtual void | setAxialNoise (double axialNoise) |
virtual double | axialNoise (void) const |
virtual void | setGrainThickness (double grainThickness) |
virtual double | grainThickness (void) const |
virtual bool | operator== (const OdGiMaterialTexture &texture) const |
OdGiWoodTexture & | operator= (const OdGiWoodTexture &texture) |
void | copyFrom (const OdRxObject *pSource) |
Public Member Functions inherited from OdGiProceduralTexture | |
ODRX_DECLARE_MEMBERS (OdGiProceduralTexture) | |
virtual Type | type () const =0 |
Public Member Functions inherited from OdGiMaterialTexture | |
ODRX_DECLARE_MEMBERS (OdGiMaterialTexture) | |
virtual bool | operator== (const OdGiMaterialTexture &texture) const |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Public Types inherited from OdGiProceduralTexture | |
enum | Type { kWood = 0 , kMarble = 1 , kGeneric = 2 } |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Member Functions inherited from OdGiProceduralTexture | |
OdGiProceduralTexture () | |
~OdGiProceduralTexture () | |
Protected Member Functions inherited from OdGiMaterialTexture | |
OdGiMaterialTexture () | |
~OdGiMaterialTexture () | |
This class defines wood procedural material textures. Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 1152 of file GiMaterial.h.
|
inline |
Default constructor for the OdGiWoodTexture class. Sets the radial noise, axial noise and grain thickness to 0.
Definition at line 2397 of file GiMaterial.h.
|
inlinevirtual |
Retrieves the axial noise level of the wood grain.
Definition at line 2447 of file GiMaterial.h.
|
inlinevirtual |
Retrieves the color of the first wood grain.
Definition at line 2411 of file GiMaterial.h.
|
inlinevirtual |
Retrieves the color of the second wood grain.
Definition at line 2423 of file GiMaterial.h.
|
inlinevirtual |
Copies the data of the source object to the current object.
pSource | [in] Input source object. |
Reimplemented from OdRxObject.
Definition at line 2488 of file GiMaterial.h.
|
inlinevirtual |
Retrieves the thickness of the wood grain.
Definition at line 2459 of file GiMaterial.h.
OdGiWoodTexture::ODRX_DECLARE_MEMBERS | ( | OdGiWoodTexture | ) |
|
inline |
Assignment operator for the OdGiWoodTexture class. Assigns first and second grain colors, radial and axial noise levels, grain thickness value and returns a reference to the wood texture.
texture | [in] Texture to be assigned. |
Definition at line 2478 of file GiMaterial.h.
|
inlinevirtual |
Equality operator for the OdGiWoodTexture class. Textures are equal if: the specified texture is wooden texture first grain colors are equal second grain colors are equal radial noise levels are equal axial noise levels are equal wood grain thickness values are equal
texture | [in] Texture to be compared. |
Reimplemented from OdGiMaterialTexture.
Definition at line 2465 of file GiMaterial.h.
|
inlinevirtual |
Retrieves the radial noise level of the wood grain.
Definition at line 2435 of file GiMaterial.h.
|
inlinevirtual |
Sets the axial noise level of the wood grain.
axialNoise | [in] Axial noise level. |
Definition at line 2441 of file GiMaterial.h.
|
inlinevirtual |
Sets the color of the first wood grain.
woodColor1 | [in] Color value. |
Definition at line 2405 of file GiMaterial.h.
|
inlinevirtual |
Sets the color of the second wood grain.
woodColor2 | [in] Color value. |
Definition at line 2417 of file GiMaterial.h.
|
inlinevirtual |
Sets the thickness of the wood grain.
grainThickness | [in] Thickness value. |
Definition at line 2453 of file GiMaterial.h.
|
inlinevirtual |
Sets the radial noise level of the wood grain.
radialNoise | [in] Radial noise level. |
Definition at line 2429 of file GiMaterial.h.
|
inlinevirtual |
Retrieves the type of the procedural texture.
Implements OdGiProceduralTexture.
Definition at line 1167 of file GiMaterial.h.