DGtal  0.9.3beta
Public Member Functions | Data Fields
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

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.

121  : fct( _fct ), data( _data ), min( _min ), max( _max ) {}

Member Function Documentation

template<typename Space = Z3i::Space, typename KSpace = Z3i::KSpace>
bool DGtal::Display3D< Space, KSpace >::SelectCallbackFctStore::isSelected ( DGtal::int32_t  name) const
inline
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.

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

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

Field Documentation

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

Definition at line 130 of file Display3D.h.

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

Definition at line 129 of file Display3D.h.

template<typename Space = Z3i::Space, typename KSpace = Z3i::KSpace>
DGtal::int32_t DGtal::Display3D< Space, KSpace >::SelectCallbackFctStore::max
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: