Go to the documentation of this file.
14 #ifndef vtkOpenGLVertexBufferObject_h
15 #define vtkOpenGLVertexBufferObject_h
17 #include "vtkRenderingOpenGL2Module.h"
51 unsigned char *colors,
int colorComponents);
56 unsigned char *colors,
int colorComponents);
112 vtkGetMacro(CoordShiftAndScaleEnabled,
bool);
114 vtkGetVector3Macro(CoordShift,
double);
115 vtkGetVector3Macro(CoordScale,
double);
137 double CoordShift[3];
138 double CoordScale[3];
represent and manipulate 3D points
std::vector< float > PackedVBO
vtkOpenGLVertexBufferObject()
virtual void SetCoordShift(const double s[3])
abstract superclass for arrays of numeric data
bool CoordShiftAndScaleEnabled
ShiftScaleMethod CoordShiftAndScaleMethod
~vtkOpenGLVertexBufferObject()
virtual void SetCoordScale(double sx, double sy, double sz)
a simple class to control print indentation
void AppendVBO(vtkPoints *points, unsigned int numPoints, vtkDataArray *normals, vtkDataArray *tcoords, unsigned char *colors, int colorComponents)
virtual void SetCoordScale(const double s[3])
static vtkOpenGLVertexBufferObject * New()
ShiftScaleMethod
Methods for VBO coordinate shift+scale-computation.
virtual void SetCoordShift(double x, double y, double z)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void CreateVBO(vtkPoints *points, unsigned int numPoints, vtkDataArray *normals, vtkDataArray *tcoords, unsigned char *colors, int colorComponents)
@ AUTO_SHIFT_SCALE
The default, automatic computation.
@ DISABLE_SHIFT_SCALE
Do not shift/scale point coordinates. Ever!
OpenGL vertex buffer object.
virtual void SetCoordShiftAndScaleMethod(ShiftScaleMethod meth)