DGtal 1.4.0
Loading...
Searching...
No Matches
DGtal::Display3D< Space, KSpace >::SelectCallbackFctStore Struct Reference

#include <DGtal/io/Display3D.h>

Public Member Functions

 SelectCallbackFctStore (SelectCallbackFct _fct, void *_data, DGtal::int32_t _min, DGtal::int32_t _max)
 
bool operator< (const SelectCallbackFctStore &other) const
 
bool isSelected (DGtal::int32_t name) const
 

Data Fields

SelectCallbackFct fct
 
void * data
 
DGtal::int32_t min
 
DGtal::int32_t max
 

Detailed Description

template<typename Space = Z3i::Space, typename KSpace = Z3i::KSpace>
struct DGtal::Display3D< Space, KSpace >::SelectCallbackFctStore

Structure for storing select callback functions. The select callback function is called whenever the user select a graphical object with "OpenGL name" in [min,max]. The order relation is used to find quickly the correct function.

Definition at line 117 of file Display3D.h.

Constructor & Destructor Documentation

◆ SelectCallbackFctStore()

template<typename Space = Z3i::Space, typename KSpace = Z3i::KSpace>
DGtal::Display3D< Space, KSpace >::SelectCallbackFctStore::SelectCallbackFctStore ( SelectCallbackFct _fct,
void * _data,
DGtal::int32_t _min,
DGtal::int32_t _max )
inline

Definition at line 118 of file Display3D.h.

Member Function Documentation

◆ isSelected()

template<typename Space = Z3i::Space, typename KSpace = Z3i::KSpace>
bool DGtal::Display3D< Space, KSpace >::SelectCallbackFctStore::isSelected ( DGtal::int32_t name) const
inline

◆ operator<()

template<typename Space = Z3i::Space, typename KSpace = Z3i::KSpace>
bool DGtal::Display3D< Space, KSpace >::SelectCallbackFctStore::operator< ( const SelectCallbackFctStore & other) const
inline

Definition at line 122 of file Display3D.h.

123 {
124 return ( min < other.min ); // simple since there is no overlap.
125 }

References DGtal::Display3D< Space, KSpace >::SelectCallbackFctStore::min.

Field Documentation

◆ data

template<typename Space = Z3i::Space, typename KSpace = Z3i::KSpace>
void* DGtal::Display3D< Space, KSpace >::SelectCallbackFctStore::data

Definition at line 130 of file Display3D.h.

◆ fct

template<typename Space = Z3i::Space, typename KSpace = Z3i::KSpace>
SelectCallbackFct DGtal::Display3D< Space, KSpace >::SelectCallbackFctStore::fct

Definition at line 129 of file Display3D.h.

◆ max

template<typename Space = Z3i::Space, typename KSpace = Z3i::KSpace>
DGtal::int32_t DGtal::Display3D< Space, KSpace >::SelectCallbackFctStore::max

◆ min

template<typename Space = Z3i::Space, typename KSpace = Z3i::KSpace>
DGtal::int32_t DGtal::Display3D< Space, KSpace >::SelectCallbackFctStore::min

The documentation for this struct was generated from the following file: