NAME
vtkFloatPoints - floating point representation of 3D points
SYNOPSIS
#include "/opt/vtk-c++/common/vtkFloatPoints.h"
class VTK_EXPORT vtkFloatPoints : public vtkPoints
vtkFloatPoints();
vtkFloatPoints(const vtkFloatPoints& fp);
vtkFloatPoints(const int sz, const int ext=1000);
~vtkFloatPoints();
int Allocate(const int sz, const int ext=1000) {return this->P->Allocate(3*sz,3*ext);};
void Initialize() {this->P->Initialize();};
static vtkFloatPoints *New() {return new vtkFloatPoints;};
const char *GetClassName() {return "vtkFloatPoints";};
vtkPoints *MakeObject(int sze, int ext=1000);
char *GetDataType() {return "float";};
int GetNumberOfPoints() {return (P->GetMaxId()+1)/3;};
void Squeeze() {this->P->Squeeze();};
float *GetPoint(int id) {return this->P->GetPointer(3*id);};
void GetPoint(int id, float x[3]);
void SetNumberOfPoints(int number);
void SetPoint(int id, float x[3]);
void InsertPoint(int id, float x[3]);
int InsertNextPoint(float x[3]);
void GetPoints(vtkIdList& ptId, vtkFloatPoints& fp);
float *GetPointer(const int id);
float *WritePointer(const int id, const int number);
vtkFloatPoints &operator=(const vtkFloatPoints& fp);
void operator+=(const vtkFloatPoints& fp) {*(this->P) += *(fp.P);};
void Reset() {this->P->Reset();};
DESCRIPTION
vtkFloatPoints is a concrete implementation of vtkPoints. Points are represented using float values.
SUMMARY
float *GetPointer(const int id)
Get pointer to array of data starting at data position "id".
float *WritePointer(const int id, const int number)
Get pointer to data array. Useful for direct writes of data. MaxId is bumped by number (and memory allocated if necessary). Id is the location you wish to write into; number is the number of scalars to write.
vtkFloatPoints& operator=(const vtkFloatPoints& fp)
Deep copy of points.