#include <mitkPointSet.h>
Inherited by mitkKdTreePointSet.
Inheritance diagram for mitkPointSet:
Public Member Functions | |
mitkPointSet () | |
virtual | ~mitkPointSet () |
mitkPointSet (unsigned int numberOfPoints, unsigned int pointSetDimension, double fillElement=0) | |
mitkPointSet (mitkPointSet *pointSet) | |
void | GetPoint (unsigned int i, ScalarParameterType *p) |
double | GetPoint (unsigned int i, unsigned int dim) |
void | SetPoint (unsigned int i, ScalarParameterType *p) |
vector< double > * | GetPointsInSequence (vector< int > *sequence) |
vector< double > * | GetPointData () |
double * | GetPointDataPtr () |
void | SetPointData (vector< double > *pointSet, unsigned int dimension) |
void | SetPointData (double *pointSet, unsigned int dimension, unsigned int numberOfPoints) |
vector< double > * | GetPointsInDimension (unsigned int sDimension) |
void | SetPointsInDimension (vector< double > *points, unsigned int sDimension) |
void | SetPointsInDimension (double fillElement, unsigned int sDimension) |
void | SetPointData (mitkMesh *mesh) |
void | GetPointData (mitkMesh *mesh) |
void | GetWeight (unsigned int i, vector< double > *w) |
void | SetWeight (unsigned int i, vector< double > *w) |
vector< double > * | GetWeightsInSequence (vector< int > *sequence) |
void | SetWeightData (vector< double > *weights, unsigned int dimension) |
void | SetWeightData (double *weights, unsigned int dimension, unsigned int numberOfPoints) |
vector< double > * | GetWeightData () |
double * | GetWeightDataPtr () |
void | SetPointSetMask (vector< int > *pointSetMask) |
vector< int > * | GetPointSetMask () |
void | SetPointSetMaskFlag (bool maskFlag) |
bool | GetPointSetMaskFlag () |
void | ReadPointDataFromFile (char *inFileName, int pointSetDimension, int dataType) |
void | WritePointDataToFile (char *outFileName) |
unsigned int | GetNumberOfPoints () |
void | SetNumberOfPoints (unsigned int num) |
int | GetPointSetDimension () |
void | SetPointSetDimension (unsigned int pointSetDimension) |
int | GetWeightsDimension () |
void | GetBoundingBox (double b[6]) |
void | GetBoundingBox (float b[6]) |
void | GetCentroid (double p[3]) |
virtual void | GetNearestPoint (double *query_point, double *result_point, int &i) |
virtual void | GetKNearestPoints (double *query_point, unsigned int k, vector< int > &indices) |
virtual void | GetKNearestPoints (vector< double > *query_point, unsigned int k, vector< int > &indices) |
virtual void | GetNearestPoints (mitkPointSet *query_pointset, vector< int > &indices) |
virtual void | GetPointsInBoundingBox (mitkBoundingBox< double > &box, vector< int > &indices) |
virtual void | GetPointsInRadius (double *query_point, double radius, vector< int > &indices) |
void | Fill (double fillElement) |
bool | RemoveDuplicates () |
void | ConvertPointSet2Dto3D () |
virtual void | Initialize () |
virtual void | Clear () |
bool | IsPointSetEmpty () |
bool | IsWeightsEmpty () |
bool | IsInitialized () |
void | ShallowCopy (mitkPointSet *pointSet) |
void | DeepCopy (mitkPointSet *pointSet) |
void | Merge (mitkPointSet *pointSet) |
void | Reserve (unsigned int s, unsigned int d=3) |
void | SetOriginAndDirection (double o[3], int d[3]) |
mitkPointSet is a class to represent geometry in the form of a set of points in two or three dimensional space. It provides lots of basic point set handling methods and several k nearest neighbor searching methods.
|
Constructor. |
|
De-constructor. |
|
Constructor filling with initial elements
|
|
Constructor with a point set
|
|
Deconstruct the point set object. |
|
Convert point set's dimension from 2D to 3D. |
|
Initialize the point set data by another point set.(copy data)
|
|
Fill the point set by a single element.
|
|
Get bounding box of the point set.
|
|
Get bounding box of the point set.
|
|
Get centroid of the point set.
|
|
Get k nearest points to the query point.
Reimplemented in mitkKdTreePointSet. |
|
Get k nearest point to the query point.
Reimplemented in mitkKdTreePointSet. |
|
Get a nearest point to the query point.
Reimplemented in mitkKdTreePointSet. |
|
Get nearest point to a set of query points.
Reimplemented in mitkKdTreePointSet. |
|
Get number of points in the point set.
|
|
Get a point from the point set.
|
|
Get a point from the point set.
|
|
Get points data to a mesh object.
|
|
Get all the points in the point set.
|
|
Get the pointer of point data.
|
|
Get the point set's dimension.
|
|
Get the mask of point set.
|
|
Get using mask flag.
|
|
Get points in a bounding box.
Reimplemented in mitkKdTreePointSet. |
|
Get points in a specified dimension.
|
|
Get points in a given circle/sphere.
Reimplemented in mitkKdTreePointSet. |
|
Get points using a sequence mask .
|
|
Get a point's weight vector.
|
|
Get all the weights.
|
|
Get weights data's pointer.
|
|
Get weights set's dimension.
|
|
Get weights using a sequence mask .
|
|
Initialize the point set.(calculate centroid, bounding box, build tree) Reimplemented in mitkKdTreePointSet. |
|
Check if the point set is initialized.
|
|
Check if the point set is empty.
|
|
Check if the weight set is empty.
|
|
Merge another point set to the point set.
|
|
Read points data form a txt file.
|
|
Remove duplicate points in the point set. |
|
Reserve a memory space for the point set. (resize the point set) If s is smaller than numberOfPoints, do noting.
|
|
Set number of points in the point set.
|
|
mitkPointSet represents points in physical space. This function just convert from one to another. |
|
Set a point in the point set.
|
|
Set data of the point set by a mesh object.
|
|
Set data of the point set
|
|
Set data of the point set
|
|
Set point set's dimension.
|
|
Set the mask of point set.
|
|
Set using mask flag.
|
|
Set data of the point set in a specified dimension by filling an element.
|
|
Set data of the point set in a specified dimension.
|
|
Set a point's weight vector
|
|
Set weights data by an array
|
|
Set weights data by a vector
|
|
Initialize the point set data by another point set.(copy pointer, don't copy data)
|
|
Write the points data to a txt file.
|