DGtal 2.0.0
|
A general callback for the viewer to give control to the user. More...
#include <DGtal/io/Display3D.h>
Public Member Functions | |
virtual void | OnAttach (void *viewer) |
Called when setCallback is performed on the viewer. | |
virtual void | OnUI (void *viewerData) |
Called to render or interact with some UI. | |
virtual void | OnClick (const std::string &name, size_t index, const DisplayData< RealPoint > &data, void *viewerData) |
Called when an element is clicked. | |
Data Fields | |
Display3D< Space, KSpace > * | viewer = nullptr |
A general callback for the viewer to give control to the user.
There are no guarentees on the thread-safeness of this class.
Definition at line 402 of file Display3D.h.
|
inlinevirtual |
Called when setCallback is performed on the viewer.
This is callback can be used to store the pointer to a particular instance of the viewer.
If only general properties are needed, use the Callback::viewer member which is set prior calling this function.
viewer | A pointer to the viewer on which this callback is attached |
Definition at line 414 of file Display3D.h.
|
inlinevirtual |
Called when an element is clicked.
name | The name of the structure containing the element |
index | The index within the clicked structure |
data | The Display3D data associated with this structure |
viewerData | Viewer-dependent data associated with the click |
Definition at line 431 of file Display3D.h.
|
inlinevirtual |
Called to render or interact with some UI.
viewerData | Some viewer-dependent data to draw UI (context) |
Definition at line 420 of file Display3D.h.
Definition at line 434 of file Display3D.h.