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

mitk::GeometryData Class Reference
[Geometry Classes]

Data class only having a Geometry3D but not containing any specific data. More...

#include <mitkGeometryData.h>

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

List of all members.

Public Types

typedef GeometryData Self
typedef BaseData Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer

Public Member Functions

virtual const char * GetClassName () const
virtual void UpdateOutputInformation ()
 Update the information for this BaseData (the geometry in particular) so that it can be used as an output of a BaseProcess.
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 *data)
 Set the requested region from this data object to match the requested region of the data object passed in as a parameter.
virtual void CopyInformation (const itk::DataObject *data)
 Copy information from the specified data set.

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 GeometryData ()
virtual ~GeometryData ()

Detailed Description

Data class only having a Geometry3D but not containing any specific data.

Only implements pipeline methods which are abstract in BaseData.

Definition at line 32 of file mitkGeometryData.h.


Member Typedef Documentation

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

Reimplemented from mitk::BaseData.

Reimplemented in mitk::Geometry2DData.

Definition at line 35 of file mitkGeometryData.h.

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

Reimplemented from mitk::BaseData.

Reimplemented in mitk::Geometry2DData.

Definition at line 35 of file mitkGeometryData.h.

Reimplemented from mitk::BaseData.

Reimplemented in mitk::Geometry2DData.

Definition at line 35 of file mitkGeometryData.h.

Reimplemented from mitk::BaseData.

Reimplemented in mitk::Geometry2DData.

Definition at line 35 of file mitkGeometryData.h.


Constructor & Destructor Documentation

mitk::GeometryData::GeometryData (  ) [protected]

Definition at line 22 of file mitkGeometryData.cpp.

{

}
mitk::GeometryData::~GeometryData (  ) [protected, virtual]

Definition at line 27 of file mitkGeometryData.cpp.

{
}

Member Function Documentation

void mitk::GeometryData::CopyInformation ( const itk::DataObject *  data ) [virtual]

Copy information from the specified data set.

This method is part of the pipeline execution model. By default, a BaseProcess will copy meta-data from the first input to all of its outputs. See ProcessObject::GenerateOutputInformation(). Each subclass of DataObject is responsible for being able to copy whatever meta-data it needs from another DataObject. The default implementation of this method copies the time sliced geometry and the property list of an object. If a subclass overrides this method, it should always call its superclass' version.

Reimplemented from mitk::BaseData.

Reimplemented in mitk::Geometry2DData.

Definition at line 60 of file mitkGeometryData.cpp.

Referenced by mitk::GeometryDataSource::GraftNthOutput().

{
}
virtual const char* mitk::GeometryData::GetClassName (  ) const [virtual]

Reimplemented from mitk::BaseData.

Reimplemented in mitk::Geometry2DData.

static Pointer mitk::GeometryData::New (  ) [static]
bool mitk::GeometryData::RequestedRegionIsOutsideOfTheBufferedRegion (  ) [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.

Reimplemented in mitk::Geometry2DData.

Definition at line 41 of file mitkGeometryData.cpp.

{
  if(GetGeometry()!=NULL) return true;

  return false;
}
void mitk::GeometryData::SetRequestedRegion ( itk::DataObject *  data ) [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.

Reimplemented in mitk::Geometry2DData.

Definition at line 55 of file mitkGeometryData.cpp.

Referenced by mitk::GeometryDataSource::GraftNthOutput().

{

}
void mitk::GeometryData::SetRequestedRegionToLargestPossibleRegion (  ) [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.

Reimplemented in mitk::Geometry2DData.

Definition at line 36 of file mitkGeometryData.cpp.

{

}
void mitk::GeometryData::UpdateOutputInformation (  ) [virtual]

Update the information for this BaseData (the geometry in particular) so that it can be used as an output of a BaseProcess.

This method is used in the pipeline mechanism to propagate information and initialize the meta data associated with a BaseData. Any implementation of this method in a derived class is assumed to call its source's BaseProcess::UpdateOutputInformation() which determines modified times, LargestPossibleRegions, and any extra meta data like spacing, origin, etc. Default implementation simply call's it's source's UpdateOutputInformation().

Note:
Implementations of this methods in derived classes must take care that the geometry is updated by calling GetTimeSlicedGeometry()->UpdateInformation() after calling its source's BaseProcess::UpdateOutputInformation().

Reimplemented from mitk::BaseData.

Reimplemented in mitk::Geometry2DData.

Definition at line 31 of file mitkGeometryData.cpp.

bool mitk::GeometryData::VerifyRequestedRegion (  ) [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.

Reimplemented in mitk::Geometry2DData.

Definition at line 48 of file mitkGeometryData.cpp.

{
  if(GetGeometry()==NULL) return false;

  return true;
}

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