Point used for a tube definition. More...
#include <itkDTITubeSpatialObjectPoint.h>
Public Types | |
typedef PixelType | ColorType |
typedef CovariantVector < double, TPointDimension > | CovariantVectorType |
enum | FieldEnumType { FA, ADC, GA } |
typedef std::vector< FieldType > | FieldListType |
typedef std::pair< std::string, float > | FieldType |
typedef RGBAPixel< float > | PixelType |
typedef Point< double, TPointDimension > | PointType |
typedef DTITubeSpatialObjectPoint | Self |
typedef SpatialObjectPoint < TPointDimension > | Superclass |
typedef Vector< double, TPointDimension > | VectorType |
Public Member Functions | |
void | AddField (const char *name, float value) |
void | AddField (FieldEnumType name, float value) |
DTITubeSpatialObjectPoint (void) | |
const FieldListType & | GetFields () const |
int | GetID (void) const |
const CovariantVectorType & | GetNormal1 (void) const |
const CovariantVectorType & | GetNormal2 (void) const |
unsigned short int | GetNumDimensions (void) const |
const PointType & | GetPosition (void) const |
float | GetRadius (void) const |
const VectorType & | GetTangent (void) const |
const float * | GetTensorMatrix () const |
Self & | operator= (const DTITubeSpatialObjectPoint &rhs) |
void | Print (std::ostream &os) const |
void | SetID (const int newID) |
void | SetRadius (const float newR) |
void | SetTensorMatrix (const DiffusionTensor3D< float > &matrix) |
void | SetTensorMatrix (const DiffusionTensor3D< double > &matrix) |
void | SetTensorMatrix (const float *matrix) |
virtual | ~DTITubeSpatialObjectPoint (void) |
void | SetField (FieldEnumType name, float value) |
void | SetField (const char *name, float value) |
float | GetField (const char *name) const |
float | GetField (FieldEnumType name) const |
void | SetTangent (const VectorType &newT) |
void | SetTangent (const double t0, const double t1) |
void | SetTangent (const double t0, const double t1, const double t2) |
void | SetNormal1 (const CovariantVectorType &newV1) |
void | SetNormal1 (const double v10, const double v11) |
void | SetNormal1 (const double v10, const double v11, const double v12) |
void | SetNormal2 (const CovariantVectorType &newV2) |
void | SetNormal2 (const double v20, const double v21) |
void | SetNormal2 (const double v20, const double v21, const double v22) |
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 | |
void | PrintSelf (std::ostream &os, Indent indent) const |
std::string | TranslateEnumToChar (FieldEnumType name) const |
Protected Attributes | |
PixelType | m_Color |
FieldListType | m_Fields |
int | m_ID |
CovariantVectorType | m_Normal1 |
CovariantVectorType | m_Normal2 |
unsigned short int | m_NumDimensions |
float | m_R |
VectorType | m_T |
float | m_TensorMatrix [6] |
PointType | m_X |
Point used for a tube definition.
This class contains all the functions necessary to define a point that can be used to build tubes.
Definition at line 37 of file itkDTITubeSpatialObjectPoint.h.
typedef PixelType itk::SpatialObjectPoint< TPointDimension >::ColorType [inherited] |
Definition at line 53 of file itkSpatialObjectPoint.h.
typedef CovariantVector<double, TPointDimension > itk::DTITubeSpatialObjectPoint< TPointDimension >::CovariantVectorType |
Reimplemented from itk::TubeSpatialObjectPoint< TPointDimension >.
Definition at line 47 of file itkDTITubeSpatialObjectPoint.h.
typedef std::vector<FieldType> itk::DTITubeSpatialObjectPoint< TPointDimension >::FieldListType |
Definition at line 49 of file itkDTITubeSpatialObjectPoint.h.
typedef std::pair<std::string,float> itk::DTITubeSpatialObjectPoint< TPointDimension >::FieldType |
Definition at line 48 of file itkDTITubeSpatialObjectPoint.h.
typedef RGBAPixel< float > itk::SpatialObjectPoint< TPointDimension >::PixelType [inherited] |
Definition at line 52 of file itkSpatialObjectPoint.h.
typedef Point< double, TPointDimension > itk::DTITubeSpatialObjectPoint< TPointDimension >::PointType |
Reimplemented from itk::TubeSpatialObjectPoint< TPointDimension >.
Definition at line 45 of file itkDTITubeSpatialObjectPoint.h.
typedef DTITubeSpatialObjectPoint itk::DTITubeSpatialObjectPoint< TPointDimension >::Self |
Reimplemented from itk::TubeSpatialObjectPoint< TPointDimension >.
Definition at line 43 of file itkDTITubeSpatialObjectPoint.h.
typedef SpatialObjectPoint<TPointDimension> itk::DTITubeSpatialObjectPoint< TPointDimension >::Superclass |
Reimplemented from itk::TubeSpatialObjectPoint< TPointDimension >.
Definition at line 44 of file itkDTITubeSpatialObjectPoint.h.
typedef Vector<double, TPointDimension > itk::DTITubeSpatialObjectPoint< TPointDimension >::VectorType |
Reimplemented from itk::TubeSpatialObjectPoint< TPointDimension >.
Definition at line 46 of file itkDTITubeSpatialObjectPoint.h.
enum itk::DTITubeSpatialObjectPoint::FieldEnumType |
Definition at line 53 of file itkDTITubeSpatialObjectPoint.h.
itk::DTITubeSpatialObjectPoint< TPointDimension >::DTITubeSpatialObjectPoint | ( | void | ) |
Constructor. This one defines the # of dimensions in the DTITubeSpatialObjectPoint
virtual itk::DTITubeSpatialObjectPoint< TPointDimension >::~DTITubeSpatialObjectPoint | ( | void | ) | [virtual] |
Default destructor.
void itk::DTITubeSpatialObjectPoint< TPointDimension >::AddField | ( | const char * | name, | |
float | value | |||
) |
Add a field to the point list
void itk::DTITubeSpatialObjectPoint< TPointDimension >::AddField | ( | FieldEnumType | name, | |
float | value | |||
) |
Add a field to the point list
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::DTITubeSpatialObjectPoint< TPointDimension >::GetField | ( | const char * | name | ) | const |
Return the value of the specific fiedls
float itk::DTITubeSpatialObjectPoint< TPointDimension >::GetField | ( | FieldEnumType | name | ) | const |
Return the value of the specific fiedls
const FieldListType& itk::DTITubeSpatialObjectPoint< TPointDimension >::GetFields | ( | ) | const [inline] |
Return the list of extra fields
Definition at line 98 of file itkDTITubeSpatialObjectPoint.h.
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 CovariantVectorType& itk::TubeSpatialObjectPoint< TPointDimension >::GetNormal1 | ( | void | ) | const [inherited] |
Get V1
const CovariantVectorType& itk::TubeSpatialObjectPoint< TPointDimension >::GetNormal2 | ( | void | ) | const [inherited] |
Get V2
unsigned short int itk::TubeSpatialObjectPoint< TPointDimension >::GetNumDimensions | ( | void | ) | const [inherited] |
Get # of dimensions
const PointType& itk::SpatialObjectPoint< TPointDimension >::GetPosition | ( | void | ) | const [inherited] |
Return a pointer to the point object.
float itk::TubeSpatialObjectPoint< TPointDimension >::GetRadius | ( | void | ) | const [inherited] |
Get R
float itk::SpatialObjectPoint< TPointDimension >::GetRed | ( | void | ) | const [inherited] |
Set/Get red color of the point
const VectorType& itk::TubeSpatialObjectPoint< TPointDimension >::GetTangent | ( | void | ) | const [inherited] |
Get the tangent
const float* itk::DTITubeSpatialObjectPoint< TPointDimension >::GetTensorMatrix | ( | ) | const [inline] |
Definition at line 81 of file itkDTITubeSpatialObjectPoint.h.
Self& itk::DTITubeSpatialObjectPoint< TPointDimension >::operator= | ( | const DTITubeSpatialObjectPoint< TPointDimension > & | rhs | ) |
Copy one DTITubeSpatialObjectPoint to another
void itk::SpatialObjectPoint< TPointDimension >::Print | ( | std::ostream & | os | ) | const [inherited] |
PrintSelf method
void itk::DTITubeSpatialObjectPoint< TPointDimension >::PrintSelf | ( | std::ostream & | os, | |
Indent | indent | |||
) | const [protected, virtual] |
Print the object
Reimplemented from itk::TubeSpatialObjectPoint< 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::DTITubeSpatialObjectPoint< TPointDimension >::SetField | ( | FieldEnumType | name, | |
float | value | |||
) |
Set a field value
void itk::DTITubeSpatialObjectPoint< TPointDimension >::SetField | ( | const char * | name, | |
float | value | |||
) |
Set a field value
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::TubeSpatialObjectPoint< TPointDimension >::SetNormal1 | ( | const double | v10, | |
const double | v11, | |||
const double | v12 | |||
) | [inherited] |
Set V1
void itk::TubeSpatialObjectPoint< TPointDimension >::SetNormal1 | ( | const CovariantVectorType & | newV1 | ) | [inherited] |
Set V1
void itk::TubeSpatialObjectPoint< TPointDimension >::SetNormal1 | ( | const double | v10, | |
const double | v11 | |||
) | [inherited] |
Set V1
void itk::TubeSpatialObjectPoint< TPointDimension >::SetNormal2 | ( | const CovariantVectorType & | newV2 | ) | [inherited] |
Set V2
void itk::TubeSpatialObjectPoint< TPointDimension >::SetNormal2 | ( | const double | v20, | |
const double | v21 | |||
) | [inherited] |
Set V2
void itk::TubeSpatialObjectPoint< TPointDimension >::SetNormal2 | ( | const double | v20, | |
const double | v21, | |||
const double | v22 | |||
) | [inherited] |
Set V2
void itk::SpatialObjectPoint< TPointDimension >::SetPosition | ( | const PointType & | newX | ) | [inherited] |
Set the point object. Couldn't use macros for these methods.
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::TubeSpatialObjectPoint< TPointDimension >::SetRadius | ( | const float | newR | ) | [inherited] |
Set R
void itk::SpatialObjectPoint< TPointDimension >::SetRed | ( | float | r | ) | [inherited] |
Set/Get red color of the point
void itk::TubeSpatialObjectPoint< TPointDimension >::SetTangent | ( | const double | t0, | |
const double | t1 | |||
) | [inherited] |
Set T. Couldn't use macros for these methods
void itk::TubeSpatialObjectPoint< TPointDimension >::SetTangent | ( | const double | t0, | |
const double | t1, | |||
const double | t2 | |||
) | [inherited] |
Set T. Couldn't use macros for these methods
void itk::TubeSpatialObjectPoint< TPointDimension >::SetTangent | ( | const VectorType & | newT | ) | [inherited] |
Set T. Couldn't use macros for these methods
void itk::DTITubeSpatialObjectPoint< TPointDimension >::SetTensorMatrix | ( | const DiffusionTensor3D< double > & | matrix | ) | [inline] |
Set/Get the tensor matrix
Definition at line 63 of file itkDTITubeSpatialObjectPoint.h.
References itk::FixedArray< TComponent, NDimension *(NDimension+1)/2 >::Begin(), and itk::FixedArray< TComponent, NDimension *(NDimension+1)/2 >::End().
void itk::DTITubeSpatialObjectPoint< TPointDimension >::SetTensorMatrix | ( | const float * | matrix | ) | [inline] |
Definition at line 73 of file itkDTITubeSpatialObjectPoint.h.
void itk::DTITubeSpatialObjectPoint< TPointDimension >::SetTensorMatrix | ( | const DiffusionTensor3D< float > & | matrix | ) | [inline] |
Definition at line 68 of file itkDTITubeSpatialObjectPoint.h.
References itk::FixedArray< TComponent, NDimension *(NDimension+1)/2 >::Begin(), and itk::FixedArray< TComponent, NDimension *(NDimension+1)/2 >::End().
std::string itk::DTITubeSpatialObjectPoint< TPointDimension >::TranslateEnumToChar | ( | FieldEnumType | name | ) | const [protected] |
Translate the enum to char
PixelType itk::SpatialObjectPoint< TPointDimension >::m_Color [protected, inherited] |
Color of the point
Definition at line 114 of file itkSpatialObjectPoint.h.
FieldListType itk::DTITubeSpatialObjectPoint< TPointDimension >::m_Fields [protected] |
Definition at line 109 of file itkDTITubeSpatialObjectPoint.h.
int itk::SpatialObjectPoint< TPointDimension >::m_ID [protected, inherited] |
A unique ID assigned to this SpatialObjectPoint
Definition at line 108 of file itkSpatialObjectPoint.h.
CovariantVectorType itk::TubeSpatialObjectPoint< TPointDimension >::m_Normal1 [protected, inherited] |
Definition at line 99 of file itkTubeSpatialObjectPoint.h.
CovariantVectorType itk::TubeSpatialObjectPoint< TPointDimension >::m_Normal2 [protected, inherited] |
Definition at line 100 of file itkTubeSpatialObjectPoint.h.
unsigned short int itk::TubeSpatialObjectPoint< TPointDimension >::m_NumDimensions [protected, inherited] |
# of dimensions
Definition at line 106 of file itkTubeSpatialObjectPoint.h.
float itk::TubeSpatialObjectPoint< TPointDimension >::m_R [protected, inherited] |
The radius of the tube point
Definition at line 103 of file itkTubeSpatialObjectPoint.h.
VectorType itk::TubeSpatialObjectPoint< TPointDimension >::m_T [protected, inherited] |
Definition at line 98 of file itkTubeSpatialObjectPoint.h.
float itk::DTITubeSpatialObjectPoint< TPointDimension >::m_TensorMatrix[6] [protected] |
Definition at line 108 of file itkDTITubeSpatialObjectPoint.h.
PointType itk::SpatialObjectPoint< TPointDimension >::m_X [protected, inherited] |
Position of the point
Definition at line 111 of file itkSpatialObjectPoint.h.