47 #ifndef _MIRA_INDEXSELECTORPROPERTY_H_ 48 #define _MIRA_INDEXSELECTORPROPERTY_H_ 66 : mIndex(0), mWrapIndex(INT_MAX/2), mNotifyChange(callback) {}
79 void setWrapIndex(
unsigned int wrap);
83 void setIndex(
int index);
112 template <
bool Transparent = true>
119 template <
typename Class>
124 template <
typename Reflector>
134 template <
typename SerializerTag>
149 template <
typename Class>
154 template <
typename Reflector>
157 r.property(
"Index", mIndex,
159 "The index of the selected element", 0);
IndexSelectorPropertyBase(boost::function< void()> callback)
Definition: IndexSelectorProperty.h:65
Type trait that indicates whether a type should be serialized "transparently", i.e.
Definition: IsTransparentSerializable.h:81
Definition: SyncTimedRead.h:62
int mIndex
Definition: IndexSelectorProperty.h:92
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Class object which supports some kind of class reflection.
Definition: Class.h:97
Setter< T > setter(void(*f)(const T &))
Creates a Setter for global or static class methods taking the argument by const reference.
Definition: GetterSetter.h:443
IndexSelectorProperty(boost::function< void()> callback)
Definition: IndexSelectorProperty.h:146
boost::function< void()> mNotifyChange
Definition: IndexSelectorProperty.h:94
void reflect(Reflector &r)
Definition: IndexSelectorProperty.h:155
int index()
Definition: IndexSelectorProperty.h:69
#define MIRA_GUI_VISUALIZATION_EXPORT
Definition: GuiVisualizationExports.h:61
FrameworkVis export macro declaration.
Non intrusive reflect for OGRE color class.
Base for template class IndexSelectorProperty.
Definition: IndexSelectorProperty.h:62
IndexSelectorProperty(void(Class::*f)(), Class *obj)
Definition: IndexSelectorProperty.h:150
A special property class that can be used to provide a mechanism for selecting an element by index fr...
Definition: IndexSelectorProperty.h:113
IndexSelectorProperty(void(Class::*f)(), Class *obj)
Definition: IndexSelectorProperty.h:120
void reflect(Reflector &r)
Definition: IndexSelectorProperty.h:125
IndexSelectorProperty(boost::function< void()> callback)
Definition: IndexSelectorProperty.h:116
Provides definition for getters and setters that are used with the serialization framework.
int mWrapIndex
Definition: IndexSelectorProperty.h:93