NAME
vtkFloatScalars - floating point representation of scalar data
SYNOPSIS
#include "/opt/vtk-c++/common/vtkFloatScalars.h"
class VTK_EXPORT vtkFloatScalars : public vtkScalars
vtkFloatScalars();
vtkFloatScalars(const vtkFloatScalars& fs);
vtkFloatScalars(const int sz, const int ext=1000);
~vtkFloatScalars();
int Allocate(const int sz, const int ext=1000) {return this->S->Allocate(sz,ext);};
void Initialize() {this->S->Initialize();};
static vtkFloatScalars *New() {return new vtkFloatScalars;};
const char *GetClassName() {return "vtkFloatScalars";};
vtkScalars *MakeObject(int sze, int ext=1000);
char *GetDataType() {return "float";};
void GetDataTypeRange (float* range) { range[0] = VTK_FLOAT_MIN;
range[1] = VTK_FLOAT_MAX; return;}
float GetDataTypeMin() { return VTK_FLOAT_MIN; }
float GetDataTypeMax() { return VTK_FLOAT_MAX; }
int GetNumberOfScalars() {return (this->S->GetMaxId()+1);};
void Squeeze() {this->S->Squeeze();};
float GetScalar(int i) {return this->S->GetValue(i);};
void SetNumberOfScalars(int number);
void SetScalar(int i, float s) {this->S->SetValue(i,s);};
void InsertScalar(int i, float s) {S->InsertValue(i,s);};
int InsertNextScalar(float s) {return S->InsertNextValue(s);};
void GetScalars(vtkIdList& ptIds, vtkFloatScalars& fs);
void GetScalars(int p1, int p2, vtkFloatScalars& fs);
float *GetPointer(const int id);
void *GetVoidPtr(const int id);
float *WritePointer(const int id, const int number);
vtkFloatScalars &operator=(const vtkFloatScalars& fs);
void operator+=(const vtkFloatScalars& fs) {*(this->S) += *(fs.S);};
void Reset() {this->S->Reset();};
vtkFloatArray *GetS();
DESCRIPTION
vtkFloatScalars is a concrete implementation of vtkScalars. Scalars are represented using float values.
SUMMARY
float *GetPointer(const int id)
Get pointer to array of data starting at data position "id".
void *GetVoidPtr(const int id)
Get pointer to array of data starting at data position "id" and return as a void pointer.
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.
vtkFloatScalars& operator=(const vtkFloatScalars& fs)
Deep copy of scalars.