Small class to store itk::DataObjects in the mitk::DataStorage. More...
#include <mitkItkBaseDataAdapter.h>
Public Types | |
typedef ItkBaseDataAdapter | Self |
typedef BaseData | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer < const Self > | ConstPointer |
typedef itk::DataObject | DataType |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual DataType * | GetItkDataObject () |
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 |
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.
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.
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] |
Referenced by mitkDataNodeExtTestClass::TestDataSetting().
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; }
DataType::Pointer mitk::ItkBaseDataAdapter::m_ItkDataObject [protected] |
Definition at line 52 of file mitkItkBaseDataAdapter.h.
Referenced by PrintSelf().