Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::ColorProperty Class Reference

The ColorProperty class RGB color property. More...

#include <mitkColorProperty.h>

Inheritance diagram for mitk::ColorProperty:
Collaboration diagram for mitk::ColorProperty:

Public Types

typedef ColorProperty Self
 
typedef BaseProperty Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef mitk::Color ValueType
 
- Public Types inherited from mitk::BaseProperty
typedef BaseProperty Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
Pointer Clone () const
 
const mitk::ColorGetColor () const
 
const mitk::ColorGetValue () const
 
std::string GetValueAsString () const override
 
void SetColor (const mitk::Color &color)
 
void SetValue (const mitk::Color &color)
 
void SetColor (float red, float green, float blue)
 
- Public Member Functions inherited from mitk::BaseProperty
Pointer Clone () const
 
bool operator== (const BaseProperty &property) const
 Subclasses must implement IsEqual(const BaseProperty&) to support comparison. More...
 
BasePropertyoperator= (const BaseProperty &property)
 Assigns property to this BaseProperty instance. More...
 
bool AssignProperty (const BaseProperty &property)
 Assigns property to this BaseProperty instance. More...
 

Static Public Member Functions

static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
static Pointer New (const float *_arg)
 
static Pointer New (const mitk::Color &_arg)
 
static Pointer New (const float _arga, const float _argb, const float _argc)
 
- Static Public Member Functions inherited from mitk::BaseProperty
static const char * GetStaticNameOfClass ()
 

Protected Member Functions

 ColorProperty ()
 
 ColorProperty (const ColorProperty &other)
 
 ColorProperty (const float red, const float green, const float blue)
 
 ColorProperty (const float color[3])
 
 ColorProperty (const mitk::Color &color)
 
- Protected Member Functions inherited from mitk::BaseProperty
 BaseProperty ()
 
 BaseProperty (const BaseProperty &other)
 
virtual ~BaseProperty ()
 

Protected Attributes

mitk::Color m_Color
 

Additional Inherited Members

- Static Public Attributes inherited from mitk::BaseProperty
static const std::string VALUE_CANNOT_BE_CONVERTED_TO_STRING
 Default return value if a property which can not be returned as string. More...
 

Detailed Description

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.

Definition at line 51 of file mitkColorProperty.h.

Member Typedef Documentation

Definition at line 67 of file mitkColorProperty.h.

Constructor & Destructor Documentation

mitk::ColorProperty::ColorProperty ( )
protected

Definition at line 20 of file mitkColorProperty.cpp.

mitk::ColorProperty::ColorProperty ( const ColorProperty other)
protected

Definition at line 24 of file mitkColorProperty.cpp.

mitk::ColorProperty::ColorProperty ( const float  red,
const float  green,
const float  blue 
)
protected

Definition at line 32 of file mitkColorProperty.cpp.

mitk::ColorProperty::ColorProperty ( const float  color[3])
protected

Definition at line 28 of file mitkColorProperty.cpp.

mitk::ColorProperty::ColorProperty ( const mitk::Color color)
protected

Definition at line 37 of file mitkColorProperty.cpp.

Member Function Documentation

Pointer mitk::ColorProperty::Clone ( ) const
virtual std::vector<std::string> mitk::ColorProperty::GetClassHierarchy ( ) const
inlineoverridevirtual

Reimplemented from mitk::BaseProperty.

Definition at line 67 of file mitkColorProperty.h.

virtual const char* mitk::ColorProperty::GetClassName ( ) const
virtual

Reimplemented from mitk::BaseProperty.

static const char* mitk::ColorProperty::GetStaticNameOfClass ( )
inlinestatic

Definition at line 67 of file mitkColorProperty.h.

const mitk::Color & mitk::ColorProperty::GetValue ( ) const
std::string mitk::ColorProperty::GetValueAsString ( ) const
overridevirtual

Reimplemented from mitk::BaseProperty.

Definition at line 77 of file mitkColorProperty.cpp.

static Pointer mitk::ColorProperty::New ( )
static

