ITK
4.8.0
Insight Segmentation and Registration Toolkit
|
#include <itkSpatialObjectPoint.h>
Point used for spatial objets.
This class contains all the functions necessary to define a point
Definition at line 37 of file itkSpatialObjectPoint.h.
Public Types | |
typedef PixelType | ColorType |
typedef RGBAPixel< float > | PixelType |
typedef Point< double, TPointDimension > | PointType |
typedef SpatialObjectPoint | Self |
typedef vnl_vector< double > | VectorType |
Public Member Functions | |
float | GetAlpha () const |
float | GetBlue () const |
const PixelType & | GetColor () const |
float | GetGreen () const |
int | GetID () const |
const PointType & | GetPosition () const |
float | GetRed () const |
Self & | operator= (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 () | |
virtual | ~SpatialObjectPoint () |
Protected Member Functions | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
Protected Attributes | |
PixelType | m_Color |
int | m_ID |
PointType | m_X |
typedef PixelType itk::SpatialObjectPoint< TPointDimension >::ColorType |
Definition at line 52 of file itkSpatialObjectPoint.h.
typedef RGBAPixel< float > itk::SpatialObjectPoint< TPointDimension >::PixelType |
Definition at line 51 of file itkSpatialObjectPoint.h.
typedef Point< double, TPointDimension > itk::SpatialObjectPoint< TPointDimension >::PointType |
Definition at line 49 of file itkSpatialObjectPoint.h.
typedef SpatialObjectPoint itk::SpatialObjectPoint< TPointDimension >::Self |
Definition at line 48 of file itkSpatialObjectPoint.h.
typedef vnl_vector< double > itk::SpatialObjectPoint< TPointDimension >::VectorType |
Definition at line 50 of file itkSpatialObjectPoint.h.
itk::SpatialObjectPoint< TPointDimension >::SpatialObjectPoint | ( | ) |
Constructor. This one defines the number of dimensions in the SpatialObjectPoint
|
virtual |
Default destructor.
float itk::SpatialObjectPoint< TPointDimension >::GetAlpha | ( | ) | const |
float itk::SpatialObjectPoint< TPointDimension >::GetBlue | ( | ) | const |
const PixelType& itk::SpatialObjectPoint< TPointDimension >::GetColor | ( | ) | const |
Set/Get color of the point
float itk::SpatialObjectPoint< TPointDimension >::GetGreen | ( | ) | const |
int itk::SpatialObjectPoint< TPointDimension >::GetID | ( | ) | const |
Get the SpatialObjectPoint Id.
const PointType& itk::SpatialObjectPoint< TPointDimension >::GetPosition | ( | ) | const |
Return a pointer to the point object.
float itk::SpatialObjectPoint< TPointDimension >::GetRed | ( | ) | const |
Self& itk::SpatialObjectPoint< TPointDimension >::operator= | ( | const SpatialObjectPoint< TPointDimension > & | rhs | ) |
Copy one SpatialObjectPoint to another
void itk::SpatialObjectPoint< TPointDimension >::Print | ( | std::ostream & | os | ) | const |
PrintSelf method
|
protectedvirtual |
PrintSelf method
Reimplemented in itk::VesselTubeSpatialObjectPoint< TPointDimension >, itk::TubeSpatialObjectPoint< TPointDimension >, itk::DTITubeSpatialObjectPoint< TPointDimension >, itk::ContourSpatialObjectPoint< TPointDimension >, itk::LineSpatialObjectPoint< TPointDimension >, and itk::SurfaceSpatialObjectPoint< TPointDimension >.
void itk::SpatialObjectPoint< TPointDimension >::SetAlpha | ( | float | a | ) |
Set/Get alpha value of the point
void itk::SpatialObjectPoint< TPointDimension >::SetBlue | ( | float | b | ) |
Set/Get blue color of the point
void itk::SpatialObjectPoint< TPointDimension >::SetColor | ( | const PixelType & | color | ) |
void itk::SpatialObjectPoint< TPointDimension >::SetColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a = 1 |
||
) |
void itk::SpatialObjectPoint< TPointDimension >::SetGreen | ( | float | g | ) |
Set/Get Green color of the point
void itk::SpatialObjectPoint< TPointDimension >::SetID | ( | const int | newID | ) |
Set the SpatialObjectPoint Id.
void itk::SpatialObjectPoint< TPointDimension >::SetPosition | ( | const PointType & | newX | ) |
Set the point object. Couldn't use macros for these methods.
void itk::SpatialObjectPoint< TPointDimension >::SetPosition | ( | const double | x0, |
const double | x1 | ||
) |
void itk::SpatialObjectPoint< TPointDimension >::SetPosition | ( | const double | x0, |
const double | x1, | ||
const double | x2 | ||
) |
void itk::SpatialObjectPoint< TPointDimension >::SetRed | ( | float | r | ) |
Set/Get red color of the point
|
protected |
Color of the point
Definition at line 115 of file itkSpatialObjectPoint.h.
|
protected |
A unique ID assigned to this SpatialObjectPoint
Definition at line 109 of file itkSpatialObjectPoint.h.
|
protected |
Position of the point
Definition at line 112 of file itkSpatialObjectPoint.h.