CFx SDK Documentation
2020SP3
|
#include <AveMaterial.h>
Static Public Member Functions | |
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 Member Functions | |
OdAveMaterial () | |
OdAveMaterial (OdAveMaterialImpl *pImpl) | |
Protected Attributes | |
OdAveMaterialImpl * | m_pImpl |
Friends | |
class | OdAveMaterialImpl |
This class represents AVE Material properties for shaded entities.
Corresponding C++ library: TD_Ave <group OdAve_Classes>
Definition at line 55 of file AveMaterial.h.
OdAveMaterial::~OdAveMaterial | ( | ) |
|
protected |
|
protected |
OdUInt32 OdAveMaterial::ambientColor | ( | ) | const |
Returns the ambient (shadow) color of this Material object.
bool OdAveMaterial::ambientColorCurrent | ( | ) | const |
Returns true if and only if the ambient (shadow) color for this Material object is the current entity color, CECOLOR.
double OdAveMaterial::ambientFactor | ( | ) | const |
Returns the ambient (shadow) factor of this Material object.
bool OdAveMaterial::ambientLock | ( | ) | const |
Returns true if and only if the ambient lock flag has been set for this Material object.
bool OdAveMaterial::attachToACI | ( | OdUInt16 | colorIndex | ) |
Attaches this Material object to the specified color index (ACI).
colorIndex | [in] Color index. [1..255] |
bool OdAveMaterial::attachToLayer | ( | OdDbObjectId | layerId | ) |
Attaches this Material object to the specified OdDbLayerTableRecord.
layerId | [in] Object ID of the layer table record. |
bool OdAveMaterial::attachToObject | ( | OdDbObjectId | entityId | ) |
Attaches this Material object to the specified OdDbEntity.
entityId | [in] Object ID of the entity. |
OdAveBitmap& OdAveMaterial::bumpMap | ( | ) |
Returns a reference to, or a copy of, the bump bitmap of this Material object.
const OdAveBitmap& OdAveMaterial::bumpMap | ( | ) | const |
OdString OdAveMaterial::description | ( | ) | const |
Returns the description of this Material object.
|
static |
Detaches this Material object from the specified color index (ACI) for the specified database.
colorIndex | [in] Color index. [1..255] |
pDb | [in] Pointer to the database for the ACI. |
|
static |
Detaches this Material object from the specified OdDbLayerTableRecord.
layerId | [in] Object ID of the layer table record. |
|
static |
Detaches this Material object from the specified OdDbEntity.
entityId | [in] Object ID of the entity. |
OdAveBitmap& OdAveMaterial::diffuseBitmap | ( | ) | const |
Returns a reference to the diffuse (main) bitmap for this Material object.
OdUInt32 OdAveMaterial::diffuseColor | ( | ) | const |
Returns the diffuse (main) color of this Material object.
bool OdAveMaterial::diffuseColorCurrent | ( | ) | const |
Returns true if and only if the diffuse (main) color for this Material object is the current entity color, CECOLOR.
double OdAveMaterial::diffuseFactor | ( | ) | const |
Returns the diffuse (main) factor of this Material object.
|
static |
Returns the ACI Material Map for the specified OdDbDatabase.
blockRefIds | [out] Receives an array[255] of block reference object IDs. |
pDb | [in] Pointer to the database for the ACI. |
blockRefIds are the object IDs of the OdDbBlockReferences associated with the materials.
|
static |
Returns the object ID of the OdDbBlockReference associated with the material to which the specified OdDbEntity or OdDbLayerTableRecord is attached.
sourceId | [in] Object ID of the entity or layer table record. |
blockRefId | [out] Object ID of OdDbBlockReference associated with the material. |
|
static |
Returns the object ID of the OdDbBlockReference associated with the material to which the specified color index (ACI) is attached.
colorIndex | [in] Color index. [1..255] |
blockRefId | [out] Object ID of OdDbBlockReference associated with the material. |
pDb | [in] Pointer to the database of the ACI. |
|
static |
Creates a Material object from the specified OdDbBlockReference.
blockRefId | [in] Object ID of the block reference. |
Returns a SmartPointer to the new Material object.
|
static |
Returns the Material name from the specified OdDbBlockReference.
blockRefId | [in] Object ID of the block reference. |
OdString OdAveMaterial::handleDbMaterial | ( | ) | const |
Returns the handle of the DbMaterial to which has been converted AveMaterial in A2008.
OdDbObjectId OdAveMaterial::holderId | ( | ) | const |
Returns the Object ID of the OdDbBlockReference associated with this Material object.
bool OdAveMaterial::isAttribUsed | ( | OdAve::MaterialAttrib | attributes | ) |
Returns true if and only if any of the specified Material attributes are used in this Material object.
attributes | [in] Material attributes. |
Value kAmbient 0x1
kDiffuse 0x2
kSpecular 0x4
kTransparency 0x8
kRoughness 0x20 kBumpMap 0x40 kReflectionProp 0x100 kRefraction 0x200
OdString OdAveMaterial::name | ( | ) | const |
Returns the name of this Material object.
OdAveMaterial::ODRX_DECLARE_MEMBERS | ( | OdAveMaterial | ) |
double OdAveMaterial::refraction | ( | ) | const |
Returns the refraction index of this Material object.
double OdAveMaterial::roughness | ( | ) | const |
Returns the roughness of this Material.
Sets the ambient (shadow) color of this Material object.
ambientColor | [in] 24-bit RGB color. |
void OdAveMaterial::setAmbientColorCurrent | ( | bool | currentColor | ) |
Controls the use of the current entity color, CECOLOR, as the ambient (shadow) color of this Material object.
currentColor | [in] Controls the use of CECOLOR. |
void OdAveMaterial::setAmbientFactor | ( | double | ambientFactor | ) |
Sets the ambient (shadow) factor of this Material object.
ambientFactor | [in] Ambient factor. [0.0 .. 1.0] |
void OdAveMaterial::setAmbientLock | ( | bool | ambientLock | ) |
Controls the ambient lock flag of this Material object.
ambientLock | [in] Controls ambient lock. |
Sets the description of this Material object.
description | [in] Description. |
Sets the diffuse (main) color of this Material object.
diffuseColor | [in] 24-bit RGB color. |
void OdAveMaterial::setDiffuseColorCurrent | ( | bool | currentColor | ) |
Controls the use of the current entity color, CECOLOR, as the diffuse (main) color of this Material object.
currentColor | [in] Controls the use of CECOLOR. |
void OdAveMaterial::setDiffuseFactor | ( | double | diffuseFactor | ) |
Sets the diffuse (main) factor of this Material object.
diffuseFactor () Diffuse factor. [0.0 .. 1.0]
Sets the DbMaterial handle of this material in A2008.
Sets the name of this Material object.
name | [in] Name. |
void OdAveMaterial::setRefraction | ( | double | refraction | ) | const |
Sets the refraction index of this Material object.
refraction | [in] Refraction. |
void OdAveMaterial::setRoughness | ( | double | ) |
Sets the roughness of this Material object.
roughness | [in] Roughness. [0.0 .. 1.0] |
Sets the specular (reflection) color of this Material object.
specularColor | [in] 24-bit RGB color. |
void OdAveMaterial::setSpecularColorCurrent | ( | bool | colorCurrrent | ) |
Controls the use of the current entity color, CECOLOR, as the specular (reflection) color of this Material object.
currentColor | [in] Controls the use of CECOLOR. |
void OdAveMaterial::setSpecularFactor | ( | double | specularFactor | ) |
Sets the specular (reflection) factor of this Material object.
specularFactor | [in] Specular factor. [0.0 .. 1.0] |
void OdAveMaterial::setSpecularLock | ( | bool | specularLock | ) |
Controls the specular lock flag of this Material object.
specularLock | [in] Controls specular lock |
void OdAveMaterial::setSpecularMirror | ( | bool | mirror | ) |
Controls the mirroring of specular reflections for this Material object.
mirror | [in] Controls mirroring. |
void OdAveMaterial::setTransparency | ( | double | transparency | ) |
Returns the transparency of this Material object.
transparency | [in] Transparency. [0.0 .. 1.0] |
Renders 0.0 Opaque. 1.0 Totally transparent.
OdAveBitmap& OdAveMaterial::specularBitmap | ( | ) |
Returns a reference to, or a copy of, the specular (reflection) bitmap of this Material object.
const OdAveBitmap& OdAveMaterial::specularBitmap | ( | ) | const |
OdUInt32 OdAveMaterial::specularColor | ( | ) | const |
Returns the specular (reflection) color of this Material object.
bool OdAveMaterial::specularColorCurrent | ( | ) | const |
Returns true if and only if the specular (reflection) color for this Material object is the current entity color, CECOLOR.
double OdAveMaterial::specularFactor | ( | ) | const |
Returns the specular (reflection) factor of this Material object.
bool OdAveMaterial::specularLock | ( | ) | const |
Returns true if and only if the specular lock flag has been set for this Material object.
bool OdAveMaterial::specularMirror | ( | ) | const |
Returns true if and only if specular reflections are to be mirrored for this Material object.
double OdAveMaterial::transparency | ( | ) | const |
Returns the transparency of this Material object.
OdAveBitmap& OdAveMaterial::transparencyBitmap | ( | ) | const |
Returns a reference to the transparency bitmap of this Material object.
|
virtual |
Returns the type of this Material object.
Value kStandard 0 kGranite 1 kMarble 2 kWood 3
Reimplemented in OdAveWoodMaterial, OdAveMarbleMaterial, and OdAveGraniteMaterial.
OdResult OdAveMaterial::writeMaterial | ( | OdDbDatabase * | pDb = NULL , |
const OdDbHandle & | holderHandle = 0 |
||
) |
Saves the Material properties to the OdDbBlockReference to which this Material object is associated.
pDb | [in] Pointer to the database. |
|
friend |
Definition at line 531 of file AveMaterial.h.
|
protected |
Definition at line 530 of file AveMaterial.h.