#include <itkPoint.h>
Inheritance diagram for itk::Point< TCoordRep, NPointDimension >:
Public Types | |
typedef Point | Self |
typedef FixedArray< TCoordRep, NPointDimension > | Superclass |
typedef TCoordRep | ValueType |
typedef TCoordRep | CoordRepType |
typedef NumericTraits< ValueType >::RealType | RealType |
typedef FixedArray< TCoordRep, NPointDimension > | BaseArray |
typedef BaseArray::Iterator | Iterator |
typedef BaseArray::ConstIterator | ConstIterator |
typedef Vector< ValueType, NPointDimension > | VectorType |
Public Member Functions | |
itkStaticConstMacro (PointDimension, unsigned int, NPointDimension) | |
Point () | |
const Self & | operator+= (const VectorType &vec) |
const Self & | operator-= (const VectorType &vec) |
VectorType | operator- (const Self &pnt) const |
Self | operator+ (const VectorType &vec) const |
Self | operator- (const VectorType &vec) const |
VectorType | GetVectorFromOrigin () const |
vnl_vector_ref< TCoordRep > | GetVnlVector (void) |
vnl_vector< TCoordRep > | GetVnlVector (void) const |
vnl_vector_ref< TCoordRep > | Get_vnl_vector (void) |
vnl_vector< TCoordRep > | Get_vnl_vector (void) const |
void | SetToMidPoint (const Self &, const Self &) |
template<typename TCoordRepB> RealType | SquaredEuclideanDistanceTo (const Point< TCoordRepB, NPointDimension > &pa) const |
Point (const Self &r) | |
Point (const ValueType r[PointDimension]) | |
Point & | operator= (const Self &r) |
Point & | operator= (const ValueType r[NPointDimension]) |
bool | operator== (const Self &pt) const |
bool | operator!= (const Self &pt) const |
void | SetToBarycentricCombination (const Self &A, const Self &B, double alpha) |
void | SetToBarycentricCombination (const Self &A, const Self &B, const Self &C, double weightA, double weightB) |
void | SetToBarycentricCombination (const Self *P, const double *weights, unsigned int N) |
template<typename TCoordRepB> void | CastFrom (const Point< TCoordRepB, NPointDimension > &pa) |
template<typename TCoordRepB> RealType | EuclideanDistanceTo (const Point< TCoordRepB, NPointDimension > &pa) const |
Static Public Member Functions | |
unsigned int | GetPointDimension () |
Point is a templated class that holds a set of coordinates (components). Point can be used as the data type held at each pixel in an Image or at each vertex of an Mesh. The template parameter T can be any data type that behaves like a primitive (or atomic) data type (int, short, float, complex). The NPointDimension defines the number of components in the point array.
Definition at line 42 of file itkPoint.h.
|
The Array type from which this Vector is derived. Reimplemented in itk::ContinuousIndex< TCoordRep, VIndexDimension >. Definition at line 60 of file itkPoint.h. |
|
A const iterator through the array. Reimplemented from itk::FixedArray< TCoordRep, NPointDimension >. Reimplemented in itk::ContinuousIndex< TCoordRep, VIndexDimension >. Definition at line 62 of file itkPoint.h. |
|
Reimplemented in itk::ContinuousIndex< TCoordRep, VIndexDimension >. Definition at line 52 of file itkPoint.h. |
|
An iterator through the array. Reimplemented from itk::FixedArray< TCoordRep, NPointDimension >. Reimplemented in itk::ContinuousIndex< TCoordRep, VIndexDimension >. Definition at line 61 of file itkPoint.h. |
|
Definition at line 54 of file itkPoint.h. |
|
Standard class typedefs. Reimplemented in itk::ContinuousIndex< TCoordRep, VIndexDimension >. Definition at line 46 of file itkPoint.h. |
|
Reimplemented in itk::ContinuousIndex< TCoordRep, VIndexDimension >. Definition at line 47 of file itkPoint.h. |
|
ValueType can be used to declare a variable that is the same type as a data element held in an Point. Reimplemented from itk::FixedArray< TCoordRep, NPointDimension >. Reimplemented in itk::ContinuousIndex< TCoordRep, VIndexDimension >. Definition at line 51 of file itkPoint.h. |
|
VectorType define the difference between two Points Definition at line 69 of file itkPoint.h. |
|
Default constructor has nothing to do. Definition at line 72 of file itkPoint.h. |
|
Pass-through constructor for the Array base class. Definition at line 75 of file itkPoint.h. |
|
Pass-through constructor for the Array base class. Definition at line 76 of file itkPoint.h. |
|
Copy from another Point with a different representation type. Casting is done with C-Like rules Definition at line 216 of file itkPoint.h. |
|
Compute the Euclidean Distance from this point to another point with a different representation type. Casting is done with C-Like rules Definition at line 247 of file itkPoint.h. |
|
Get a vnl_vector with a copy of the internal memory block.
|
|
Get a vnl_vector_ref referencing the same memory block
|
|
Get the dimension (size) of the point. Definition at line 65 of file itkPoint.h. |
|
Access an element of a point. |
|
Get a vnl_vector with a copy of the internal memory block. |
|
Get a vnl_vector_ref referencing the same memory block |
|
Dimension of the Space |
|
Compare two points for inequality. Definition at line 97 of file itkPoint.h. |
|
Add a vector to a point. Return a new point. |
|
Point operator+=. Adds a vector to the current point. |
|
Subtract a vector from a point. Return a new point. |
|
Computes the Vector difference between two points |
|
Point operator-=. Subtracts a vector from a current point. |
|
Pass-through assignment operator for the Array base class. |
|
Pass-through assignment operator for the Array base class. |
|
Compare two points for equality. Definition at line 86 of file itkPoint.h. |
|
Set the current point to a barycentric combination of an array of N points An array of (N-1) values is expected to weight the contribution of the first (N-1) points, the weight of the Nth point is computed to ensure that the N weights sum 1. This method computes:
|
|
Set the current point to a barycentric combination of three points Two values are expected to weight the contribution of the first two points, the weight of for the third point is computed to ensure that the three weights sum 1. This method computes:
If the two weight are , The resulting point will alway be placed inside the triangle formed by the three points given as arguments. |
|
Set the current point to a barycentric combination of the two points given as arguments.
If the value of , the resulting point will be placed in the line segment joining and If the value of the resulting point will be placed outside the line segment on the side of . If the value of the resulting point will be placed outside the line segment on the side of .
|
|
Set to median point between the two points given as arguments This method computes:
using the two Points given as arguments, and store the result in the Point on which the method is invoked. |
|
Compute the Squared Euclidean Distance from this point to another point with a different representation type. Casting is done with C-Like rules Definition at line 230 of file itkPoint.h. |