ITK  4.4.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
itk::LineSpatialObjectPoint< TPointDimension > Class Template Reference

#include <itkLineSpatialObjectPoint.h>

+ Inheritance diagram for itk::LineSpatialObjectPoint< TPointDimension >:
+ Collaboration diagram for itk::LineSpatialObjectPoint< TPointDimension >:

Detailed Description

template<unsigned int TPointDimension = 3>
class itk::LineSpatialObjectPoint< TPointDimension >

Point used for a line definition.

This class contains all the functions necessary to define a point that can be used to build lines. This Class derives from SpatialObjectPoint. A LineSpatialObjectPoint has NDimension-1 normals.

Wiki Examples:

Definition at line 42 of file itkLineSpatialObjectPoint.h.

Public Types

typedef FixedArray< VectorType,
TPointDimension-1 > 
NormalArrayType
 
typedef Point< double,
TPointDimension > 
PointType
 
typedef LineSpatialObjectPoint Self
 
typedef SpatialObjectPoint
< TPointDimension > 
Superclass
 
typedef CovariantVector
< double, TPointDimension > 
VectorType
 
- Public Types inherited from itk::SpatialObjectPoint< TPointDimension >
typedef PixelType ColorType
 
typedef RGBAPixel< float > PixelType
 
typedef Point< double,
TPointDimension > 
PointType
 
typedef SpatialObjectPoint Self
 
typedef vnl_vector< double > VectorType
 

Public Member Functions

const VectorTypeGetNormal (unsigned int index) const
 
 LineSpatialObjectPoint (void)
 
Selfoperator= (const LineSpatialObjectPoint &rhs)
 
void SetNormal (VectorType &normal, unsigned int index)
 
virtual ~LineSpatialObjectPoint (void)
 
- Public Member Functions inherited from itk::SpatialObjectPoint< TPointDimension >
float GetAlpha (void) const
 
float GetBlue (void) const
 
const PixelTypeGetColor (void) const
 
float GetGreen (void) const
 
int GetID (void) const
 
const PointTypeGetPosition (void) const
 
float GetRed (void) const
 
Selfoperator= (const SpatialObjectPoint &rhs)
 
void Print (std::ostream &os) const
 
void SetAlpha (float a)
 
void SetBlue (float b)
 
void SetColor (const PixelType &color)
 
void SetColor (float r, float g, float b, float a=1)
 
void SetGreen (float g)
 
void SetID (const int newID)
 
void SetPosition (const PointType &newX)
 
void SetPosition (const double x0, const double x1)
 
void SetPosition (const double x0, const double x1, const double x2)
 
void SetRed (float r)
 
 SpatialObjectPoint (void)
 
virtual ~SpatialObjectPoint (void)
 

Protected Member Functions

virtual void PrintSelf (std::ostream &os, Indent indent) const
 

Protected Attributes

NormalArrayType m_NormalArray
 
- Protected Attributes inherited from itk::SpatialObjectPoint< TPointDimension >
PixelType m_Color
 
int m_ID
 
PointType m_X
 

Member Typedef Documentation

template<unsigned int TPointDimension = 3>
typedef FixedArray< VectorType, TPointDimension - 1 > itk::LineSpatialObjectPoint< TPointDimension >::NormalArrayType

Definition at line 51 of file itkLineSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
typedef Point< double, TPointDimension > itk::LineSpatialObjectPoint< TPointDimension >::PointType

Definition at line 49 of file itkLineSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
typedef LineSpatialObjectPoint itk::LineSpatialObjectPoint< TPointDimension >::Self

Definition at line 47 of file itkLineSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
typedef SpatialObjectPoint< TPointDimension > itk::LineSpatialObjectPoint< TPointDimension >::Superclass

Definition at line 48 of file itkLineSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
typedef CovariantVector< double, TPointDimension > itk::LineSpatialObjectPoint< TPointDimension >::VectorType

Definition at line 50 of file itkLineSpatialObjectPoint.h.

Constructor & Destructor Documentation

template<unsigned int TPointDimension = 3>
itk::LineSpatialObjectPoint< TPointDimension >::LineSpatialObjectPoint ( void  )

Constructor

template<unsigned int TPointDimension = 3>
virtual itk::LineSpatialObjectPoint< TPointDimension >::~LineSpatialObjectPoint ( void  )
virtual

Destructor

Member Function Documentation

template<unsigned int TPointDimension = 3>
const VectorType& itk::LineSpatialObjectPoint< TPointDimension >::GetNormal ( unsigned int  index) const

Get Normal

template<unsigned int TPointDimension = 3>
Self& itk::LineSpatialObjectPoint< TPointDimension >::operator= ( const LineSpatialObjectPoint< TPointDimension > &  rhs)

Copy one LineSpatialObjectPoint to another

template<unsigned int TPointDimension = 3>
virtual void itk::LineSpatialObjectPoint< TPointDimension >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protectedvirtual

Method to print the object.

Reimplemented from itk::SpatialObjectPoint< TPointDimension >.

template<unsigned int TPointDimension = 3>
void itk::LineSpatialObjectPoint< TPointDimension >::SetNormal ( VectorType normal,
unsigned int  index 
)

Set Normal

Member Data Documentation

template<unsigned int TPointDimension = 3>
NormalArrayType itk::LineSpatialObjectPoint< TPointDimension >::m_NormalArray
protected

Definition at line 70 of file itkLineSpatialObjectPoint.h.


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