CFx SDK Documentation
2023 SP0
|
#include <AveMaterial.h>
Public Types | |
enum | GraniteColor { kFirst = 0 , kSecond = 1 , kThird = 2 , kFourth = 3 } |
Protected Member Functions | |
OdAveGraniteMaterial () | |
OdAveGraniteMaterial (OdAveMaterialImpl *pImpl) | |
Protected Member Functions inherited from OdAveMaterial | |
OdAveMaterial () | |
OdAveMaterial (OdAveMaterialImpl *pImpl) | |
Additional Inherited Members | |
Static Public Member Functions inherited from OdAveMaterial | |
static OdAveMaterialPtr | getMaterial (const OdDbObjectId &blockRefId) |
static OdString | getMaterialName (const OdDbObjectId &blockRefId) |
static void | detachFromObject (OdDbObjectId entityId) |
static void | detachFromLayer (OdDbObjectId layerId) |
static void | detachFromACI (OdDbDatabase *pDb, OdUInt16 colorIndex) |
static bool | getAttachedMaterial (const OdDbObjectId &sourceId, OdDbObjectId &blockRefId) |
static bool | getAttachedMaterial (OdDbDatabase *pDb, OdUInt16 colorIndex, OdDbObjectId &blockRefId) |
static void | getAciMaterialMap (OdDbDatabase *pDb, OdDbObjectIdArray &blockRefIds) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Attributes inherited from OdAveMaterial | |
OdAveMaterialImpl * | m_pImpl |
This class represents AVE Granite Material properties for shaded entities.
<group OdAve_Classes>
Definition at line 543 of file AveMaterial.h.
Defines the color index for each of the four colors that are present in a Granite Material object.
Enumerator | |
---|---|
kFirst | |
kSecond | |
kThird | |
kFourth |
Definition at line 552 of file AveMaterial.h.
|
protected |
|
protected |
OdUInt32 OdAveGraniteMaterial::color | ( | GraniteColor | graniteColor | ) |
Returns the color for the specified granite color of this Granite Material object.
graniteColor | [in] Granite color. |
graniteColor must be one of the following:
Value kFirst 0 kSecond 1 kThird 2 kFourth 3
double OdAveGraniteMaterial::colorFactor | ( | GraniteColor | graniteColor | ) |
Returns the color factor for the specified granite color of this Granite Material object.
graniteColor | [in] Granite color. |
graniteColor must be one of the following:
Value kFirst 0 kSecond 1 kThird 2 kFourth 3
OdAveGraniteMaterial::ODRX_DECLARE_MEMBERS | ( | OdAveGraniteMaterial | ) |
double OdAveGraniteMaterial::scale | ( | ) |
Returns the scale of this Granite Material object.
void OdAveGraniteMaterial::setColor | ( | GraniteColor | graniteColor, |
OdUInt32 | color | ||
) |
Sets the color for the specified granite color for this Granite Material object.
graniteColor | [in] Granite color. |
color | [in] 24-bit RGB color. |
Value kFirst 0 kSecond 1 kThird 2 kFourth 3
There are four colors associated with a Granite Material object. To use less than four materials, make two or more of them the same, or set one or more of them to 0.
void OdAveGraniteMaterial::setColorFactor | ( | GraniteColor | graniteColor, |
double | colorFactor | ||
) |
Sets the color factor for the specified granite color of this Granite Material object.
graniteColor | [in] Granite color. |
colorFactor | [in] Color factor. [0.0 .. 1.0] |
graniteColor must be one of the following:
Value kFirst 0 kSecond 1 kThird 2 kFourth 3
There are four colors associated with a Granite Material object. To use less than four materials, make two or more of them the same, or set one or more of them to 0.
void OdAveGraniteMaterial::setScale | ( | double | scale | ) |
Sets the scale of this Granite Material object.
scale | [in] Scale. |
void OdAveGraniteMaterial::setSharpness | ( | double | sharpness | ) |
Sets the sharpness of this Granite Material object.
sharpness | [in] Sharpness. [0.0 .. 1.0] |
double OdAveGraniteMaterial::sharpness | ( | ) |
Returns the sharpness of this Material object.
Renders 0.0 Colors are melded. 1.0 Colors are discrete.
|
virtual |
Returns the type of this Material object.
Value kStandard 0 kGranite 1 kMarble 2 kWood 3
Reimplemented from OdAveMaterial.