#include <itkSpatialObjectProperty.h>
This class contains the objects properties such as colors, opacity, etc... it's templated over the representation to use for each color component.
Definition at line 38 of file itkSpatialObjectProperty.h.
Public Types | |
using | ColorType = RGBAPixel<double> |
using | Self = SpatialObjectProperty |
Public Member Functions | |
virtual void | Clear () |
double | GetAlpha () const |
double | GetBlue () const |
ColorType & | GetColor () |
const ColorType & | GetColor () const |
double | GetGreen () const |
std::string & | GetName () |
const std::string & | GetName () const |
double | GetRed () const |
std::map< std::string, double > & | GetTagScalarDictionary () |
const std::map< std::string, double > & | GetTagScalarDictionary () const |
double | GetTagScalarValue (const std::string &tag) const |
bool | GetTagScalarValue (const std::string &tag, double &value) const |
std::map< std::string, std::string > & | GetTagStringDictionary () |
const std::map< std::string, std::string > & | GetTagStringDictionary () const |
std::string | GetTagStringValue (const std::string &tag) const |
bool | GetTagStringValue (const std::string &tag, std::string &value) const |
Self & | operator= (const SpatialObjectProperty &rhs) |
void | Print (std::ostream &os) const |
void | SetAlpha (double a) |
void | SetBlue (double b) |
void | SetColor (const ColorType &color) |
void | SetColor (double r, double g, double b) |
void | SetGreen (double g) |
void | SetName (const std::string &name) |
void | SetRed (double r) |
void | SetTagScalarDictionary (const std::map< std::string, double > &dict) |
void | SetTagScalarValue (const std::string &tag, double value) |
void | SetTagStringDictionary (const std::map< std::string, std::string > &dict) |
void | SetTagStringValue (const std::string &tag, const std::string &value) |
SpatialObjectProperty () | |
virtual | ~SpatialObjectProperty ()=default |
Protected Member Functions | |
void | PrintSelf (std::ostream &os, Indent indent) const |
Private Attributes | |
ColorType | m_Color {} |
std::string | m_Name {} |
std::map< std::string, double > | m_ScalarDictionary {} |
std::map< std::string, std::string > | m_StringDictionary {} |
using itk::SpatialObjectProperty::ColorType = RGBAPixel<double> |
Definition at line 47 of file itkSpatialObjectProperty.h.
Definition at line 45 of file itkSpatialObjectProperty.h.
itk::SpatialObjectProperty::SpatialObjectProperty | ( | ) |
Referenced by operator=().
|
virtualdefault |
|
virtual |
double itk::SpatialObjectProperty::GetAlpha | ( | ) | const |
double itk::SpatialObjectProperty::GetBlue | ( | ) | const |
|
inline |
Definition at line 59 of file itkSpatialObjectProperty.h.
References m_Color.
|
inline |
Definition at line 65 of file itkSpatialObjectProperty.h.
References m_Color.
double itk::SpatialObjectProperty::GetGreen | ( | ) | const |
|
inline |
Definition at line 101 of file itkSpatialObjectProperty.h.
References m_Name.
|
inline |
Definition at line 108 of file itkSpatialObjectProperty.h.
References m_Name.
double itk::SpatialObjectProperty::GetRed | ( | ) | const |
std::map< std::string, double > & itk::SpatialObjectProperty::GetTagScalarDictionary | ( | ) |
const std::map< std::string, double > & itk::SpatialObjectProperty::GetTagScalarDictionary | ( | ) | const |
|
inline |
Definition at line 121 of file itkSpatialObjectProperty.h.
References GetTagScalarValue().
bool itk::SpatialObjectProperty::GetTagScalarValue | ( | const std::string & | tag, |
double & | value ) const |
Referenced by GetTagScalarValue().
std::map< std::string, std::string > & itk::SpatialObjectProperty::GetTagStringDictionary | ( | ) |
const std::map< std::string, std::string > & itk::SpatialObjectProperty::GetTagStringDictionary | ( | ) | const |
std::string itk::SpatialObjectProperty::GetTagStringValue | ( | const std::string & | tag | ) | const |
bool itk::SpatialObjectProperty::GetTagStringValue | ( | const std::string & | tag, |
std::string & | value ) const |
Self & itk::SpatialObjectProperty::operator= | ( | const SpatialObjectProperty & | rhs | ) |
References SpatialObjectProperty().
|
inline |
Definition at line 152 of file itkSpatialObjectProperty.h.
References PrintSelf().
|
protected |
Referenced by Print().
void itk::SpatialObjectProperty::SetAlpha | ( | double | a | ) |
void itk::SpatialObjectProperty::SetBlue | ( | double | b | ) |
|
inline |
Definition at line 53 of file itkSpatialObjectProperty.h.
References m_Color.
void itk::SpatialObjectProperty::SetColor | ( | double | r, |
double | g, | ||
double | b ) |
void itk::SpatialObjectProperty::SetGreen | ( | double | g | ) |
|
inline |
Definition at line 94 of file itkSpatialObjectProperty.h.
References m_Name.
void itk::SpatialObjectProperty::SetRed | ( | double | r | ) |
void itk::SpatialObjectProperty::SetTagScalarDictionary | ( | const std::map< std::string, double > & | dict | ) |
void itk::SpatialObjectProperty::SetTagScalarValue | ( | const std::string & | tag, |
double | value ) |
void itk::SpatialObjectProperty::SetTagStringDictionary | ( | const std::map< std::string, std::string > & | dict | ) |
void itk::SpatialObjectProperty::SetTagStringValue | ( | const std::string & | tag, |
const std::string & | value ) |
|
private |
Definition at line 165 of file itkSpatialObjectProperty.h.
Referenced by GetColor(), GetColor(), and SetColor().
|
private |
Definition at line 167 of file itkSpatialObjectProperty.h.
|
private |
Definition at line 169 of file itkSpatialObjectProperty.h.
|
private |
Definition at line 170 of file itkSpatialObjectProperty.h.