47 #ifndef _MIRA_COLORMAPPROPERTY_H_ 48 #define _MIRA_COLORMAPPROPERTY_H_ 77 template <
typename Reflector>
79 r.delegate(mColormapIdentifier);
82 template <
typename Reflector>
84 r.delegate(mColormapIdentifier);
103 mColormapIdentifier = identifier;
109 const std::string&
str()
const {
110 return mColormapIdentifier;
177 void checkValid()
const;
182 std::string mColormapIdentifier;
183 const ColormapDesc* mColormapDesc;
185 boost::function<bool(const Colormap*)> mFilterFunction;
188 template <
typename SerializerTag>
204 class ComboBoxDelegate;
Abstract base class for all derived property node classes.
Definition: PropertyNode.h:202
ColormapPropertyComboBox(PropertyNode *p, QWidget *parent)
Type trait that indicates whether a type should be serialized "transparently", i.e.
Definition: IsTransparentSerializable.h:81
This file contains classes for different color colormaps (like Jet, HSV, etc.)
Declaration and implementation of the property node hierarchy.
Definition: ColormapProperty.h:193
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
#define MIRA_SPLIT_REFLECT_MEMBER
Macro that insert a class member reflect() method just splitting reflection into a reflectRead() and ...
Definition: SplitReflect.h:209
Base class for continuous color colormaps.
Definition: Colormap.h:217
Provides type trait that indicates whether a type should be serialized "transparently".
static bool filterContinuous(const Colormap *colormap)
A predefined filter function that filters all ContinuousColormap classes.
Definition: ColormapProperty.h:168
Provides MIRA_SPLIT_REFLECT macros.
void slotSetValue(int value)
const Colormap & getColormap() const
Returns the chosen color colormap.
bool isValid() const
Returns true, if a valid colormap was chosen.
PropertyNode * property
Definition: ColormapProperty.h:201
A special property class that can be used as member, if you want to provide a ComboBox where the user...
Definition: ColormapProperty.h:71
const QVector< QRgb > & getColorTable() const
Returns the chosen color colormap as color table in Qt compliant form.
void reflectRead(Reflector &r)
Definition: ColormapProperty.h:78
void setFilter(boost::function< bool(const Colormap *)> filterFunction)
Allows to specify a filter function.
ColormapProperty()
Creates property with no selected colormap.
Definition: ColormapProperty.h:93
Base class for color colormaps.
Definition: Colormap.h:62
bool filter(const Colormap *colormap) const
Returns true, if the specified colormap has passed the optional set filter.
void reflectWrite(Reflector &r)
Definition: ColormapProperty.h:83
const std::string & str() const
Returns the set colormap identifier as string.
Definition: ColormapProperty.h:109
ColormapProperty & operator=(const std::string &identifier)
Assigns colormap identifier string.
Definition: ColormapProperty.h:102