The ColorProperty class RGB color property.
More...
#include <mitkColorProperty.h>
The ColorProperty class RGB color property.
- Note
- If you want to apply the mitk::ColorProperty to an mitk::Image make sure to set the mitk::RenderingModeProperty to a mode which supports color (e.g. LEVELWINDOW_COLOR). For an example how to use the mitk::ColorProperty see mitkImageVtkMapper2DColorTest.cpp in Core/Code/Rendering.
Definition at line 50 of file mitkColorProperty.h.
◆ ConstPointer
◆ Pointer
◆ Self
◆ Superclass
◆ ValueType
◆ ColorProperty() [1/5]
mitk::ColorProperty::ColorProperty |
( |
| ) |
|
|
protected |
◆ ColorProperty() [2/5]
mitk::ColorProperty::ColorProperty |
( |
const ColorProperty & |
other | ) |
|
|
protected |
◆ ColorProperty() [3/5]
mitk::ColorProperty::ColorProperty |
( |
const float |
red, |
|
|
const float |
green, |
|
|
const float |
blue |
|
) |
| |
|
protected |
◆ ColorProperty() [4/5]
mitk::ColorProperty::ColorProperty |
( |
const float |
color[3] | ) |
|
|
protected |
◆ ColorProperty() [5/5]
mitk::ColorProperty::ColorProperty |
( |
const mitk::Color & |
color | ) |
|
|
protected |
◆ Clone()
Pointer mitk::ColorProperty::Clone |
( |
| ) |
const |
◆ FromJSON()
Deserialize property value(s) from JSON.
Rely on exceptions for error handling when implementing deserialization.
- Returns
- False if not deserializable by design, true otherwise.
Implements mitk::BaseProperty.
◆ GetClassHierarchy()
virtual std::vector<std::string> mitk::ColorProperty::GetClassHierarchy |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetClassName()
virtual const char* mitk::ColorProperty::GetClassName |
( |
| ) |
const |
|
virtual |
◆ GetColor()
const mitk::Color& mitk::ColorProperty::GetColor |
( |
| ) |
const |
◆ GetStaticNameOfClass()
static const char* mitk::ColorProperty::GetStaticNameOfClass |
( |
| ) |
|
|
inlinestatic |
◆ GetValue()
const mitk::Color& mitk::ColorProperty::GetValue |
( |
| ) |
const |
◆ GetValueAsString()
std::string mitk::ColorProperty::GetValueAsString |
( |
| ) |
const |
|
overridevirtual |
◆ New() [1/4]
static Pointer mitk::ColorProperty::New |
( |
| ) |
|
|
static |
◆ New() [2/4]
static Pointer mitk::ColorProperty::New |
( |
const float * |
_arg | ) |
|
|
inlinestatic |
◆ New() [3/4]
static Pointer mitk::ColorProperty::New |
( |
const float |
_arga, |
|
|
const float |
_argb, |
|
|
const float |
_argc |
|
) |
| |
|
inlinestatic |
◆ New() [4/4]
◆ operator=()
Assigns property to this BaseProperty instance.
Subclasses must implement Assign(const BaseProperty&) and call the superclass Assign method for proper handling of polymorphic assignments. The assignment operator of the subclass should be disabled and the baseclass operator should be made visible using "using" statements.
◆ SetColor() [1/2]
void mitk::ColorProperty::SetColor |
( |
const mitk::Color & |
color | ) |
|
◆ SetColor() [2/2]
void mitk::ColorProperty::SetColor |
( |
float |
red, |
|
|
float |
green, |
|
|
float |
blue |
|
) |
| |
◆ SetValue()
void mitk::ColorProperty::SetValue |
( |
const mitk::Color & |
color | ) |
|
◆ ToJSON()
Serialize property value(s) to JSON.
Rely on exceptions for error handling when implementing serialization.
- Returns
- False if not serializable by design, true otherwise.
Implements mitk::BaseProperty.
◆ m_Color
The documentation for this class was generated from the following file: