NAME
vtkIntPoints - integer representation of 3D points
SYNOPSIS
#include "/opt/vtk-c++/common/vtkIntPoints.h"
class VTK_EXPORT vtkIntPoints : public vtkPoints
vtkIntPoints();
~vtkIntPoints();
vtkIntPoints(const vtkIntPoints& fp);
vtkIntPoints(const int sz, const int ext=1000);
int Allocate(const int sz, const int ext=1000) {return this->P->Allocate(3*sz,3*ext);};
void Initialize() {this->P->Initialize();};
static vtkIntPoints *New() {return new vtkIntPoints;};
const char *GetClassName() {return "vtkIntPoints";};
vtkPoints *MakeObject(int sze, int ext=1000);
char *GetDataType() {return "int";};
int GetNumberOfPoints() {return (this->P->GetMaxId()+1)/3;};
void Squeeze() {this->P->Squeeze();};
float *GetPoint(int i);
void GetPoint(int id, float x[3]);
void SetNumberOfPoints(int number);
void SetPoint(int id, int x[3]);
void SetPoint(int id, float x[3]);
void InsertPoint(int i, int x[3]);
void InsertPoint(int i, float x[3]);
int InsertNextPoint(int x[3]);
int InsertNextPoint(float x[3]);
void GetPoints(vtkIdList& ptId, vtkFloatPoints& fp);
int *GetPointer(const int id);
int *WritePointer(const int id, const int number);
vtkIntPoints &operator=(const vtkIntPoints& fp);
void operator+=(const vtkIntPoints& fp) {*(this->P) += *(fp.P);};
void Reset() {this->P->Reset();};
DESCRIPTION
vtkIntPoints is a concrete implementation of vtkPoints. Points are represented using integer values.
SUMMARY
int *GetPointer(const int id)
Get pointer to array of data starting at data position "id".
int *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 points to write.
vtkIntPoints& operator=(const vtkIntPoints& fp)
Deep copy of points.