RTK  1.4.0
Reconstruction Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
rtk::QuadricShape Class Reference

#include <rtkQuadricShape.h>

+ Inheritance diagram for rtk::QuadricShape:
+ Collaboration diagram for rtk::QuadricShape:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef Superclass::PointType PointType
 
typedef Superclass::ScalarType ScalarType
 
typedef QuadricShape Self
 
typedef ConvexShape Superclass
 
typedef Superclass::VectorType VectorType
 
- Public Types inherited from rtk::ConvexShape
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::Vector< ScalarType, DimensionPointType
 
typedef itk::Matrix< ScalarType, Dimension, DimensionRotationMatrixType
 
typedef double ScalarType
 
typedef ConvexShape Self
 
typedef itk::DataObject Superclass
 
typedef itk::Vector< ScalarType, DimensionVectorType
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual ScalarType GetA () const
 
virtual ScalarType GetB () const
 
virtual ScalarType GetC () const
 
virtual ScalarType GetD () const
 
virtual ScalarType GetE () const
 
virtual ScalarType GetF () const
 
virtual ScalarType GetG () const
 
virtual ScalarType GetH () const
 
virtual ScalarType GetI () const
 
virtual ScalarType GetJ () const
 
virtual const char * GetNameOfClass () const
 
virtual itk::LightObject::Pointer InternalClone () const override
 
virtual bool IsInside (const PointType &point) const override
 
virtual bool IsIntersectedByRay (const PointType &rayOrigin, const VectorType &rayDirection, double &nearDist, double &farDist) const override
 
virtual void Rescale (const VectorType &r) override
 
virtual void Rotate (const RotationMatrixType &r) override
 
virtual void SetA (ScalarType _arg)
 
virtual void SetB (ScalarType _arg)
 
virtual void SetC (ScalarType _arg)
 
virtual void SetD (ScalarType _arg)
 
virtual void SetE (ScalarType _arg)
 
void SetEllipsoid (const PointType &center, const VectorType &axis, const ScalarType &yangle=0)
 
virtual void SetF (ScalarType _arg)
 
virtual void SetG (ScalarType _arg)
 
virtual void SetH (ScalarType _arg)
 
virtual void SetI (ScalarType _arg)
 
virtual void SetJ (ScalarType _arg)
 
virtual void Translate (const VectorType &t) override
 
- Public Member Functions inherited from rtk::ConvexShape
virtual ::itk::LightObject::Pointer CreateAnother () const
 
void AddClipPlane (const VectorType &dir, const ScalarType &pos)
 
void SetClipPlanes (const std::vector< VectorType > &dir, const std::vector< ScalarType > &pos)
 
virtual void SetDensity (ScalarType _arg)
 
virtual ScalarType GetDensity () const
 
virtual ScalarType GetDensity ()
 
virtual const std::vector< VectorType > & GetPlaneDirections () const
 
virtual const std::vector< ScalarType > & GetPlanePositions () const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from rtk::ConvexShape
static Pointer New ()
 

Private Member Functions

 QuadricShape ()
 

Private Attributes

ScalarType m_A
 
ScalarType m_B
 
ScalarType m_C
 
ScalarType m_D
 
ScalarType m_E
 
ScalarType m_F
 
ScalarType m_G
 
ScalarType m_H
 
ScalarType m_I
 
ScalarType m_J
 

Additional Inherited Members

- Static Public Attributes inherited from rtk::ConvexShape
static const unsigned int Dimension = 3
 
- Protected Member Functions inherited from rtk::ConvexShape
bool ApplyClipPlanes (const PointType &rayOrigin, const VectorType &rayDirection, ScalarType &nearDist, ScalarType &farDist) const
 
bool ApplyClipPlanes (const PointType &point) const
 
 ConvexShape ()
 

Detailed Description

Defines a 3D quadric shape.

A quadric shape has the equation Ax^2 + By^2 + Cz^2 + Dxy+ Exz + Fyz + Gx + Hy + Iz + J = 0 It is assumed to be convex (which is not always true).

Test:
rtkforbildtest.cxx
Author
Simon Rit

Definition at line 45 of file rtkQuadricShape.h.

Member Typedef Documentation

Definition at line 53 of file rtkQuadricShape.h.

Definition at line 52 of file rtkQuadricShape.h.

typedef Superclass::PointType rtk::QuadricShape::PointType

Definition at line 57 of file rtkQuadricShape.h.

Convenient typedefs.

Definition at line 56 of file rtkQuadricShape.h.

Standard class typedefs.

Definition at line 50 of file rtkQuadricShape.h.

Definition at line 51 of file rtkQuadricShape.h.

