Rhino C++ API
8.14
|
#include <RhRdkObjectDataAccess.h>
Public Member Functions | |
CRhRdkObjectDataAccess (const CRhinoDoc &doc, const UUID &uuidRhinoObject) | |
CRhRdkObjectDataAccess (const CRhinoLayer *pRhinoLayer) | |
CRhRdkObjectDataAccess (const CRhinoObject *pRhinoObject) | |
RDK_DEPRECATED | CRhRdkObjectDataAccess (const UUID &uuidRhinoObject) |
virtual | ~CRhRdkObjectDataAccess () |
RDK_DECAL_CRC | AddDecal (const IRhRdkDecal &decal) const |
virtual void * | EVF (const wchar_t *wszFunc, void *pvData) |
virtual bool | GetUsedMappingChannels (ON_SimpleArray< int > &arrayOut) const |
virtual bool | Mapping (int iChannelId, ON_TextureMapping &mappingOut, ON_Xform &xformLocalOut) const |
virtual UUID | MaterialInstanceId (void) const |
virtual CRhRdkDecalIterator * | NewDecalIterator (const UUID &uuidRenderEngine=RhinoApp().GetDefaultRenderApp()) const |
virtual UUID | ObjectMaterial (const CRhRdkObjectAncestry *) const |
virtual bool | RemoveAllDecals (void) const |
virtual bool | RemoveDecal (RDK_DECAL_CRC id) const |
virtual bool | SetMaterialInstanceId (const CRhRdkMaterial *pMaterial) const |
bool | SetMaterialInstanceId (const CRhRdkMaterial *pMaterial, bool bClearPerFace) const |
virtual bool | SetMaterialInstanceId (const UUID &uuidMaterialInstance) const |
void | SetVerifyInstanceId (bool b) |
This class provides a means of accessing data associated with a Rhino object or layer.
|
virtual |
CRhRdkObjectDataAccess::CRhRdkObjectDataAccess | ( | const CRhinoDoc & | doc, |
const UUID & | uuidRhinoObject | ||
) |
Construct to access data of Rhino object by object uuid.
RDK_DEPRECATED CRhRdkObjectDataAccess::CRhRdkObjectDataAccess | ( | const UUID & | uuidRhinoObject | ) |
Deprecated; not document-aware.
CRhRdkObjectDataAccess::CRhRdkObjectDataAccess | ( | const CRhinoObject * | pRhinoObject | ) |
Construct to access data of Rhino object by object pointer.
CRhRdkObjectDataAccess::CRhRdkObjectDataAccess | ( | const CRhinoLayer * | pRhinoLayer | ) |
Construct to access data of Rhino layer by layer pointer.
RDK_DECAL_CRC CRhRdkObjectDataAccess::AddDecal | ( | const IRhRdkDecal & | decal | ) | const |
Add a new decal to the object.
|
virtual |
Emergency virtual function for future expansion.
|
virtual |
Get an array of used mapping channel ids.
arrayOut | is filled with 1-based channel identifiers. |
|
virtual |
Get the mapping and local xform for a channel.
iChannelId | is the channel identifier (1-based). |
mappingOut | receives a copy of the mapping. |
xformLocalOut | receives the local transform associated with the channel. |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Remove all decals from the object.
|
virtual |
Remove the specified decal from the object.
|
virtual |
Set an RDK material to be associated with the object or layer.
pMaterial | is a pointer to the material. |
bool CRhRdkObjectDataAccess::SetMaterialInstanceId | ( | const CRhRdkMaterial * | pMaterial, |
bool | bClearPerFace | ||
) | const |
Set an RDK material to be associated with the object.
pMaterial | is a pointer to the material. |
bClearPerFace | if true will cause per-face materials to be cleared. Otherwise they will be retained. Only makes sense for objects, not layers. |
|
virtual |
Set an RDK material to be associated with the object or layer.
uuidMaterialInstance | is the instance id of the material. |
void CRhRdkObjectDataAccess::SetVerifyInstanceId | ( | bool | b | ) |
By default, content instance ids are verified as existing in the document. In certain cases this verification may not be required. It can be disabled and re-enabled by calling this method.