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

mitk::ItkBaseDataAdapter Class Reference

Small class to store itk::DataObjects in the mitk::DataStorage. More...

#include <mitkItkBaseDataAdapter.h>

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

List of all members.

Public Types

typedef ItkBaseDataAdapter Self
typedef BaseData Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer
typedef itk::DataObject DataType

Public Member Functions

virtual const char * GetClassName () const
virtual DataTypeGetItkDataObject ()
virtual void SetItkDataObject (DataType *_arg)
virtual void SetRequestedRegionToLargestPossibleRegion ()
 Set the RequestedRegion to the LargestPossibleRegion.
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion ()
 Determine whether the RequestedRegion is outside of the BufferedRegion.
virtual bool VerifyRequestedRegion ()
 Verify that the RequestedRegion is within the LargestPossibleRegion.
virtual void SetRequestedRegion (itk::DataObject *)
 Set the requested region from this data object to match the requested region of the data object passed in as a parameter.

Static Public Member Functions

static Pointer New ()

Protected Member Functions

virtual void PrintSelf (std::ostream &os, itk::Indent indent) const

Protected Attributes

DataType::Pointer m_ItkDataObject

Detailed Description

Small class to store itk::DataObjects in the mitk::DataStorage.

This class can used to store any itk::DataObject in the DataStorage. Please be aware that these objects cannot be visualized via mappers. The user of this class must care himself for type safety.

Definition at line 32 of file mitkItkBaseDataAdapter.h.


Member Typedef Documentation

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

Reimplemented from mitk::BaseData.

Definition at line 35 of file mitkItkBaseDataAdapter.h.

typedef itk::DataObject mitk::ItkBaseDataAdapter::DataType

Typedef for the data object

Definition at line 36 of file mitkItkBaseDataAdapter.h.

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

Reimplemented from mitk::BaseData.

Definition at line 35 of file mitkItkBaseDataAdapter.h.

Reimplemented from mitk::BaseData.

Definition at line 35 of file mitkItkBaseDataAdapter.h.

Reimplemented from mitk::BaseData.

Definition at line 35 of file mitkItkBaseDataAdapter.h.


Member Function Documentation

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

Reimplemented from mitk::BaseData.

virtual DataType* mitk::ItkBaseDataAdapter::GetItkDataObject (  ) [virtual]

Returns the data object.

static Pointer mitk::ItkBaseDataAdapter::New (  ) [static]
void mitk::ItkBaseDataAdapter::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const [protected, virtual]

Reimplemented from mitk::BaseData.

Definition at line 21 of file mitkItkBaseDataAdapter.cpp.

References m_ItkDataObject.

{
  os << indent << "ItkBaseDataAdapter:" << std::endl;
  if(m_ItkDataObject.IsNull())
  {
    os << indent << "No DataObject!" << std::endl;
  }
  else
  {
    m_ItkDataObject->Print(os, indent);
  }
virtual bool mitk::ItkBaseDataAdapter::RequestedRegionIsOutsideOfTheBufferedRegion (  ) [inline, virtual]

Determine whether the RequestedRegion is outside of the BufferedRegion.

This method returns true if the RequestedRegion is outside the BufferedRegion (true if at least one pixel is outside). This is used by the pipeline mechanism to determine whether a filter needs to re-execute in order to satisfy the current request. If the current RequestedRegion is already inside the BufferedRegion from the previous execution (and the current filter is up to date), then a given filter does not need to re-execute

Implements mitk::BaseData.

Definition at line 47 of file mitkItkBaseDataAdapter.h.

{ return false; }
virtual void mitk::ItkBaseDataAdapter::SetItkDataObject ( DataType _arg ) [virtual]

Sets the data object.

virtual void mitk::ItkBaseDataAdapter::SetRequestedRegion ( itk::DataObject *  data ) [inline, virtual]

Set the requested region from this data object to match the requested region of the data object passed in as a parameter.

This method is implemented in the concrete subclasses of BaseData.

Implements mitk::BaseData.

Definition at line 49 of file mitkItkBaseDataAdapter.h.

{}
virtual void mitk::ItkBaseDataAdapter::SetRequestedRegionToLargestPossibleRegion (  ) [inline, virtual]

Set the RequestedRegion to the LargestPossibleRegion.

This forces a filter to produce all of the output in one execution (i.e. not streaming) on the next call to Update().

Implements mitk::BaseData.

Definition at line 46 of file mitkItkBaseDataAdapter.h.

{}
virtual bool mitk::ItkBaseDataAdapter::VerifyRequestedRegion (  ) [inline, virtual]

Verify that the RequestedRegion is within the LargestPossibleRegion.

If the RequestedRegion is not within the LargestPossibleRegion, then the filter cannot possibly satisfy the request. This method returns true if the request can be satisfied (even if it will be necessary to process the entire LargestPossibleRegion) and returns false otherwise. This method is used by PropagateRequestedRegion(). PropagateRequestedRegion() throws a InvalidRequestedRegionError exception if the requested region is not within the LargestPossibleRegion.

Implements mitk::BaseData.

Definition at line 48 of file mitkItkBaseDataAdapter.h.

{ return true; }

Member Data Documentation

DataType::Pointer mitk::ItkBaseDataAdapter::m_ItkDataObject [protected]

Definition at line 52 of file mitkItkBaseDataAdapter.h.

Referenced by PrintSelf().


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