Point used for a line definition. More...
#include <itkLineSpatialObjectPoint.h>
Public Types | |
typedef PixelType | ColorType |
typedef FixedArray< VectorType, TPointDimension-1 > | NormalArrayType |
typedef RGBAPixel< float > | PixelType |
typedef Point< double, TPointDimension > | PointType |
typedef LineSpatialObjectPoint | Self |
typedef SpatialObjectPoint < TPointDimension > | Superclass |
typedef CovariantVector < double, TPointDimension > | VectorType |
Public Member Functions | |
int | GetID (void) const |
const VectorType & | GetNormal (unsigned int index) const |
const PointType & | GetPosition (void) const |
LineSpatialObjectPoint (void) | |
Self & | operator= (const LineSpatialObjectPoint &rhs) |
void | Print (std::ostream &os) const |
void | SetID (const int newID) |
void | SetNormal (VectorType &normal, unsigned int index) |
virtual | ~LineSpatialObjectPoint (void) |
void | SetPosition (const PointType &newX) |
void | SetPosition (const double x0, const double x1) |
void | SetPosition (const double x0, const double x1, const double x2) |
const PixelType & | GetColor (void) const |
void | SetColor (const PixelType &color) |
void | SetColor (float r, float g, float b, float a=1) |
void | SetRed (float r) |
float | GetRed (void) const |
void | SetGreen (float g) |
float | GetGreen (void) const |
void | SetBlue (float b) |
float | GetBlue (void) const |
void | SetAlpha (float a) |
float | GetAlpha (void) const |
Protected Member Functions | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
Protected Attributes | |
PixelType | m_Color |
int | m_ID |
NormalArrayType | m_NormalArray |
PointType | m_X |
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.
Definition at line 38 of file itkLineSpatialObjectPoint.h.
typedef PixelType itk::SpatialObjectPoint< TPointDimension >::ColorType [inherited] |
Definition at line 53 of file itkSpatialObjectPoint.h.
typedef FixedArray<VectorType,TPointDimension-1> itk::LineSpatialObjectPoint< TPointDimension >::NormalArrayType |
Definition at line 48 of file itkLineSpatialObjectPoint.h.
typedef RGBAPixel< float > itk::SpatialObjectPoint< TPointDimension >::PixelType [inherited] |
Definition at line 52 of file itkSpatialObjectPoint.h.
typedef Point< double, TPointDimension > itk::LineSpatialObjectPoint< TPointDimension >::PointType |
Reimplemented from itk::SpatialObjectPoint< TPointDimension >.
Definition at line 46 of file itkLineSpatialObjectPoint.h.
typedef LineSpatialObjectPoint itk::LineSpatialObjectPoint< TPointDimension >::Self |
Reimplemented from itk::SpatialObjectPoint< TPointDimension >.
Definition at line 44 of file itkLineSpatialObjectPoint.h.
typedef SpatialObjectPoint<TPointDimension> itk::LineSpatialObjectPoint< TPointDimension >::Superclass |
Definition at line 45 of file itkLineSpatialObjectPoint.h.
typedef CovariantVector<double,TPointDimension> itk::LineSpatialObjectPoint< TPointDimension >::VectorType |
Reimplemented from itk::SpatialObjectPoint< TPointDimension >.
Definition at line 47 of file itkLineSpatialObjectPoint.h.
itk::LineSpatialObjectPoint< TPointDimension >::LineSpatialObjectPoint | ( | void | ) |
Constructor
virtual itk::LineSpatialObjectPoint< TPointDimension >::~LineSpatialObjectPoint | ( | void | ) | [virtual] |
Destructor
float itk::SpatialObjectPoint< TPointDimension >::GetAlpha | ( | void | ) | const [inherited] |
Set/Get alpha value of the point
float itk::SpatialObjectPoint< TPointDimension >::GetBlue | ( | void | ) | const [inherited] |
Set/Get blue color of the point
const PixelType& itk::SpatialObjectPoint< TPointDimension >::GetColor | ( | void | ) | const [inherited] |
Set/Get color of the point
float itk::SpatialObjectPoint< TPointDimension >::GetGreen | ( | void | ) | const [inherited] |
Set/Get Green color of the point
int itk::SpatialObjectPoint< TPointDimension >::GetID | ( | void | ) | const [inherited] |
Get the SpatialObjectPoint Id.
const VectorType& itk::LineSpatialObjectPoint< TPointDimension >::GetNormal | ( | unsigned int | index | ) | const |
Get Normal
const PointType& itk::SpatialObjectPoint< TPointDimension >::GetPosition | ( | void | ) | const [inherited] |
Return a pointer to the point object.
float itk::SpatialObjectPoint< TPointDimension >::GetRed | ( | void | ) | const [inherited] |
Set/Get red color of the point
Self& itk::LineSpatialObjectPoint< TPointDimension >::operator= | ( | const LineSpatialObjectPoint< TPointDimension > & | rhs | ) |
Copy one LineSpatialObjectPoint to another
void itk::SpatialObjectPoint< TPointDimension >::Print | ( | std::ostream & | os | ) | const [inherited] |
PrintSelf method
virtual void itk::LineSpatialObjectPoint< TPointDimension >::PrintSelf | ( | std::ostream & | os, | |
Indent | indent | |||
) | const [protected, virtual] |
Method to print the object.
Reimplemented from itk::SpatialObjectPoint< TPointDimension >.
void itk::SpatialObjectPoint< TPointDimension >::SetAlpha | ( | float | a | ) | [inherited] |
Set/Get alpha value of the point
void itk::SpatialObjectPoint< TPointDimension >::SetBlue | ( | float | b | ) | [inherited] |
Set/Get blue color of the point
void itk::SpatialObjectPoint< TPointDimension >::SetColor | ( | const PixelType & | color | ) | [inherited] |
Set/Get color of the point
void itk::SpatialObjectPoint< TPointDimension >::SetColor | ( | float | r, | |
float | g, | |||
float | b, | |||
float | a = 1 | |||
) | [inherited] |
Set/Get color of the point
void itk::SpatialObjectPoint< TPointDimension >::SetGreen | ( | float | g | ) | [inherited] |
Set/Get Green color of the point
void itk::SpatialObjectPoint< TPointDimension >::SetID | ( | const int | newID | ) | [inherited] |
Set the SpatialObjectPoint Id.
void itk::LineSpatialObjectPoint< TPointDimension >::SetNormal | ( | VectorType & | normal, | |
unsigned int | index | |||
) |
Set Normal
void itk::SpatialObjectPoint< TPointDimension >::SetPosition | ( | const double | x0, | |
const double | x1 | |||
) | [inherited] |
Set the point object. Couldn't use macros for these methods.
void itk::SpatialObjectPoint< TPointDimension >::SetPosition | ( | const double | x0, | |
const double | x1, | |||
const double | x2 | |||
) | [inherited] |
Set the point object. Couldn't use macros for these methods.
void itk::SpatialObjectPoint< TPointDimension >::SetPosition | ( | const PointType & | newX | ) | [inherited] |
Set the point object. Couldn't use macros for these methods.
void itk::SpatialObjectPoint< TPointDimension >::SetRed | ( | float | r | ) | [inherited] |
Set/Get red color of the point
PixelType itk::SpatialObjectPoint< TPointDimension >::m_Color [protected, inherited] |
Color of the point
Definition at line 114 of file itkSpatialObjectPoint.h.
int itk::SpatialObjectPoint< TPointDimension >::m_ID [protected, inherited] |
A unique ID assigned to this SpatialObjectPoint
Definition at line 108 of file itkSpatialObjectPoint.h.
NormalArrayType itk::LineSpatialObjectPoint< TPointDimension >::m_NormalArray [protected] |
Definition at line 67 of file itkLineSpatialObjectPoint.h.
PointType itk::SpatialObjectPoint< TPointDimension >::m_X [protected, inherited] |
Position of the point
Definition at line 111 of file itkSpatialObjectPoint.h.