Man Page for vtkFloatVectors
Table of Contents

NAME

vtkFloatVectors - floating point representation of 3D vectors

SYNOPSIS


#include "/opt/vtk-c++/common/vtkFloatVectors.h"

class VTK_EXPORT vtkFloatVectors : public vtkVectors

vtkFloatVectors();
vtkFloatVectors(const vtkFloatVectors& fv);
vtkFloatVectors(const int sz, const int ext=1000);
~vtkFloatVectors();
int Allocate(const int sz, const int ext=1000) {return this->V->Allocate(3*sz,3*ext);};
void Initialize() {this->V->Initialize();};
static vtkFloatVectors *New() {return new vtkFloatVectors;};
const char *GetClassName() {return "vtkFloatVectors";};
vtkVectors *MakeObject(int sze, int ext=1000);
char *GetDataType() {return "float";};
int GetNumberOfVectors() {return (V->GetMaxId()+1)/3;};
void Squeeze() {this->V->Squeeze();};
float *GetVector(int i) {return this->V->GetPointer(3*i);};
void GetVector(int i,float v[3]) {this->vtkVectors::GetVector(i,v);};
void SetNumberOfVectors(int number);
void SetVector(int i, float v[3]);
void InsertVector(int i, float v[3]);
int InsertNextVector(float v[3]);
float *GetPointer(const int id);
float *WritePointer(const int id, const int number);
vtkFloatVectors &operator=(const vtkFloatVectors& fv);
void operator+=(const vtkFloatVectors& fv){*(this->V) += *(fv.V);};
void Reset() {this->V->Reset();};

vtkFloatArray *GetV();

DESCRIPTION

vtkFloatVectors is a concrete implementation of vtkVectors. Vectors 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 vectors to write.

vtkFloatVectors& operator=(const vtkFloatVectors& fv)

Deep copy of vectors.


Table of Contents