MIRA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
IndexSelectorPropertyBase Class Reference

Base for template class IndexSelectorProperty. More...

#include <visualization/IndexSelectorProperty.h>

Inheritance diagram for IndexSelectorPropertyBase:
Inheritance graph
[legend]

Public Member Functions

 IndexSelectorPropertyBase (boost::function< void()> callback)
 
int index ()
 
void setWrapIndex (unsigned int wrap)
 Dynamically set the first invalid index, usually according to the visualized data itself (once it is known). More...
 

Protected Member Functions

void wrapIndex ()
 
void setIndex (int index)
 

Protected Attributes

int mIndex
 
int mWrapIndex
 
boost::function< void()> mNotifyChange
 

Detailed Description

Base for template class IndexSelectorProperty.

Constructor & Destructor Documentation

◆ IndexSelectorPropertyBase()

IndexSelectorPropertyBase ( boost::function< void()>  callback)
inline

Member Function Documentation

◆ index()

int index ( )
inline

◆ setWrapIndex()

void setWrapIndex ( unsigned int  wrap)

Dynamically set the first invalid index, usually according to the visualized data itself (once it is known).

Adapts the currently selected index, but does not trigger a redraw itself, so it is safe to call this from within the drawing method, then use the (wrapped) index for actual drawing.

◆ wrapIndex()

void wrapIndex ( )
protected

◆ setIndex()

void setIndex ( int  index)
protected

Member Data Documentation

◆ mIndex

int mIndex
protected

◆ mWrapIndex

int mWrapIndex
protected

◆ mNotifyChange

boost::function< void()> mNotifyChange
protected

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