typedef Superclass::VectorType rtk::QuadricShape::VectorType

Definition at line 58 of file rtkQuadricShape.h.

Constructor & Destructor Documentation

rtk::QuadricShape::QuadricShape ( )
private

Member Function Documentation

virtual::itk::LightObject::Pointer rtk::QuadricShape::CreateAnother ( ) const
virtual ScalarType rtk::QuadricShape::GetA ( ) const
virtual
virtual ScalarType rtk::QuadricShape::GetB ( ) const
virtual
virtual ScalarType rtk::QuadricShape::GetC ( ) const
virtual
virtual ScalarType rtk::QuadricShape::GetD ( ) const
virtual
virtual ScalarType rtk::QuadricShape::GetE ( ) const
virtual
virtual ScalarType rtk::QuadricShape::GetF ( ) const
virtual
virtual ScalarType rtk::QuadricShape::GetG ( ) const
virtual
virtual ScalarType rtk::QuadricShape::GetH ( ) const
virtual
virtual ScalarType rtk::QuadricShape::GetI ( ) const
virtual
virtual ScalarType rtk::QuadricShape::GetJ ( ) const
virtual
virtual const char* rtk::QuadricShape::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from rtk::ConvexShape.

virtual itk::LightObject::Pointer rtk::QuadricShape::InternalClone ( ) const
overridevirtual

Reimplemented from rtk::ConvexShape.

virtual bool rtk::QuadricShape::IsInside ( const PointType point) const
overridevirtual

See rtk::ConvexShape::IsInside.

Reimplemented from rtk::ConvexShape.

virtual bool rtk::QuadricShape::IsIntersectedByRay ( const PointType rayOrigin,
const VectorType rayDirection,
double &  nearDist,
double &  farDist 
) const
overridevirtual
static Pointer rtk::QuadricShape::New ( )
static

Method for creation through the object factory.

virtual void rtk::QuadricShape::Rescale ( const VectorType r)
overridevirtual

Rescale object along each direction by a 3D vector.

Reimplemented from rtk::ConvexShape.

virtual void rtk::QuadricShape::Rotate ( const RotationMatrixType r)
overridevirtual

Rotate object by a given 3D vector.

Reimplemented from rtk::ConvexShape.

virtual void rtk::QuadricShape::SetA ( ScalarType  _arg)
virtual
virtual void rtk::QuadricShape::SetB ( ScalarType  _arg)
virtual
virtual void rtk::QuadricShape::SetC ( ScalarType  _arg)
virtual
virtual void rtk::QuadricShape::SetD ( ScalarType  _arg)
virtual
virtual void rtk::QuadricShape::SetE ( ScalarType  _arg)
virtual
void rtk::QuadricShape::SetEllipsoid ( const PointType center,
const VectorType axis,
const ScalarType yangle = 0 
)
virtual void rtk::QuadricShape::SetF ( ScalarType  _arg)
virtual
virtual void rtk::QuadricShape::SetG ( ScalarType  _arg)
virtual
virtual void rtk::QuadricShape::SetH ( ScalarType  _arg)
virtual
virtual void rtk::QuadricShape::SetI ( ScalarType  _arg)
virtual
virtual void rtk::QuadricShape::SetJ ( ScalarType  _arg)
virtual
virtual void rtk::QuadricShape::Translate ( const VectorType t)
overridevirtual

Translate object by a given 3D vector.

Reimplemented from rtk::ConvexShape.

Member Data Documentation

ScalarType rtk::QuadricShape::m_A
private

Definition at line 114 of file rtkQuadricShape.h.

ScalarType rtk::QuadricShape::m_B
private

Definition at line 115 of file rtkQuadricShape.h.

ScalarType rtk::QuadricShape::m_C
private

Definition at line 116 of file rtkQuadricShape.h.

ScalarType rtk::QuadricShape::m_D
private

Definition at line 117 of file rtkQuadricShape.h.

ScalarType rtk::QuadricShape::m_E
private

Definition at line 118 of file rtkQuadricShape.h.

ScalarType rtk::QuadricShape::m_F
private

Definition at line 119 of file rtkQuadricShape.h.

ScalarType rtk::QuadricShape::m_G
private

Definition at line 120 of file rtkQuadricShape.h.

ScalarType rtk::QuadricShape::m_H
private

Definition at line 121 of file rtkQuadricShape.h.

ScalarType rtk::QuadricShape::m_I
private

Definition at line 122 of file rtkQuadricShape.h.

ScalarType rtk::QuadricShape::m_J
private

Definition at line 123 of file rtkQuadricShape.h.


The documentation for this class was generated from the following file: