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

mitk::LevelWindowProperty Class Reference
[Data Management Classes]

Property for level/window data. More...

#include <mitkLevelWindowProperty.h>

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

List of all members.

Public Types

typedef LevelWindowProperty Self
typedef BaseProperty Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer

Public Member Functions

virtual const char * GetClassName () const
virtual ~LevelWindowProperty ()
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.
const mitk::LevelWindowGetLevelWindow () const
void SetLevelWindow (const LevelWindow &levWin)
virtual std::string GetValueAsString () const

Static Public Member Functions

static Pointer New ()
static Pointer New (const mitk::LevelWindow &_arg)

Protected Member Functions

 LevelWindowProperty ()
 LevelWindowProperty (const mitk::LevelWindow &levWin)

Protected Attributes

LevelWindow m_LevWin

Detailed Description

Property for level/window data.

Definition at line 31 of file mitkLevelWindowProperty.h.


Member Typedef Documentation

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

Reimplemented from mitk::BaseProperty.

Definition at line 42 of file mitkLevelWindowProperty.h.

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

Reimplemented from mitk::BaseProperty.

Definition at line 42 of file mitkLevelWindowProperty.h.

Reimplemented from mitk::BaseProperty.

Definition at line 42 of file mitkLevelWindowProperty.h.

Reimplemented from mitk::BaseProperty.

Definition at line 42 of file mitkLevelWindowProperty.h.


Constructor & Destructor Documentation

mitk::LevelWindowProperty::LevelWindowProperty (  ) [protected]

Definition at line 22 of file mitkLevelWindowProperty.cpp.

{
}
mitk::LevelWindowProperty::LevelWindowProperty ( const mitk::LevelWindow levWin ) [protected]

Definition at line 26 of file mitkLevelWindowProperty.cpp.

{
    SetLevelWindow(levWin);
}
mitk::LevelWindowProperty::~LevelWindowProperty (  ) [virtual]

Definition at line 31 of file mitkLevelWindowProperty.cpp.

{
}

Member Function Documentation

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

Reimplemented from mitk::BaseProperty.

const mitk::LevelWindow & mitk::LevelWindowProperty::GetLevelWindow (  ) const

Definition at line 44 of file mitkLevelWindowProperty.cpp.

{
    return m_LevWin;
}
std::string mitk::LevelWindowProperty::GetValueAsString (  ) const [virtual]

Reimplemented from mitk::BaseProperty.

Definition at line 58 of file mitkLevelWindowProperty.cpp.

{
  std::stringstream myStr;
  myStr << "L:" << m_LevWin.GetLevel() << " W:" << m_LevWin.GetWindow();
  return myStr.str(); 
}
static Pointer mitk::LevelWindowProperty::New (  ) [static]
static Pointer mitk::LevelWindowProperty::New ( const mitk::LevelWindow _arg ) [inline, static]

Definition at line 45 of file mitkLevelWindowProperty.h.

bool mitk::LevelWindowProperty::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 35 of file mitkLevelWindowProperty.cpp.

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

    if(other==NULL) return false;

    return other->m_LevWin==m_LevWin;
}
void mitk::LevelWindowProperty::SetLevelWindow ( const LevelWindow levWin )

Definition at line 49 of file mitkLevelWindowProperty.cpp.

{
    if(m_LevWin != levWin)
    {
        m_LevWin = levWin;
        Modified();
    }
}

Member Data Documentation

Definition at line 35 of file mitkLevelWindowProperty.h.


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