9 #ifndef CMZN_SELECTION_HPP__ 10 #define CMZN_SELECTION_HPP__ 12 #include "opencmiss/zinc/selection.h" 28 cmzn_selectionevent_id id;
36 explicit Selectionevent(cmzn_selectionevent_id in_selection_event_id) :
37 id(in_selection_event_id)
41 id(cmzn_selectionevent_access(selectionEvent.id))
67 cmzn_selectionevent_id temp_id = cmzn_selectionevent_access(selectionEvent.id);
70 cmzn_selectionevent_destroy(&
id);
80 cmzn_selectionevent_destroy(&
id);
99 cmzn_selectionevent_id
getId()
const 114 return static_cast<ChangeFlag>(cmzn_selectionevent_get_change_flags(
id));
134 static void C_callback(cmzn_selectionevent_id selectionevent_id,
void *callbackVoid)
136 Selectionevent selectionevent(cmzn_selectionevent_access(selectionevent_id));
138 (*callback)(selectionevent);
141 virtual void operator()(
const Selectionevent &selectionevent) = 0;
161 cmzn_selectionnotifier_id id;
170 id(in_selectionnotifier_id)
174 id(cmzn_selectionnotifier_access(selectionNotifier.id))
179 cmzn_selectionnotifier_id temp_id = cmzn_selectionnotifier_access(selectionNotifier.id);
182 cmzn_selectionnotifier_destroy(&
id);
192 cmzn_selectionnotifier_destroy(&
id);
211 cmzn_selectionnotifier_id
getId()
const 228 return cmzn_selectionnotifier_set_callback(
229 id, callback.C_callback, static_cast<void*>(&callback));
240 return cmzn_selectionnotifier_clear_callback(
id);
bool isValid() const
Definition: selection.hpp:201
bool isValid() const
Definition: selection.hpp:89
Definition: selection.hpp:51
int setCallback(Selectioncallback &callback)
Definition: selection.hpp:226
Information about changes to the selection group in the scene.
Definition: selection.hpp:25
ChangeFlags getChangeFlags() const
Definition: selection.hpp:112
Manages individual user notification of changes to the selection group.
Definition: selection.hpp:158
int clearCallback()
Definition: selection.hpp:238
cmzn_selectionnotifier_id getId() const
Definition: selection.hpp:211
Definition: selection.hpp:53
ChangeFlag
Definition: selection.hpp:47
Base class functor for Selection notifier callbacks:
Definition: selection.hpp:127
Definition: selection.hpp:55
The OpenCMISS namespace.
Definition: context.hpp:20
int ChangeFlags
Definition: selection.hpp:63
Definition: selection.hpp:49
cmzn_selectionevent_id getId() const
Definition: selection.hpp:99