-
Notifications
You must be signed in to change notification settings - Fork 5
/
RpcEventWatcher.h
33 lines (28 loc) · 1.1 KB
/
RpcEventWatcher.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
#pragma once
class CRpcEventWatcher : public CRhinoEventWatcher, public CRhinoOnTransformObject
{
public:
CRpcEventWatcher(void);
~CRpcEventWatcher(void);
public:
bool IsMergingDocument(void) const;
bool IsReferenceDocument(void) const;
bool IsOpeningDocument(void) const;
void SetReadingRpcData(void);
public:
void OnNewDocument(CRhinoDoc& doc) override;
void OnBeginOpenDocument(CRhinoDoc& doc, const wchar_t* filename, BOOL bMerge, BOOL bReference) override;
void OnEndOpenDocument(CRhinoDoc& doc, const wchar_t* filename, BOOL bMerge, BOOL bReference) override;
void OnAddObject(CRhinoDoc& doc, CRhinoObject& object) override;
void OnDeleteObject(CRhinoDoc& doc, CRhinoObject& object) override;
void OnReplaceObject(CRhinoDoc& doc, CRhinoObject& old_object, CRhinoObject& new_object) override;
void OnUnDeleteObject(CRhinoDoc& doc, CRhinoObject& object) override;
// Inherited via CRhinoOnTransformObject
void Notify(const CRhinoOnTransformObject::CParameters & params) override;
private:
bool m_bMergeDocument;
bool m_bReferenceDocument;
bool m_bReadRpcData;
bool m_bOpeningDocument;
bool isCopy;
};