Man Page for vtkFloatTensors
Table of Contents

NAME

vtkFloatTensors - floating point representation of tensor data

SYNOPSIS


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

class VTK_EXPORT vtkFloatTensors : public vtkTensors

vtkFloatTensors();
vtkFloatTensors(const vtkFloatTensors& ft);
vtkFloatTensors(int sz, int d=3, int ext=1000);
~vtkFloatTensors();
int Allocate(const int sz, const int dim=3, const int ext=1000);
void Initialize() {this->T->Initialize();};
static vtkFloatTensors *New() {return new vtkFloatTensors;};
const char *GetClassName() {return "vtkFloatTensors";};
vtkTensors *MakeObject(int sze, int d=3, int ext=1000);
char *GetDataType() {return "float";};
int GetNumberOfTensors();
void Squeeze() {this->T->Squeeze();};
vtkTensor *GetTensor(int i);
void GetTensor(int i,vtkTensor &t) {this->vtkTensors::GetTensor(i,t);};
void SetNumberOfTensors(int number);
void SetTensor(int i, vtkTensor *t);
void InsertTensor(int i, vtkTensor *t);
int InsertNextTensor(vtkTensor *t);
float *GetPointer(const int id);
float *WritePointer(const int id, const int number);
vtkFloatTensors &operator=(const vtkFloatTensors& ft);
void operator+=(const vtkFloatTensors& ft) {*(this->T) += *(ft.T);};
void Reset() {this->T->Reset();};

DESCRIPTION

vtkFloatTensors is a concrete implementation of vtkTensors. Tensor values 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 tensors to write. Make sure the dimension of the tensor is set prior to issuing this call.

vtkFloatTensors& operator=(const vtkFloatTensors& ft)

Deep copy of tensors.


Table of Contents