NAME
vtkPoints - abstract interface to 3D points
SYNOPSIS
#include "/opt/vtk-c++/common/vtkPoints.h"
class VTK_EXPORT vtkPoints : public vtkReferenceCount
vtkPoints();
const char *GetClassName() {return "vtkPoints";};
void PrintSelf(ostream& os, vtkIndent indent);
virtual vtkPoints *MakeObject(int sze, int ext=1000) = 0;
virtual char *GetDataType() = 0;
virtual int GetNumberOfPoints() = 0;
virtual float *GetPoint(int id) = 0;
virtual void GetPoint(int id, float x[3]);
virtual void SetNumberOfPoints(int number) = 0;
virtual void SetPoint(int id, float x[3]) = 0;
virtual void InsertPoint(int id, float x[3]) = 0;
void InsertPoint(int id, float x, float y, float z);
virtual int InsertNextPoint(float x[3]) = 0;
int InsertNextPoint(float x, float y, float z);
SEE ALSO
vtkFloatPoints vtkIntPoints
SUMMARY
virtual vtkPoints *MakeObject(int sze, int ext=1000) = 0; Create a copy of this object.
virtual char *GetDataType() = 0;
Return data type. One of "bit", "char", "short", "int", "float", or "double".
virtual int GetNumberOfPoints() = 0;
Return number of points in list.
virtual float *GetPoint(int id) = 0;
Return a pointer to a float array x[3] for a specified point id.
virtual void GetPoint(int id, float x[3]);
Copy point coordinates into user provided array x[3] for specified point id.
virtual void SetNumberOfPoints(int number) = 0;
Specify the number of points for this object to hold. Does an allocation as well as setting the MaxId ivar. Used in conjunction with SetPoint() method for fast insertion.
virtual void SetPoint(int id, float x[3]) = 0;
Insert point into object. No range checking performed (fast!). Make sure you use SetNumberOfPoints() to allocate memory prior to using SetPoint().
virtual void InsertPoint(int id, float x[3]) = 0;
Insert point into object. Range checking performed and memory allocated as necessary.
virtual int InsertNextPoint(float x[3]) = 0;
Insert point into next available slot. Returns point id of slot.
virtual void Squeeze() = 0; // reclaim memory
Reclaim any extra memory.
virtual void GetPoints(vtkIdList& ptId, vtkFloatPoints& fp); Get the point coordinates for the point ids specified.
void InsertPoint(int id, float x, float y, float z) Insert point into position indicated.
int InsertNextPoint(float x, float y, float z)
Insert point into position indicated.
void GetPoints(vtkIdList& ptId, vtkFloatPoints& fp)
Given a list of pt ids, return an array of point coordinates.
void ComputeBounds()
Determine (xmin,xmax, ymin,ymax, zmin,zmax) bounds of points.
float *GetBounds()
Return the bounds of the points.
void GetBounds(float bounds[6])
Return the bounds of the points.