NAME
vtkFloatNormals - floating point representation of 3D normals
SYNOPSIS
#include "/opt/vtk-c++/common/vtkFloatNormals.h"
class VTK_EXPORT vtkFloatNormals : public vtkNormals
vtkFloatNormals();
vtkFloatNormals(const vtkFloatNormals& fn);
vtkFloatNormals(const int sz, const int ext=1000);
~vtkFloatNormals();
int Allocate(const int sz, const int ext=1000) {return this->N->Allocate(3*sz,3*ext);};
void Initialize() {this->N->Initialize();};
static vtkFloatNormals *New() {return new vtkFloatNormals;};
const char *GetClassName() {return "vtkFloatNormals";};
vtkNormals *MakeObject(int sze, int ext=1000);
char *GetDataType() {return "float";};
int GetNumberOfNormals() {return (N->GetMaxId()+1)/3;};
void Squeeze() {this->N->Squeeze();};
float *GetNormal(int i) {return this->N->GetPointer(3*i);};
void GetNormal(int i,float n[3]) {this->vtkNormals::GetNormal(i,n);};
void SetNumberOfNormals(int number);
void SetNormal(int id, float n[3]);
void InsertNormal(int i, float n[3]);
int InsertNextNormal(float n[3]);
float *GetPointer(const int id);
float *WritePointer(const int id, const int number);
vtkFloatNormals &operator=(const vtkFloatNormals& fn);
void operator+=(const vtkFloatNormals& fn);
void Reset() {this->N->Reset();};
DESCRIPTION
vtkFloatNormals is a concrete implementation of vtkNormals. Normals 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 normals to write.
vtkFloatNormals& operator=(const vtkFloatNormals& fn)
Deep copy of normals.