ITK
6.0.0
Insight Toolkit
|
#include <itkSpatialObjectPoint.h>
Point used for spatial objects.
This class contains all the functions necessary to define a point
Definition at line 44 of file itkSpatialObjectPoint.h.
Public Types | |
using | ColorType = RGBAPixel< double > |
using | PointDimensionType = unsigned int |
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 |
virtual const char * | GetNameOfClass () const |
const PointType & | GetPositionInObjectSpace () const |
PointType | GetPositionInWorldSpace () const |
double | GetRed () const |
SpatialObjectType * | GetSpatialObject () const |
std::map< std::string, double > & | GetTagScalarDictionary () |
const std::map< std::string, double > & | GetTagScalarDictionary () const |
double | GetTagScalarValue (const std::string &tag) const |
bool | GetTagScalarValue (const std::string &tag, double &value) const |
ITK_DEFAULT_COPY_AND_MOVE (SpatialObjectPoint) | |
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) |
template<typename... TCoordinate> | |
void | SetPositionInObjectSpace (const double firstCoordinate, const TCoordinate... otherCoordinate) |
void | SetPositionInObjectSpace (const PointType &newPositionInObjectSpace) |
void | SetPositionInWorldSpace (const PointType &point) |
void | SetRed (double r) |
void | SetSpatialObject (SpatialObjectType *so) |
void | SetTagScalarDictionary (const std::map< std::string, double > &dict) |
void | SetTagScalarValue (const std::string &tag, double value) |
SpatialObjectPoint () | |
virtual | ~SpatialObjectPoint ()=default |
Static Public Attributes | |
static constexpr PointDimensionType | PointDimension = TPointDimension |
Protected Member Functions | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
Protected Attributes | |
ColorType | m_Color {} |
int | m_Id {} |
PointType | m_PositionInObjectSpace {} |
std::map< std::string, double > | m_ScalarDictionary {} |
WeakPointer< SpatialObjectType > | m_SpatialObject {} |
using itk::SpatialObjectPoint< TPointDimension >::ColorType = RGBAPixel<double> |
Definition at line 68 of file itkSpatialObjectPoint.h.
using itk::SpatialObjectPoint< TPointDimension >::PointDimensionType = unsigned int |
Definition at line 49 of file itkSpatialObjectPoint.h.
using itk::SpatialObjectPoint< TPointDimension >::PointType = Point<double, TPointDimension> |
Definition at line 66 of file itkSpatialObjectPoint.h.
using itk::SpatialObjectPoint< TPointDimension >::Self = SpatialObjectPoint |
Definition at line 62 of file itkSpatialObjectPoint.h.
using itk::SpatialObjectPoint< TPointDimension >::SpatialObjectType = SpatialObject<TPointDimension> |
Definition at line 64 of file itkSpatialObjectPoint.h.
using itk::SpatialObjectPoint< TPointDimension >::VectorType = vnl_vector<double> |
Definition at line 67 of file itkSpatialObjectPoint.h.
itk::SpatialObjectPoint< TPointDimension >::SpatialObjectPoint | ( | ) |
Constructor.
|
virtualdefault |
Default destructor.
|
inline |
Definition at line 194 of file itkSpatialObjectPoint.h.
|
inline |
Definition at line 181 of file itkSpatialObjectPoint.h.
|
inline |
Definition at line 138 of file itkSpatialObjectPoint.h.
|
inline |
Definition at line 168 of file itkSpatialObjectPoint.h.
|
inline |
Get the SpatialObjectPoint Id.
Definition at line 79 of file itkSpatialObjectPoint.h.
|
virtual |
|
inline |
Return a pointer to the point object.
Definition at line 103 of file itkSpatialObjectPoint.h.
PointType itk::SpatialObjectPoint< TPointDimension >::GetPositionInWorldSpace | ( | ) | const |
Returns the position in world coordinates, using the spatialObject's objectToWorld transform
|
inline |
Definition at line 155 of file itkSpatialObjectPoint.h.
|
inline |
Definition at line 115 of file itkSpatialObjectPoint.h.
std::map< std::string, double > & itk::SpatialObjectPoint< TPointDimension >::GetTagScalarDictionary | ( | ) |
const std::map< std::string, double > & itk::SpatialObjectPoint< TPointDimension >::GetTagScalarDictionary | ( | ) | const |
double itk::SpatialObjectPoint< TPointDimension >::GetTagScalarValue | ( | const std::string & | tag | ) | const |
bool itk::SpatialObjectPoint< TPointDimension >::GetTagScalarValue | ( | const std::string & | tag, |
double & | value | ||
) | const |
itk::SpatialObjectPoint< TPointDimension >::ITK_DEFAULT_COPY_AND_MOVE | ( | SpatialObjectPoint< TPointDimension > | ) |
|
inline |
PrintSelf method
Definition at line 219 of file itkSpatialObjectPoint.h.
|
protectedvirtual |
PrintSelf method
Reimplemented in itk::ContourSpatialObjectPoint< TPointDimension >, itk::DTITubeSpatialObjectPoint< TPointDimension >, itk::LineSpatialObjectPoint< TPointDimension >, itk::SurfaceSpatialObjectPoint< TPointDimension >, itk::TubeSpatialObjectPoint< TPointDimension >, and itk::TubeSpatialObjectPoint< 3 >.
|
inline |
Set/Get alpha value of the point
Definition at line 188 of file itkSpatialObjectPoint.h.
|
inline |
Set/Get blue color of the point
Definition at line 175 of file itkSpatialObjectPoint.h.
|
inline |
Set/Get color of the point
Definition at line 132 of file itkSpatialObjectPoint.h.
void itk::SpatialObjectPoint< TPointDimension >::SetColor | ( | double | r, |
double | g, | ||
double | b, | ||
double | a = 1 |
||
) |
Set the color of the point.
|
inline |
Set/Get Green color of the point
Definition at line 162 of file itkSpatialObjectPoint.h.
|
inline |
Set the SpatialObjectPoint Id.
Definition at line 72 of file itkSpatialObjectPoint.h.
|
inline |
Definition at line 93 of file itkSpatialObjectPoint.h.
|
inline |
Set the point object.
Definition at line 86 of file itkSpatialObjectPoint.h.
void itk::SpatialObjectPoint< TPointDimension >::SetPositionInWorldSpace | ( | const PointType & | point | ) |
Set the position in world coordinates, using the spatialObject's objectToWorld transform, inverse
|
inline |
Set/Get red color of the point.
Definition at line 149 of file itkSpatialObjectPoint.h.
|
inline |
Definition at line 109 of file itkSpatialObjectPoint.h.
void itk::SpatialObjectPoint< TPointDimension >::SetTagScalarDictionary | ( | const std::map< std::string, double > & | dict | ) |
void itk::SpatialObjectPoint< TPointDimension >::SetTagScalarValue | ( | const std::string & | tag, |
double | value | ||
) |
|
protected |
Color of the point
Definition at line 236 of file itkSpatialObjectPoint.h.
|
protected |
A unique ID assigned to this SpatialObjectPoint
Definition at line 230 of file itkSpatialObjectPoint.h.
|
protected |
Position of the point
Definition at line 233 of file itkSpatialObjectPoint.h.
|
protected |
Additional scalar properties of the point
Definition at line 239 of file itkSpatialObjectPoint.h.
|
protected |
Definition at line 245 of file itkSpatialObjectPoint.h.
|
staticconstexpr |
Definition at line 51 of file itkSpatialObjectPoint.h.