14 #ifndef vtkOpenGLVertexBufferObject_h
15 #define vtkOpenGLVertexBufferObject_h
18 #include "vtkRenderingOpenGL2Module.h"
111 vtkGetMacro(CoordShiftAndScaleEnabled,
bool);
114 virtual void SetShift(
const std::vector<double>& shift);
122 vtkGetMacro(DataType,
int);
125 vtkGetMacro(DataTypeSize,
unsigned int);
128 vtkGetMacro(NumberOfTuples,
unsigned int);
131 vtkGetMacro(NumberOfComponents,
unsigned int);
134 vtkSetMacro(Stride,
unsigned int);
135 vtkGetMacro(Stride,
unsigned int);
abstract superclass for arrays of numeric data
a simple class to control print indentation
manage vertex buffer objects shared within a context
void SetCache(vtkOpenGLVertexBufferObjectCache *cache)
~vtkOpenGLVertexBufferObject() override
unsigned int NumberOfTuples
unsigned int NumberOfComponents
virtual void SetCoordShiftAndScaleMethod(ShiftScaleMethod meth)
void UploadDataArray(vtkDataArray *array)
ShiftScaleMethod
Methods for VBO coordinate shift+scale-computation.
@ DISABLE_SHIFT_SCALE
Do not shift/scale point coordinates. Ever!
@ ALWAYS_AUTO_SHIFT_SCALE
Always shift scale using auto computed values.
@ AUTO_SHIFT_SCALE
The default, automatic computation.
virtual const std::vector< double > & GetScale()
virtual void SetScale(const std::vector< double > &scale)
std::vector< float > & GetPackedVBO()
virtual const std::vector< double > & GetShift()
std::vector< float > PackedVBO
virtual void SetShift(const std::vector< double > &shift)
ShiftScaleMethod CoordShiftAndScaleMethod
static vtkOpenGLVertexBufferObject * New()
std::vector< double > Scale
bool CoordShiftAndScaleEnabled
void AppendDataArray(vtkDataArray *array)
std::vector< double > Shift
unsigned int DataTypeSize
vtkOpenGLVertexBufferObjectCache * Cache
vtkOpenGLVertexBufferObject()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
record modification and/or execution time
OpenGL vertex buffer object.