![]() |
Orfeo Toolbox
3.16
|
Point used for spatial objets. More...
#include <itkSpatialObjectPoint.h>
Inheritance diagram for itk::SpatialObjectPoint< TPointDimension >:
Collaboration diagram for itk::SpatialObjectPoint< TPointDimension >: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 | |
| SpatialObjectPoint (void) | |
| virtual | ~SpatialObjectPoint (void) |
| float | GetAlpha (void) const |
| float | GetBlue (void) const |
| const PixelType & | GetColor (void) const |
| float | GetGreen (void) const |
| int | GetID (void) const |
| const PointType & | GetPosition (void) const |
| float | GetRed (void) 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) |
Protected Member Functions | |
| virtual void | PrintSelf (std::ostream &os, Indent indent) const |
Protected Attributes | |
| PixelType | m_Color |
| int | m_ID |
| PointType | m_X |
Point used for spatial objets.
This class contains all the functions necessary to define a point
Definition at line 37 of file itkSpatialObjectPoint.h.
| typedef PixelType itk::SpatialObjectPoint< TPointDimension >::ColorType |
Definition at line 53 of file itkSpatialObjectPoint.h.
| typedef RGBAPixel< float > itk::SpatialObjectPoint< TPointDimension >::PixelType |
Definition at line 52 of file itkSpatialObjectPoint.h.
| typedef Point< double, TPointDimension > itk::SpatialObjectPoint< TPointDimension >::PointType |
Reimplemented in itk::LineSpatialObjectPoint< TPointDimension >, itk::SurfaceSpatialObjectPoint< TPointDimension >, itk::TubeSpatialObjectPoint< TPointDimension >, itk::VesselTubeSpatialObjectPoint< TPointDimension >, itk::ContourSpatialObjectPoint< TPointDimension >, and itk::DTITubeSpatialObjectPoint< TPointDimension >.
Definition at line 50 of file itkSpatialObjectPoint.h.
| typedef SpatialObjectPoint itk::SpatialObjectPoint< TPointDimension >::Self |
Reimplemented in itk::LineSpatialObjectPoint< TPointDimension >, itk::SurfaceSpatialObjectPoint< TPointDimension >, itk::TubeSpatialObjectPoint< TPointDimension >, itk::VesselTubeSpatialObjectPoint< TPointDimension >, itk::ContourSpatialObjectPoint< TPointDimension >, and itk::DTITubeSpatialObjectPoint< TPointDimension >.
Definition at line 49 of file itkSpatialObjectPoint.h.
| typedef vnl_vector< double > itk::SpatialObjectPoint< TPointDimension >::VectorType |
Reimplemented in itk::LineSpatialObjectPoint< TPointDimension >, itk::SurfaceSpatialObjectPoint< TPointDimension >, itk::TubeSpatialObjectPoint< TPointDimension >, itk::VesselTubeSpatialObjectPoint< TPointDimension >, itk::ContourSpatialObjectPoint< TPointDimension >, and itk::DTITubeSpatialObjectPoint< TPointDimension >.
Definition at line 51 of file itkSpatialObjectPoint.h.
| itk::SpatialObjectPoint< TPointDimension >::SpatialObjectPoint | ( | void | ) |
Constructor. This one defines the # of dimensions in the SpatialObjectPoint
Constructor
Definition at line 28 of file itkSpatialObjectPoint.txx.
|
virtual |
| float itk::SpatialObjectPoint< TPointDimension >::GetAlpha | ( | void | ) | const |
Return the alpha value of the point
Definition at line 145 of file itkSpatialObjectPoint.txx.
| float itk::SpatialObjectPoint< TPointDimension >::GetBlue | ( | void | ) | const |
Return the blue channel of the point
Definition at line 127 of file itkSpatialObjectPoint.txx.
| const SpatialObjectPoint< TPointDimension >::PixelType & itk::SpatialObjectPoint< TPointDimension >::GetColor | ( | void | ) | const |
Set/Get color of the point
Return the color of the point
Definition at line 52 of file itkSpatialObjectPoint.txx.
| float itk::SpatialObjectPoint< TPointDimension >::GetGreen | ( | void | ) | const |
Return the green channel of the point
Definition at line 109 of file itkSpatialObjectPoint.txx.
| int itk::SpatialObjectPoint< TPointDimension >::GetID | ( | void | ) | const |
Get the SpatialObjectPoint Id.
Get the Identification number of a point
Definition at line 163 of file itkSpatialObjectPoint.txx.
Referenced by itk::ContourSpatialObjectPoint< TPointDimension >::operator=().
| const SpatialObjectPoint< TPointDimension >::PointType & itk::SpatialObjectPoint< TPointDimension >::GetPosition | ( | void | ) | const |
Return a pointer to the point object.
Return the position of a point
Definition at line 173 of file itkSpatialObjectPoint.txx.
Referenced by itk::PolygonSpatialObject< TDimension >::DeletePoint(), itk::PolygonSpatialObject< TDimension >::InsertPoint(), itk::ContourSpatialObjectPoint< TPointDimension >::operator=(), itk::PolygonSpatialObject< TDimension >::RemoveSegment(), and itk::PolygonSpatialObject< TDimension >::ReplacePoint().
| float itk::SpatialObjectPoint< TPointDimension >::GetRed | ( | void | ) | const |
Return the red channel of the point
Definition at line 91 of file itkSpatialObjectPoint.txx.
| SpatialObjectPoint< TPointDimension >::Self & itk::SpatialObjectPoint< TPointDimension >::operator= | ( | const SpatialObjectPoint< TPointDimension > & | rhs | ) |
Copy one SpatialObjectPoint to another
Copy a point to another point
Definition at line 213 of file itkSpatialObjectPoint.txx.
References itk::SpatialObjectPoint< TPointDimension >::m_Color, itk::SpatialObjectPoint< TPointDimension >::m_ID, and itk::SpatialObjectPoint< TPointDimension >::m_X.
| void itk::SpatialObjectPoint< TPointDimension >::Print | ( | std::ostream & | os | ) | const |
|
protectedvirtual |
PrintSelf method
PrintSelfMethod
Reimplemented in itk::VesselTubeSpatialObjectPoint< TPointDimension >, itk::DTITubeSpatialObjectPoint< TPointDimension >, itk::TubeSpatialObjectPoint< TPointDimension >, itk::ContourSpatialObjectPoint< TPointDimension >, itk::SurfaceSpatialObjectPoint< TPointDimension >, and itk::LineSpatialObjectPoint< TPointDimension >.
Definition at line 235 of file itkSpatialObjectPoint.txx.
| void itk::SpatialObjectPoint< TPointDimension >::SetAlpha | ( | float | a | ) |
Set/Get alpha value of the point
Set the alpha value of the point
Definition at line 136 of file itkSpatialObjectPoint.txx.
| void itk::SpatialObjectPoint< TPointDimension >::SetBlue | ( | float | b | ) |
Set/Get blue color of the point
Set the blue channel of the point
Definition at line 118 of file itkSpatialObjectPoint.txx.
| void itk::SpatialObjectPoint< TPointDimension >::SetColor | ( | const PixelType & | color | ) |
Set the color of the point
Definition at line 61 of file itkSpatialObjectPoint.txx.
| void itk::SpatialObjectPoint< TPointDimension >::SetColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a = 1 |
||
| ) |
Set the color of the point
Definition at line 70 of file itkSpatialObjectPoint.txx.
| void itk::SpatialObjectPoint< TPointDimension >::SetGreen | ( | float | g | ) |
Set/Get Green color of the point
Set the green channel of the point
Definition at line 100 of file itkSpatialObjectPoint.txx.
| void itk::SpatialObjectPoint< TPointDimension >::SetID | ( | const int | newID | ) |
Set the SpatialObjectPoint Id.
Set the Identification number of a point
Definition at line 154 of file itkSpatialObjectPoint.txx.
| void itk::SpatialObjectPoint< TPointDimension >::SetPosition | ( | const PointType & | newX | ) |
Set the point object. Couldn't use macros for these methods.
Set the position : n-D case
Definition at line 182 of file itkSpatialObjectPoint.txx.
Referenced by itk::PolygonSpatialObject< TDimension >::AddPoint(), itk::PolygonGroupSpatialObjectXMLFileReader::EndElement(), otb::FillGapsFilter::GenerateData(), itk::HoughTransform2DLinesImageFilter< TInputPixelType, TOutputPixelType >::GetLines(), otb::HoughTransform2DLinesImageFilter< TInputPixelType, TOutputPixelType >::GetLines(), itk::PolygonSpatialObject< TDimension >::InsertPoint(), otb::LocalHoughFilter< TInputImage >::LinePointResearch(), and itk::PolygonSpatialObject< TDimension >::ReplacePoint().
| void itk::SpatialObjectPoint< TPointDimension >::SetPosition | ( | const double | x0, |
| const double | x1 | ||
| ) |
Set the position : 2D case
Definition at line 202 of file itkSpatialObjectPoint.txx.
| void itk::SpatialObjectPoint< TPointDimension >::SetPosition | ( | const double | x0, |
| const double | x1, | ||
| const double | x2 | ||
| ) |
Set the position : 3D case
Definition at line 191 of file itkSpatialObjectPoint.txx.
| void itk::SpatialObjectPoint< TPointDimension >::SetRed | ( | float | r | ) |
Set/Get red color of the point
Set the red channel of the point
Definition at line 82 of file itkSpatialObjectPoint.txx.
|
protected |
Color of the point
Definition at line 108 of file itkSpatialObjectPoint.h.
Referenced by itk::SpatialObjectPoint< TPointDimension >::operator=(), itk::DTITubeSpatialObjectPoint< TPointDimension >::operator=(), itk::TubeSpatialObjectPoint< TPointDimension >::operator=(), and itk::VesselTubeSpatialObjectPoint< TPointDimension >::operator=().
|
protected |
A unique ID assigned to this SpatialObjectPoint
Definition at line 102 of file itkSpatialObjectPoint.h.
Referenced by itk::LineSpatialObjectPoint< TPointDimension >::operator=(), itk::SurfaceSpatialObjectPoint< TPointDimension >::operator=(), itk::SpatialObjectPoint< TPointDimension >::operator=(), itk::DTITubeSpatialObjectPoint< TPointDimension >::operator=(), itk::TubeSpatialObjectPoint< TPointDimension >::operator=(), and itk::VesselTubeSpatialObjectPoint< TPointDimension >::operator=().
|
protected |
Position of the point
Definition at line 105 of file itkSpatialObjectPoint.h.
Referenced by itk::LineSpatialObjectPoint< TPointDimension >::operator=(), itk::SurfaceSpatialObjectPoint< TPointDimension >::operator=(), itk::SpatialObjectPoint< TPointDimension >::operator=(), itk::DTITubeSpatialObjectPoint< TPointDimension >::operator=(), itk::TubeSpatialObjectPoint< TPointDimension >::operator=(), and itk::VesselTubeSpatialObjectPoint< TPointDimension >::operator=().