-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCustomEventWatcher.cpp
48 lines (42 loc) · 1.12 KB
/
CustomEventWatcher.cpp
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include "StdAfx.h"
#include "CustomEventWatcher.h"
//Implementation of CCustomEventWatcher class
CCustomEventWatcher::CCustomEventWatcher()
{
}
CCustomEventWatcher::~CCustomEventWatcher()
{
}
void CCustomEventWatcher::OnAddObject(
CRhinoDoc& doc,
CRhinoObject& object
)
{
RhinoApp().Print("Event watcher caught OnAddObject\n");
//This is a good place perform any logic that you see necessary in your plug-in
}
void CCustomEventWatcher::OnDeleteObject(
CRhinoDoc& doc,
CRhinoObject& object
)
{
RhinoApp().Print("Event watcher caught OnDeleteObject\n");
//This is a good place perform any logic that you see necessary in your plug-in
}
void CCustomEventWatcher::OnReplaceObject(
CRhinoDoc& doc,
CRhinoObject& old_object,
CRhinoObject& new_object
)
{
RhinoApp().Print("Event watcher caught OnReplaceObject\n");
//This is a good place perform any logic that you see necessary in your plug-in
}
void CCustomEventWatcher::OnUnDeleteObject(
CRhinoDoc& doc,
CRhinoObject& object
)
{
RhinoApp().Print("Event watcher caught OnUnDeleteObject\n");
//This is a good place perform any logic that you see necessary in your plug-in
}