forked from mcneel/rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RpcCrmProvider.h
34 lines (23 loc) · 1.48 KB
/
RpcCrmProvider.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include "RPCPlugIn.h"
class CRpcCrmProvider : public CRhRdkCustomRenderMeshProvider
{
public:
CRpcCrmProvider(void);
virtual ~CRpcCrmProvider(void);
public:
virtual UUID ProviderId(void) const override;
virtual UUID PlugInId(void) const override;
virtual ON_wString Name(void) const override;
virtual bool IsViewDependent(void) const override { return true; }
virtual bool WillBuildCustomMesh(const ON_Viewport& vp, const CRhinoObject* pObject, const CRhinoDoc& doc,
const UUID& uuidRequestingPlugIn, const CDisplayPipelineAttributes* pAttributes) const override;
virtual ON_BoundingBox BoundingBox(const ON_Viewport& vp, const CRhinoObject* pObject, const CRhinoDoc& doc,
const UUID& uuidRequestingPlugIn, const CDisplayPipelineAttributes* pAttributes) const override;
virtual bool BuildCustomMeshes(const ON_Viewport& vp, const UUID& uuidRequestingPlugIn, const CRhinoDoc& doc,
IRhRdkCustomRenderMeshes& crmInOut, const CDisplayPipelineAttributes* pAttributes, bool bWillBuildCustomMeshCheck) const override;
virtual bool IsRequestingPlugInDependent(void) const override { return false; }
virtual bool IsPreviewAndStandardSameMesh(void) const override { return false; }
virtual CRhRdkVariant GetParameter(const CRhinoObject& object, const wchar_t* wszParamName) const override { return CRhRdkVariant(); }
virtual void SetParameter(const CRhinoObject& object, const wchar_t* wszParamName, const CRhRdkVariant& value) override { }
};