Man Page for vtkFloatTCoords
Table of Contents

NAME

vtkFloatTCoords - floating point representation of texture coordinates

SYNOPSIS


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

class VTK_EXPORT vtkFloatTCoords : public vtkTCoords

vtkFloatTCoords();
vtkFloatTCoords(const vtkFloatTCoords& ftc);
vtkFloatTCoords(int sz, int d=2, int ext=1000);
~vtkFloatTCoords();
int Allocate(const int sz, const int dim=2, const int ext=1000) {return this->TC->Allocate(dim*sz,dim*ext);};
void Initialize() {this->TC->Initialize();};
static vtkFloatTCoords *New() {return new vtkFloatTCoords;};
const char *GetClassName() {return "vtkFloatTCoords";};
vtkTCoords *MakeObject(int sze, int d=2, int ext=1000);
char *GetDataType() {return "float";};
int GetNumberOfTCoords() {return (this->TC->GetMaxId()+1)/this->Dimension;};
void Squeeze() {this->TC->Squeeze();};
float *GetTCoord(int i) {return this->TC->GetPointer(this->Dimension*i);};
void GetTCoord(int i,float tc[3]) {this->vtkTCoords::GetTCoord(i,tc);};
void SetNumberOfTCoords(int number);
void SetTCoord(int i, float *tc);
void InsertTCoord(int i, float *tc);
int InsertNextTCoord(float *tc);
float *GetPointer(const int id);
float *WritePointer(const int id, const int number);
vtkFloatTCoords &operator=(const vtkFloatTCoords& ftc);
void operator+=(const vtkFloatTCoords& ftc) {*(this->TC) += *(ftc.TC);};
void Reset() {this->TC->Reset();};

DESCRIPTION

vtkFloatTCoords is a concrete implementation of vtkTCoords. Texture coordinates 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 texture coordinates to write. Make sure the dimension of the texture coordinate is set prior to issuing this call.

vtkFloatTCoords& operator=(const vtkFloatTCoords& ftc)

Deep copy of texture coordinates.


Table of Contents