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

mitk::Geometry2DData Class Reference
[Geometry Classes]

Data class containing Geometry2D objects. More...

#include <mitkGeometry2DData.h>

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

List of all members.

Public Types

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

Public Member Functions

virtual const char * GetClassName () const
virtual void SetGeometry (mitk::Geometry3D *geometry)
 Set the reference to a Geometry2D that is stored by the object.
virtual void SetGeometry2D (mitk::Geometry2D *geometry2d)
 Set the reference to the Geometry2D that is stored by the object.
virtual mitk::Geometry2DGetGeometry2D () const
 Get the reference to the Geometry2D that is stored by the object.
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

 Geometry2DData ()
virtual ~Geometry2DData ()

Detailed Description

Data class containing Geometry2D objects.

Definition at line 33 of file mitkGeometry2DData.h.


Member Typedef Documentation

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

Reimplemented from mitk::GeometryData.

Definition at line 36 of file mitkGeometry2DData.h.

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

Reimplemented from mitk::GeometryData.

Definition at line 36 of file mitkGeometry2DData.h.

Reimplemented from mitk::GeometryData.

Definition at line 36 of file mitkGeometry2DData.h.

Reimplemented from mitk::GeometryData.

Definition at line 36 of file mitkGeometry2DData.h.


Constructor & Destructor Documentation

mitk::Geometry2DData::Geometry2DData (  ) [protected]

Definition at line 22 of file mitkGeometry2DData.cpp.

{
}
mitk::Geometry2DData::~Geometry2DData (  ) [protected, virtual]

Definition at line 26 of file mitkGeometry2DData.cpp.

{
}

Member Function Documentation

void mitk::Geometry2DData::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::GeometryData.

Definition at line 89 of file mitkGeometry2DData.cpp.

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

Reimplemented from mitk::GeometryData.

virtual mitk::Geometry2D* mitk::Geometry2DData::GetGeometry2D (  ) const [inline, virtual]

Get the reference to the Geometry2D that is stored by the object.

Definition at line 54 of file mitkGeometry2DData.h.

Referenced by mitk::Geometry2DDataMapper2D::GenerateData().

  {
    return static_cast<mitk::Geometry2D *>(GetGeometry());
  };
static Pointer mitk::Geometry2DData::New (  ) [static]
bool mitk::Geometry2DData::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

Reimplemented from mitk::GeometryData.

Definition at line 70 of file mitkGeometry2DData.cpp.

{
  if(GetGeometry2D()==NULL) return true;

  return false;
}
void mitk::Geometry2DData::SetGeometry ( mitk::Geometry3D geometry ) [virtual]

Set the reference to a Geometry2D that is stored by the object.

Warning:
Accepts only instances of Geometry2D or sub-classes.

Reimplemented from mitk::BaseData.

Definition at line 30 of file mitkGeometry2DData.cpp.

{
  if(geometry==NULL)
    SetGeometry2D(NULL);
  else
  {
    Geometry2D* geometry2d = dynamic_cast<Geometry2D*>(geometry);
    if(geometry2d==NULL)
      itkExceptionMacro(<<"Trying to set a geometry which is not a Geometry2D into Geometry2DData.");
    SetGeometry2D(geometry2d);
  }
}
void mitk::Geometry2DData::SetGeometry2D ( mitk::Geometry2D geometry2d ) [virtual]

Set the reference to the Geometry2D that is stored by the object.

Definition at line 43 of file mitkGeometry2DData.cpp.

References mitk::TimeSlicedGeometry::InitializeEvenlyTimed().

{
  if(geometry2d != NULL)
  {
    TimeSlicedGeometry* timeSlicedGeometry = GetTimeSlicedGeometry();
    if(timeSlicedGeometry == NULL)
    {
      Superclass::SetGeometry(geometry2d);
      return;
    }
    timeSlicedGeometry->InitializeEvenlyTimed(geometry2d, 1);
    Modified();
  }
  else
    Superclass::SetGeometry(geometry2d);
}
void mitk::Geometry2DData::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.

Reimplemented from mitk::GeometryData.

Definition at line 84 of file mitkGeometry2DData.cpp.

{

}
void mitk::Geometry2DData::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().

Reimplemented from mitk::GeometryData.

Definition at line 65 of file mitkGeometry2DData.cpp.

{

}
void mitk::Geometry2DData::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::GeometryData.

Definition at line 60 of file mitkGeometry2DData.cpp.

bool mitk::Geometry2DData::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.

Reimplemented from mitk::GeometryData.

Definition at line 77 of file mitkGeometry2DData.cpp.

{
  if(GetGeometry2D()==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