A special property class that can be used to provide a mechanism for selecting an element by index from data representing a set of similar objects.
More...
#include <visualization/IndexSelectorProperty.h>
template<bool Transparent = true>
class mira::IndexSelectorProperty< Transparent >
A special property class that can be used to provide a mechanism for selecting an element by index from data representing a set of similar objects.
The property is initialized with a callback function, which is called on any property change (thus allowing instant redraw).
- Template Parameters
-
Transparent | Controls the appearance in the property editor. If true, an editor spinbox appears inline. If false, this property creates an expandable node with an Index property. Subclasses adding further properties must derive from the Transparent=false specialization. |
◆ IndexSelectorProperty() [1/2]
◆ IndexSelectorProperty() [2/2]
◆ reflect()
void reflect |
( |
Reflector & |
r | ) |
|
|
inline |
◆ index()
◆ setWrapIndex()
void setWrapIndex |
( |
unsigned int |
wrap | ) |
|
|
inherited |
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()
◆ setIndex()
void setIndex |
( |
int |
index | ) |
|
|
protectedinherited |
◆ mIndex
◆ mWrapIndex
◆ mNotifyChange
boost::function< void()> mNotifyChange |
|
protectedinherited |
The documentation for this class was generated from the following file: