Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
The ColorProperty class RGB color property. More...
#include <mitkColorProperty.h>
Public Types | |
typedef ColorProperty | Self |
typedef BaseProperty | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef mitk::Color | ValueType |
![]() | |
typedef BaseProperty | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
const mitk::Color & | GetColor () const |
const mitk::Color & | GetValue () 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) |
![]() | |
Pointer | Clone () const |
bool | operator== (const BaseProperty &property) const |
Subclasses must implement IsEqual(const BaseProperty&) to support comparison. More... | |
BaseProperty & | operator= (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 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) | |
![]() | |
BaseProperty () | |
BaseProperty (const BaseProperty &other) | |
~BaseProperty () override | |
Protected Attributes | |
mitk::Color | m_Color |
Additional Inherited Members | |
![]() | |
static const std::string | VALUE_CANNOT_BE_CONVERTED_TO_STRING |
Default return value if a property which can not be returned as string. More... | |
The ColorProperty class RGB color property.
Definition at line 47 of file mitkColorProperty.h.
typedef itk::SmartPointer<const Self> mitk::ColorProperty::ConstPointer |
Definition at line 63 of file mitkColorProperty.h.
Definition at line 63 of file mitkColorProperty.h.
Definition at line 63 of file mitkColorProperty.h.
Definition at line 63 of file mitkColorProperty.h.
Definition at line 67 of file mitkColorProperty.h.
|
protected |
Definition at line 16 of file mitkColorProperty.cpp.
|
protected |
Definition at line 20 of file mitkColorProperty.cpp.
|
protected |
Definition at line 28 of file mitkColorProperty.cpp.
References m_Color.
|
protected |
Definition at line 24 of file mitkColorProperty.cpp.
|
protected |
Definition at line 33 of file mitkColorProperty.cpp.
References m_Color.
Pointer mitk::ColorProperty::Clone | ( | ) | const |
|
inlineoverridevirtual |
Reimplemented from mitk::BaseProperty.
Definition at line 63 of file mitkColorProperty.h.
|
virtual |
Reimplemented from mitk::BaseProperty.
const mitk::Color & mitk::ColorProperty::GetColor | ( | ) | const |
Definition at line 48 of file mitkColorProperty.cpp.
References m_Color.
Referenced by QmitkColorPropertyView::DisplayColor(), QmitkPropertyListPopup::fillPopup(), mitk::Label::GetColor(), GetValue(), QmitkColorPropertyEditor::mousePressEvent(), and QmitkPropertyListPopup::onColorClicked().
|
inlinestatic |
Definition at line 63 of file mitkColorProperty.h.
const mitk::Color & mitk::ColorProperty::GetValue | ( | ) | const |
Definition at line 80 of file mitkColorProperty.cpp.
References GetColor().
Referenced by GetValueAsString().
|
overridevirtual |
Reimplemented from mitk::BaseProperty.
Definition at line 73 of file mitkColorProperty.cpp.
References GetValue().
|
static |
Referenced by mitk::OtsuTool3D::Activated(), mitk::BinaryThresholdTool::BinaryThresholdTool(), mitk::BinaryThresholdULTool::BinaryThresholdULTool(), QmitkSurfaceBasedInterpolatorWidget::ChangeSurfaceColor(), QmitkSlicesInterpolator::ChangeSurfaceColor(), mitk::LiveWireTool2D::ClearSegmentation(), mitk::PickingTool::ConfirmSegmentation(), mitk::ExampleInteractor::ConnectActionsAndFunctions(), QmitkBoundingObjectWidget::CreateBoundingObject(), mitk::Tool::CreateSegmentationNode(), mitk::AffineBaseDataInteractor3D::DataNodeChanged(), mitk::BoundingShapeInteractor::DataNodeChanged(), mitk::UnstructuredGridMapper2D::GenerateDataForRenderer(), QmitkScalarBarOverlay::GetProperties(), QmitkDataNodeColorAction::InitializeWithDataNode(), mitk::PointSetDataInteractor::InitMove(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), mitkImageVtkMapper2DColorTest(), mitkPropertySerializationTest(), mitkViewportRenderingTest(), mitk::PickingTool::PickingTool(), QmitkSlicesInterpolator::QmitkSlicesInterpolator(), QmitkSurfaceBasedInterpolatorWidget::QmitkSurfaceBasedInterpolatorWidget(), mitk::RTStructureSetReaderService::Read(), mitk::BoundingShapeInteractor::RestoreNodeProperties(), QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation(), SaveSliceOrImageAsPNG(), mitk::Label::SetColor(), mitk::Annotation::SetColor(), mitk::DataNode::SetColor(), mitk::PlanarFigureObjectFactory::SetDefaultProperties(), mitk::ContourModelGLMapper2D::SetDefaultProperties(), mitk::GizmoMapper2D::SetDefaultProperties(), mitk::ContourModelSetGLMapper2D::SetDefaultProperties(), mitk::UnstructuredGridVtkMapper3D::SetDefaultProperties(), mitk::SurfaceVtkMapper2D::SetDefaultProperties(), mitk::EnhancedPointSetVtkMapper3D::SetDefaultProperties(), mitk::ContourModelMapper2D::SetDefaultProperties(), mitk::ContourModelSetMapper3D::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(), QmitkInteractiveTransformationWidget::SetToolToEdit(), QmitkNavigationToolCreationWidget::ShowToolPreview(), QmitkSurfaceBasedInterpolatorWidget::StopUpdateInterpolationTimer(), QmitkSlicesInterpolator::StopUpdateInterpolationTimer(), TestDataStorage(), mitk::ShowSegmentationAsSmoothedSurface::ThreadedUpdateSuccessful(), mitk::ShowSegmentationAsSurface::ThreadedUpdateSuccessful(), and QmitkTextOverlay::UpdateFontProperties().
|
inlinestatic |
Definition at line 65 of file mitkColorProperty.h.
|
inlinestatic |
Definition at line 66 of file mitkColorProperty.h.
|
inlinestatic |
Definition at line 67 of file mitkColorProperty.h.
void mitk::ColorProperty::SetColor | ( | const mitk::Color & | color | ) |
Definition at line 53 of file mitkColorProperty.cpp.
References m_Color.
Referenced by QmitkPropertyListPopup::onColorClicked(), mitk::Label::SetColor(), SetColor(), and SetValue().
void mitk::ColorProperty::SetColor | ( | float | red, |
float | green, | ||
float | blue | ||
) |
Definition at line 67 of file mitkColorProperty.cpp.
References SetColor().
void mitk::ColorProperty::SetValue | ( | const mitk::Color & | color | ) |
Definition at line 62 of file mitkColorProperty.cpp.
References SetColor().
|
protected |
Definition at line 50 of file mitkColorProperty.h.
Referenced by ColorProperty(), GetColor(), and SetColor().