Referenced by mitk::OtsuTool3D::Activated(), ApplyMaterial(), mitk::BinaryThresholdTool::BinaryThresholdTool(), mitk::BinaryThresholdULTool::BinaryThresholdULTool(), QmitkSurfaceBasedInterpolatorWidget::ChangeSurfaceColor(), QmitkSlicesInterpolator::ChangeSurfaceColor(), QmitkDataManagerView::ColorChanged(), mitk::PickingTool::ConfirmSegmentation(), QmitkBoundingObjectWidget::CreateBoundingObject(), mitk::Tool::CreateSegmentationNode(), mitk::AffineBaseDataInteractor3D::DataNodeChanged(), mitk::DataNodeFactory::DefaultColorForOrgan(), mitk::UnstructuredGridMapper2D::GenerateDataForRenderer(), QmitkScalarBarOverlay::GetProperties(), mitk::PointSetDataInteractor::InitMove(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), mitk::ContourModelSetGLMapper2D::InternalDrawContour(), mitkImageVtkMapper2DColorTest(), mitkPropertySerializationTest(), mitkViewportRenderingTest(), mitk::LiveWireTool2D::OnInitLiveWire(), mitk::PickingTool::PickingTool(), QmitkSlicesInterpolator::QmitkSlicesInterpolator(), QmitkSurfaceBasedInterpolatorWidget::QmitkSurfaceBasedInterpolatorWidget(), mitk::RTStructureSetReader::ReadStructureSet(), mitk::Label::SetColor(), mitk::Overlay::SetColor(), mitk::DataNode::SetColor(), mitk::PlanarFigureObjectFactory::SetDefaultProperties(), mitk::ContourModelGLMapper2D::SetDefaultProperties(), mitk::FiberBundleMapper3D::SetDefaultProperties(), mitk::ContourModelSetGLMapper2D::SetDefaultProperties(), mitk::GizmoMapper2D::SetDefaultProperties(), mitk::UnstructuredGridVtkMapper3D::SetDefaultProperties(), mitk::FiberBundleMapper2D::SetDefaultProperties(), mitk::SurfaceVtkMapper2D::SetDefaultProperties(), mitk::EnhancedPointSetVtkMapper3D::SetDefaultProperties(), mitk::ContourModelSetMapper3D::SetDefaultProperties(), mitk::ContourModelMapper2D::SetDefaultProperties(), mitk::ContourModelMapper3D::SetDefaultProperties(), mitk::SurfaceVtkMapper3D::SetDefaultProperties(), mitk::PointSetVtkMapper3D::SetDefaultProperties(), mitk::PlanarFigureMapper2D::SetDefaultProperties(), mitk::RegEvaluationMapper2D::SetDefaultProperties(), mitk::ImageVtkMapper2D::SetDefaultProperties(), mitk::DoseImageVtkMapper2D::SetDefaultProperties(), mitk::FeedbackContourTool::SetFeedbackContourColor(), mitk::FeedbackContourTool::SetFeedbackContourColorDefault(), QmitkSurfaceBasedInterpolatorWidget::StopUpdateInterpolationTimer(), QmitkSlicesInterpolator::StopUpdateInterpolationTimer(), TestDataStorage(), mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateSuccessful(), mitk::ShowSegmentationAsSurface::ThreadedUpdateSuccessful(), and QmitkTextOverlay::UpdateFontProperties().

static Pointer mitk::ColorProperty::New ( const float *  _arg)
inlinestatic

Definition at line 69 of file mitkColorProperty.h.

static Pointer mitk::ColorProperty::New ( const mitk::Color _arg)
inlinestatic

Definition at line 70 of file mitkColorProperty.h.

static Pointer mitk::ColorProperty::New ( const float  _arga,
const float  _argb,
const float  _argc 
)
inlinestatic

Definition at line 71 of file mitkColorProperty.h.

void mitk::ColorProperty::SetColor ( const mitk::Color color)
void mitk::ColorProperty::SetColor ( float  red,
float  green,
float  blue 
)

Definition at line 71 of file mitkColorProperty.cpp.

void mitk::ColorProperty::SetValue ( const mitk::Color color)

Definition at line 66 of file mitkColorProperty.cpp.

Member Data Documentation

mitk::Color mitk::ColorProperty::m_Color
protected

Definition at line 54 of file mitkColorProperty.h.


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