Rhino C++ API  9.0
Public Member Functions | List of all members
RhRdk::CustomRenderMeshes::IManager2 Class Referenceabstract

#include <IRhRdkCustomRenderMeshes.h>

Inheritance diagram for RhRdk::CustomRenderMeshes::IManager2:
RhRdk::CustomRenderMeshes::IManager

Public Member Functions

virtual bool HasCustomRenderMeshes2 (ON::mesh_type mt, const ON_Viewport &vp, const CRhinoDoc &doc, const ON_UUID &objectId, const CRhinoObject *pObject, ON__UINT32 &flags, const CRhinoPlugIn *requestingPlugIn, const CDisplayPipelineAttributes *pAttributes) const =0
 
virtual std::shared_ptr< const IRenderMeshesRenderMeshes2 (ON::mesh_type mt, const ON_Viewport &vp, const CRhinoDoc &doc, const ObjectId &objectId, const CRhinoObject *pObject, const CRhRdkObjectAncestry &ancestry_only_for_by_parent_attributes, ON__UINT32 &flags, const CRhinoPlugIn *requestingPlugIn=nullptr, const CDisplayPipelineAttributes *pAttributes=nullptr, std::shared_ptr< const IRenderMeshes > optional_initial_primitives=nullptr) const =0
 
- Public Member Functions inherited from RhRdk::CustomRenderMeshes::IManager
virtual ~IManager ()
 
virtual ON_BoundingBox BoundingBox (ON::mesh_type mt, const ON_Viewport &vp, const CRhinoDoc &doc, const ObjectId &objectId, const CRhRdkObjectAncestry &ancestry_only_for_by_parent_attributes, ON__UINT32 &flags, const CRhinoPlugIn *requestingPlugIn=nullptr, const CDisplayPipelineAttributes *pAttributes=nullptr, std::shared_ptr< const IRenderMeshes > optional_initial_primitives=nullptr) const =0
 The bounding box for the complete set of custom render meshes for this object Id. Note that the input parameters are the same as for CustomMeshes because typically this function is implemented by calling CustomMeshes and calculating the bounding box. In that case, it is important to cache the finished primitives at this point rather than calcuating them again for the call to CustomMeshes. More...
 
virtual void * EVF (const wchar_t *, void *)=0
 Emergency virtual function for future expansion More...
 
virtual bool HasCustomRenderMeshes (ON::mesh_type mt, const ON_Viewport &vp, const CRhinoDoc &doc, const ON_UUID &objectId, ON__UINT32 &flags, const CRhinoPlugIn *requestingPlugIn, const CDisplayPipelineAttributes *pAttributes) const =0
 Determine if custom render meshes will be supplied for a particular object. More...
 
virtual std::vector< ObjectIdNonObjectIds (void) const =0
 Providers may optionally return a collection of non-object Ids that they will provide custom render meshes for. An example of this is Grasshopper, which which will typically return a collection of the Ids of each CustomPreview component. This function returns a complete list of all of the NonObjectIds returned from all registered MeshProviders. More...
 
virtual std::vector< std::unique_ptr< IRenderMeshProvider::IProgress > > Progress (const CRhinoDoc &doc, const std::vector< ObjectId > *pOptionalObjects) const =0
 Get the current progress for either the whole document, or for a collection of objects More...
 
virtual const IRenderMeshProviderProvider (const MeshProviderId &uuidProvider) const =0
 Get an interface to a specific Mesh provider previously registered with the RDK using RhRdkAddExtension. More...
 
virtual std::shared_ptr< const IRenderMeshesRenderMeshes (ON::mesh_type mt, const ON_Viewport &vp, const CRhinoDoc &doc, const ObjectId &objectId, const CRhRdkObjectAncestry &ancestry_only_for_by_parent_attributes, ON__UINT32 &flags, const CRhinoPlugIn *requestingPlugIn=nullptr, const CDisplayPipelineAttributes *pAttributes=nullptr, std::shared_ptr< const IRenderMeshes > optional_initial_primitives=nullptr) const =0
 Returns a complete set of custom render meshes (primitives) for a given ObjectId. More...
 
virtual ON__UINT32 RenderMeshesHash (ON::mesh_type mt, const ON_Viewport &vp, const CRhinoDoc &doc, const ObjectId &objectId, const CRhRdkObjectAncestry &ancestry_only_for_by_parent_attributes, ON__UINT32 &flags, const CRhinoPlugIn *requestingPlugIn=nullptr, const CDisplayPipelineAttributes *pAttributes=nullptr, std::shared_ptr< const IRenderMeshes > optional_initial_primitives=nullptr) const =0
 Returns a Hash which identifies a particular state of the custom meshes for rendering purposes. Note that this includes the hashing of material and mapping if they are returned as empty in IRenderMeshes. More...
 

Member Function Documentation

◆ HasCustomRenderMeshes2()

virtual bool RhRdk::CustomRenderMeshes::IManager2::HasCustomRenderMeshes2 ( ON::mesh_type  mt,
const ON_Viewport vp,
const CRhinoDoc doc,
const ON_UUID objectId,
const CRhinoObject pObject,
ON__UINT32 flags,
const CRhinoPlugIn requestingPlugIn,
const CDisplayPipelineAttributes pAttributes 
) const
pure virtual

◆ RenderMeshes2()

virtual std::shared_ptr<const IRenderMeshes> RhRdk::CustomRenderMeshes::IManager2::RenderMeshes2 ( ON::mesh_type  mt,
const ON_Viewport vp,
const CRhinoDoc doc,
const ObjectId objectId,
const CRhinoObject pObject,
const CRhRdkObjectAncestry ancestry_only_for_by_parent_attributes,
ON__UINT32 flags,
const CRhinoPlugIn requestingPlugIn = nullptr,
const CDisplayPipelineAttributes pAttributes = nullptr,
std::shared_ptr< const IRenderMeshes optional_initial_primitives = nullptr 
) const
pure virtual