Rhino C++ API
8.17
|
#include <IRhRdkCustomRenderMeshManager.h>
Public Member Functions | |
virtual | ~IRhRdkCustomRenderMeshes2 () |
virtual void | AddMeshInstance (ON_Mesh *pMesh, const CRhRdkMaterial *pMaterial, const ON_Xform &instance_transform)=0 |
virtual const CRhRdkObjectAncestry * | Ancestry (void) const =0 |
virtual void | ApplyTransformToAllMeshes (const ON_Xform &xform)=0 |
virtual bool | AutoDeleteMaterialsOn (void) const =0 |
virtual bool | AutoDeleteMeshesOn (void) const =0 |
virtual void | Clear (void)=0 |
virtual const ON_Mesh * | MeshInstance (int iIndex, ON_Xform &instance_transform) const =0 |
virtual const UUID & | OriginalMaterialId (int iIndex) const =0 |
virtual void | SetAncestry (const class CRhRdkObjectAncestry &pAncestry)=0 |
virtual void | SetUseCache (bool bUseCache)=0 |
virtual bool | UseCache (void) const =0 |
![]() | |
virtual | ~IRhRdkCustomRenderMeshes () |
virtual void | Add (const ON_Cone &cone, const ON_Plane &truncation, const CRhRdkMaterial *pMaterial)=0 |
virtual void | Add (const ON_PlaneSurface &plane, const CRhRdkMaterial *pMaterial)=0 |
virtual void | Add (const ON_PlaneSurface &plane, const ON_Interval &cz, const CRhRdkMaterial *pMaterial)=0 |
virtual void | Add (const ON_Sphere &sphere, const CRhRdkMaterial *pMaterial)=0 |
virtual void | Add (ON_Mesh *pMesh, const CRhRdkMaterial *pMaterial)=0 |
virtual bool | Box (int iIndex, ON_PlaneSurface &plane, ON_Interval &z_interval) const =0 |
virtual bool | Cone (int iIndex, ON_Cone &cone, ON_Plane &truncation) const =0 |
virtual void | ConvertMeshesToTriangles (void)=0 |
virtual int | Count (void) const =0 |
virtual void * | EVF (const wchar_t *, void *)=0 |
virtual const ON_Xform & | GetInstanceTransform (void) const =0 |
virtual const CRhRdkMaterial * | Material (int iIndex) const =0 |
virtual const ON_Mesh * | Mesh (int iIndex) const =0 |
virtual const CRhinoObject * | Object (void) const =0 |
virtual bool | Plane (int iIndex, ON_PlaneSurface &plane) const =0 |
virtual RhRdkRenderMeshPrimitiveTypes | PrimitiveType (int iIndex) const =0 |
virtual UUID | ProviderId (void) const =0 |
virtual void | SetAutoDeleteMaterialsOn (void)=0 |
virtual void | SetAutoDeleteMeshesOn (void)=0 |
virtual void | SetInstanceTransform (const ON_Xform &xformInstance)=0 |
virtual void | SetProviderId (const UUID &uuidRMP)=0 |
virtual void | SetUseObjectsMappingChannels (bool bSet)=0 |
virtual bool | Sphere (int iIndex, ON_Sphere &sphere) const =0 |
virtual bool | UseObjectsMappingChannels (void) const =0 |
Static Public Member Functions | |
static const IRhRdkCustomRenderMeshes2 * | Promote (const IRhRdkCustomRenderMeshes *) |
static IRhRdkCustomRenderMeshes2 * | Promote (IRhRdkCustomRenderMeshes *) |
![]() | |
static void | Delete (IRhRdkCustomRenderMeshes *) |
static IRhRdkCustomRenderMeshes * | New (const CRhinoObject *pObject) |
This interface is a collection of custom render meshes for a particular Rhino object. It extends IRhRdkCustomRenderMeshes and can be exposed from an IRhRdkCustomRenderMeshes pointer using IRhRdkCustomRenderMeshes2::Promote(). Do not up-cast; always use Promote. It is used by the custom render mesh provider platform.
|
inlinevirtual |
|
pure virtual |
Adds a mesh/transform to the collection.
pMesh | pointer to the mesh. Note that you can add the same mesh over and over with different transforms. If SetAutoDeleteMeshesOn has been called prior to calling Add, the mesh will be copied. |
pMaterial | is the material to add. Can be NULL if not needed. If SetAutoDeleteMaterialsOn() has been called prior to calling Add(), the material will be copied. |
instance_transform | is the transformation of this mesh. |
|
pure virtual |
Gets the ancenstry of meshes in the collection.
Implements IRhRdkCustomRenderMeshes.
|
pure virtual |
Transform all of the meshes in the collection.
xform | is the transformation to apply. |
|
pure virtual |
Gets the ownership of materials in the collection.
|
pure virtual |
Gets the ownership of meshes in the collection.
|
pure virtual |
Clear the collection of custom render meshes.
|
pure virtual |
Get a mesh by its index with support for instanced, transformed meshes.
iIndex | is the mesh index which must be >= 0 and < Count(). |
instance_transform | is the instance transform if this mesh has one. Otherwise this will be identity. |
|
pure virtual |
Gets the instance id of the material for this index. Since materials are generally copied, they will have different instance ids to the ones in the document.
|
static |
Return a IRhRdkCustomRenderMeshes2 interface pointer for a given IRhRdkCustomRenderMeshes interface pointer if one exists.
|
static |
Return a IRhRdkCustomRenderMeshes2 interface pointer for a given IRhRdkCustomRenderMeshes interface pointer if one exists.
|
pure virtual |
Sets the ancenstry of meshes in the collection. This is used to identify which instance chain the meshes refer to.
|
pure virtual |
Sets cache usages for the collection.
|
pure virtual |
Gets cache usages for the collection.