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

#include <itkSpatialObjectPoint.h>

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

Detailed Description

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

Point used for spatial objets.

This class contains all the functions necessary to define a point

See Also
TubeSpatialObjectPoint SurfaceSpatialObjectPoint

Definition at line 43 of file itkSpatialObjectPoint.h.

Public Types

using ColorType = RGBAPixel< double >
 
using PointType = Point< double, TPointDimension >
 
using Self = SpatialObjectPoint
 
using SpatialObjectType = SpatialObject< TPointDimension >
 
using VectorType = vnl_vector< double >
 

Public Member Functions

double GetAlpha () const
 
double GetBlue () const
 
ColorType GetColor () const
 
double GetGreen () const
 
int GetId () const
 
const PointTypeGetPositionInObjectSpace () const
 
PointType GetPositionInWorldSpace () const
 
double GetRed () const
 
Selfoperator= (const SpatialObjectPoint &rhs)
 
void Print (std::ostream &os) const
 
void SetAlpha (double a)
 
void SetBlue (double b)
 
void SetColor (ColorType color)
 
void SetColor (double r, double g, double b, double a=1)
 
void SetGreen (double g)
 
void SetId (int id)
 
void SetPositionInObjectSpace (const PointType &newPositionInObjectSpace)
 
template<typename... TCoordinate>
void SetPositionInObjectSpace (const double firstCoordinate, const TCoordinate...otherCoordinate)
 
void SetPositionInWorldSpace (const PointType &point)
 
void SetRed (double r)
 
void SetSpatialObject (SpatialObjectType *so)
 
 SpatialObjectPoint ()
 
virtual ~SpatialObjectPoint ()=default
 

Protected Member Functions

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

Protected Attributes

ColorType m_Color
 
int m_Id
 
PointType m_PositionInObjectSpace
 
SpatialObjectType::Pointer m_SpatialObject
 

Member Typedef Documentation

template<unsigned int TPointDimension = 3>
using itk::SpatialObjectPoint< TPointDimension >::ColorType = RGBAPixel< double >

Definition at line 59 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
using itk::SpatialObjectPoint< TPointDimension >::PointType = Point< double, TPointDimension >

Definition at line 57 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
using itk::SpatialObjectPoint< TPointDimension >::Self = SpatialObjectPoint

Definition at line 53 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
using itk::SpatialObjectPoint< TPointDimension >::SpatialObjectType = SpatialObject<TPointDimension>

Definition at line 55 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
using itk::SpatialObjectPoint< TPointDimension >::VectorType = vnl_vector< double >

Definition at line 58 of file itkSpatialObjectPoint.h.

Constructor & Destructor Documentation

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

Constructor.

template<unsigned int TPointDimension = 3>
virtual itk::SpatialObjectPoint< TPointDimension >::~SpatialObjectPoint ( )
virtualdefault

Default destructor.

Member Function Documentation

template<unsigned int TPointDimension = 3>
double itk::SpatialObjectPoint< TPointDimension >::GetAlpha ( ) const
inline

Definition at line 140 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
double itk::SpatialObjectPoint< TPointDimension >::GetBlue ( ) const
inline

Definition at line 133 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
ColorType itk::SpatialObjectPoint< TPointDimension >::GetColor ( ) const
inline

Definition at line 109 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
double itk::SpatialObjectPoint< TPointDimension >::GetGreen ( ) const
inline

Definition at line 126 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
int itk::SpatialObjectPoint< TPointDimension >::GetId ( ) const
inline

Get the SpatialObjectPoint Id.

Definition at line 66 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
const PointType& itk::SpatialObjectPoint< TPointDimension >::GetPositionInObjectSpace ( ) const
inline

Return a pointer to the point object.

Definition at line 88 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
PointType itk::SpatialObjectPoint< TPointDimension >::GetPositionInWorldSpace ( ) const

Returns the position in world coordinates, using the spatialObject's objectToWorld transform

template<unsigned int TPointDimension = 3>
double itk::SpatialObjectPoint< TPointDimension >::GetRed ( ) const
inline

Definition at line 119 of file itkSpatialObjectPoint.h.

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

Copy one SpatialObjectPoint to another

template<unsigned int TPointDimension = 3>
void itk::SpatialObjectPoint< TPointDimension >::Print ( std::ostream &  os) const
inline

PrintSelf method

Definition at line 144 of file itkSpatialObjectPoint.h.

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

Set/Get alpha value of the point

Definition at line 137 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
void itk::SpatialObjectPoint< TPointDimension >::SetBlue ( double  b)
inline

Set/Get blue color of the point

Definition at line 130 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
void itk::SpatialObjectPoint< TPointDimension >::SetColor ( ColorType  color)
inline

Set/Get color of the point

Definition at line 106 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
void itk::SpatialObjectPoint< TPointDimension >::SetColor ( double  r,
double  g,
double  b,
double  a = 1 
)

Set the color

template<unsigned int TPointDimension = 3>
void itk::SpatialObjectPoint< TPointDimension >::SetGreen ( double  g)
inline

Set/Get Green color of the point

Definition at line 123 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
void itk::SpatialObjectPoint< TPointDimension >::SetId ( int  id)
inline

Set the SpatialObjectPoint Id.

Definition at line 62 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
void itk::SpatialObjectPoint< TPointDimension >::SetPositionInObjectSpace ( const PointType newPositionInObjectSpace)
inline

Set the point object.

Definition at line 70 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
template<typename... TCoordinate>
void itk::SpatialObjectPoint< TPointDimension >::SetPositionInObjectSpace ( const double  firstCoordinate,
const TCoordinate...  otherCoordinate 
)
inline

Definition at line 74 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
void itk::SpatialObjectPoint< TPointDimension >::SetPositionInWorldSpace ( const PointType point)

Set the position in world coordinates, using the spatialObject's objectToWorld transform, inverse

template<unsigned int TPointDimension = 3>
void itk::SpatialObjectPoint< TPointDimension >::SetRed ( double  r)
inline

Set/Get red color of the point

Definition at line 116 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
void itk::SpatialObjectPoint< TPointDimension >::SetSpatialObject ( SpatialObjectType so)
inline

Definition at line 91 of file itkSpatialObjectPoint.h.

Member Data Documentation

template<unsigned int TPointDimension = 3>
ColorType itk::SpatialObjectPoint< TPointDimension >::m_Color
protected

Color of the point

Definition at line 159 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
int itk::SpatialObjectPoint< TPointDimension >::m_Id
protected

A unique ID assigned to this SpatialObjectPoint

Definition at line 153 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
PointType itk::SpatialObjectPoint< TPointDimension >::m_PositionInObjectSpace
protected

Position of the point

Definition at line 156 of file itkSpatialObjectPoint.h.

template<unsigned int TPointDimension = 3>
SpatialObjectType::Pointer itk::SpatialObjectPoint< TPointDimension >::m_SpatialObject
protected

Definition at line 161 of file itkSpatialObjectPoint.h.


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