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

mitk::Plane Class Reference
[Data Classes]

Plane surface representation. More...

#include <mitkPlane.h>

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

List of all members.

Public Types

typedef Plane Self
typedef BoundingObject Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer

Public Member Functions

virtual const char * GetClassName () const
void SetExtent (const double x, const double y)
void GetExtent (double &x, double &y) const
void SetResolution (const int xR, const int yR)
void GetResolution (int &xR, int &yR) const
virtual mitk::ScalarType GetVolume ()
virtual bool IsInside (const Point3D &p) const

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 Plane ()
virtual ~Plane ()

Protected Attributes

vtkPlaneSource * m_PlaneSource
vtkPolyData * m_Plane
vtkDoubleArray * m_PlaneNormal

Detailed Description

Plane surface representation.

Encapsulates vtkPlaneSource.

Definition at line 38 of file mitkPlane.h.


Member Typedef Documentation

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

Reimplemented from mitk::BoundingObject.

Definition at line 41 of file mitkPlane.h.

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

Reimplemented from mitk::BoundingObject.

Definition at line 41 of file mitkPlane.h.

Reimplemented from mitk::BoundingObject.

Definition at line 41 of file mitkPlane.h.

Reimplemented from mitk::BoundingObject.

Definition at line 41 of file mitkPlane.h.


Constructor & Destructor Documentation

mitk::Plane::Plane (  ) [protected]

Definition at line 22 of file mitkPlane.cpp.

{

Plane::Plane()
: BoundingObject()
{
  // Set up Plane Surface.
  m_PlaneSource = vtkPlaneSource::New();
  m_PlaneSource->SetOrigin( -32.0, -32.0, 0.0 );
  m_PlaneSource->SetPoint1( 32.0, -32.0, 0.0 );
  m_PlaneSource->SetPoint2( -32.0, 32.0, 0.0 );
  m_PlaneSource->SetResolution( 128, 128 );
  m_PlaneSource->Update();

  m_PlaneNormal = vtkDoubleArray::New();
  m_PlaneNormal->SetNumberOfComponents( 3 );
  m_PlaneNormal->SetNumberOfTuples( m_PlaneSource->GetOutput()->GetNumberOfPoints() );
mitk::Plane::~Plane (  ) [protected, virtual]

Definition at line 47 of file mitkPlane.cpp.


Member Function Documentation

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

Reimplemented from mitk::BoundingObject.

void mitk::Plane::GetExtent ( double &  x,
double &  y 
) const

Definition at line 68 of file mitkPlane.cpp.

void mitk::Plane::GetResolution ( int &  xR,
int &  yR 
) const

Definition at line 86 of file mitkPlane.cpp.

ScalarType mitk::Plane::GetVolume (  ) [virtual]

Reimplemented from mitk::BoundingObject.

Definition at line 99 of file mitkPlane.cpp.

{
  // Plane does not have a volume
bool mitk::Plane::IsInside ( const Point3D &  p ) const [virtual]

Definition at line 92 of file mitkPlane.cpp.

{
static Pointer mitk::Plane::New (  ) [static]

Reimplemented from mitk::Surface.

void mitk::Plane::SetExtent ( const double  x,
const double  y 
)

Definition at line 55 of file mitkPlane.cpp.

References m_Plane, m_PlaneNormal, and m_PlaneSource.

{
  m_PlaneSource->Delete();
  m_Plane->Delete();
  m_PlaneNormal->Delete();
}


void Plane::SetExtent( const double x, const double y )
{
  m_PlaneSource->SetOrigin( -x / 2.0, -y / 2.0, 0.0 );
void mitk::Plane::SetResolution ( const int  xR,
const int  yR 
)

Definition at line 74 of file mitkPlane.cpp.

{
  x = m_PlaneSource->GetPoint1()[0] - m_PlaneSource->GetOrigin()[0];
  y = m_PlaneSource->GetPoint2()[1] - m_PlaneSource->GetOrigin()[1];
}

void Plane::SetResolution( const int xR, const int yR )

Member Data Documentation

vtkPolyData* mitk::Plane::m_Plane [protected]

Definition at line 60 of file mitkPlane.h.

Referenced by SetExtent().

vtkDoubleArray* mitk::Plane::m_PlaneNormal [protected]

Definition at line 62 of file mitkPlane.h.

Referenced by SetExtent().

vtkPlaneSource* mitk::Plane::m_PlaneSource [protected]

Definition at line 58 of file mitkPlane.h.

Referenced by SetExtent().


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