14 #ifndef vtkOpenGLVertexBufferObject_h
15 #define vtkOpenGLVertexBufferObject_h
18 #include "vtkRenderingOpenGL2Module.h"
87 FOCAL_POINT_SHIFT_SCALE
121 virtual bool GetCoordShiftAndScaleEnabled();
122 virtual ShiftScaleMethod GetCoordShiftAndScaleMethod();
123 virtual void SetCoordShiftAndScaleMethod(ShiftScaleMethod meth);
124 virtual void SetShift(
const std::vector<double>& shift);
125 virtual void SetShift(
double x,
double y,
double z);
126 virtual void SetScale(
const std::vector<double>&
scale);
127 virtual void SetScale(
double x,
double y,
double z);
128 virtual const std::vector<double>& GetShift();
129 virtual const std::vector<double>& GetScale();
142 static void SetGlobalCoordShiftAndScaleEnabled(
vtkTypeBool val);
145 static vtkTypeBool GetGlobalCoordShiftAndScaleEnabled();
149 void SetDataType(
int v);
150 vtkGetMacro(DataType,
int);
153 vtkGetMacro(DataTypeSize,
unsigned int);
156 vtkGetMacro(NumberOfTuples,
unsigned int);
159 vtkGetMacro(NumberOfComponents,
unsigned int);
162 vtkSetMacro(Stride,
unsigned int);
163 vtkGetMacro(Stride,
unsigned int);
177 virtual void SetProp3D(
vtkProp3D* prop3d);
208 static vtkTypeBool GlobalCoordShiftAndScaleEnabled;
Shift scale based on camera settings.
unsigned int NumberOfTuples
OpenGL vertex buffer object.
Always shift scale using auto computed values.
record modification and/or execution time
The default, automatic computation.
vtkOpenGLVertexBufferObjectCache * Cache
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
manage vertex buffer objects shared within a context
represents an 3D object for placement in a rendered scene
ShiftScaleMethod
Methods for VBO coordinate shift+scale-computation.
static void GlobalCoordShiftAndScaleEnabledOff()
Do not shift/scale point coordinates. Ever!
static void GlobalCoordShiftAndScaleEnabledOn()
ShiftScaleMethod CoordShiftAndScaleMethod
a simple class to control print indentation
a virtual camera for 3D rendering
abstract superclass for arrays of numeric data
static vtkOpenGLBufferObject * New()
bool CoordShiftAndScaleEnabled
unsigned int DataTypeSize
std::vector< float > & GetPackedVBO()
std::vector< float > PackedVBO
unsigned int NumberOfComponents
vtkWeakPointer< vtkCamera > Camera
std::vector< double > Scale
std::vector< double > Shift
Manual shift/scale (for use with AppendVBO)
vtkWeakPointer< vtkProp3D > Prop3D