Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

mitk::AnnotationProperty Class Reference
[Data Management Classes]

Property for annotations. More...

#include <mitkAnnotationProperty.h>

Inheritance diagram for mitk::AnnotationProperty:
Inheritance graph
[legend]
Collaboration diagram for mitk::AnnotationProperty:
Collaboration graph
[legend]

List of all members.

Public Types

typedef AnnotationProperty Self
typedef BaseProperty Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer
typedef std::string ValueType

Public Member Functions

virtual const char * GetClassName () const
virtual const char * GetLabel () const
virtual void SetLabel (const char *_arg)
const Point3D & GetPosition () const
void SetPosition (const Point3D &position)
virtual bool operator== (const BaseProperty &property) const
 Subclasses must implement this operator==. Operator== which is used by PropertyList to check whether a property has been changed.
virtual std::string GetValueAsString () const

Static Public Member Functions

static Pointer New ()
static Pointer New (const char *_arga, const Point3D &_argb)
static Pointer New (const std::string &_arga, const Point3D &_argb)
static Pointer New (const char *_arga, ScalarType _argb, ScalarType _argc, ScalarType _argd)
static Pointer New (const std::string &_arga, ScalarType _argb, ScalarType _argc, ScalarType _argd)

Protected Member Functions

 AnnotationProperty ()
 AnnotationProperty (const char *label, const Point3D &position)
 AnnotationProperty (const std::string &label, const Point3D &position)
 AnnotationProperty (const char *label, ScalarType x, ScalarType y, ScalarType z)
 AnnotationProperty (const std::string &label, ScalarType x, ScalarType y, ScalarType z)

Protected Attributes

std::string m_Label
Point3D m_Position

Detailed Description

Property for annotations.

Definition at line 37 of file mitkAnnotationProperty.h.


Member Typedef Documentation

typedef itk::SmartPointer<const Self> mitk::AnnotationProperty::ConstPointer

Reimplemented from mitk::BaseProperty.

Definition at line 40 of file mitkAnnotationProperty.h.

typedef itk::SmartPointer<Self> mitk::AnnotationProperty::Pointer

Reimplemented from mitk::BaseProperty.

Definition at line 40 of file mitkAnnotationProperty.h.

Reimplemented from mitk::BaseProperty.

Definition at line 40 of file mitkAnnotationProperty.h.

Reimplemented from mitk::BaseProperty.

Definition at line 40 of file mitkAnnotationProperty.h.

Definition at line 40 of file mitkAnnotationProperty.h.


Constructor & Destructor Documentation

mitk::AnnotationProperty::AnnotationProperty (  ) [protected]

Definition at line 21 of file mitkAnnotationProperty.cpp.

{
}
mitk::AnnotationProperty::AnnotationProperty ( const char *  label,
const Point3D &  position 
) [protected]

Definition at line 26 of file mitkAnnotationProperty.cpp.

References m_Label.

: m_Label( "" ),
  m_Position( position )
{
  if ( label != NULL )
  {
    m_Label = label;
  }
}
mitk::AnnotationProperty::AnnotationProperty ( const std::string &  label,
const Point3D &  position 
) [protected]

Definition at line 38 of file mitkAnnotationProperty.cpp.

: m_Label( label ),
  m_Position( position )
{
}
mitk::AnnotationProperty::AnnotationProperty ( const char *  label,
ScalarType  x,
ScalarType  y,
ScalarType  z 
) [protected]

Definition at line 46 of file mitkAnnotationProperty.cpp.

References m_Label, and m_Position.

: m_Label( "" )
{
  if ( label != NULL )
  {
    m_Label = label;
  }

  m_Position[0] = x;
  m_Position[1] = y;
  m_Position[2] = z;
}
mitk::AnnotationProperty::AnnotationProperty ( const std::string &  label,
ScalarType  x,
ScalarType  y,
ScalarType  z 
) [protected]

Definition at line 61 of file mitkAnnotationProperty.cpp.

References m_Position.

: m_Label( label )
{
  m_Position[0] = x;
  m_Position[1] = y;
  m_Position[2] = z;
}

Member Function Documentation

virtual const char* mitk::AnnotationProperty::GetClassName (  ) const [virtual]

Reimplemented from mitk::BaseProperty.

virtual const char* mitk::AnnotationProperty::GetLabel (  ) const [virtual]
const mitk::Point3D & mitk::AnnotationProperty::GetPosition (  ) const

Definition at line 71 of file mitkAnnotationProperty.cpp.

{
  return m_Position;
}
std::string mitk::AnnotationProperty::GetValueAsString (  ) const [virtual]

Reimplemented from mitk::BaseProperty.

Definition at line 94 of file mitkAnnotationProperty.cpp.

{
  std::stringstream myStr;

  myStr << this->GetLabel() << this->GetPosition();
  return myStr.str(); 
}
static Pointer mitk::AnnotationProperty::New (  ) [static]
static Pointer mitk::AnnotationProperty::New ( const std::string &  _arga,
const Point3D &  _argb 
) [inline, static]

Definition at line 47 of file mitkAnnotationProperty.h.

static Pointer mitk::AnnotationProperty::New ( const char *  _arga,
const Point3D &  _argb 
) [inline, static]

Definition at line 45 of file mitkAnnotationProperty.h.

static Pointer mitk::AnnotationProperty::New ( const char *  _arga,
ScalarType  _argb,
ScalarType  _argc,
ScalarType  _argd 
) [inline, static]

Definition at line 49 of file mitkAnnotationProperty.h.

static Pointer mitk::AnnotationProperty::New ( const std::string &  _arga,
ScalarType  _argb,
ScalarType  _argc,
ScalarType  _argd 
) [inline, static]

Definition at line 51 of file mitkAnnotationProperty.h.

bool mitk::AnnotationProperty::operator== ( const BaseProperty property ) const [virtual]

Subclasses must implement this operator==. Operator== which is used by PropertyList to check whether a property has been changed.

Implements mitk::BaseProperty.

Definition at line 83 of file mitkAnnotationProperty.cpp.

References m_Label, and m_Position.

{  
  const Self *other = dynamic_cast< const Self * >( &property );

  if ( other == NULL ) return false;

  return ( (other->m_Label == m_Label )
    && (other->m_Position == m_Position ) );
}
virtual void mitk::AnnotationProperty::SetLabel ( const char *  _arg ) [virtual]
void mitk::AnnotationProperty::SetPosition ( const Point3D &  position )

Member Data Documentation

std::string mitk::AnnotationProperty::m_Label [protected]

Definition at line 65 of file mitkAnnotationProperty.h.

Referenced by AnnotationProperty(), and operator==().

Definition at line 66 of file mitkAnnotationProperty.h.

Referenced by AnnotationProperty(), and operator==().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines