31 #include "vtkObject.h"
32 #include "vtkWeakPointer.h"
41 class vtkUnsignedCharArray;
42 class vtkOpenGLExtensionManager;
43 class vtkRenderWindow;
45 PCL_DEPRECATED(1, 13,
"The OpenGL backend of VTK is deprecated. Please switch to the OpenGL2 backend.")
52 void PrintSelf(ostream& os, vtkIndent indent)
override;
60 void SetContext(vtkRenderWindow* context);
61 vtkRenderWindow* GetContext();
96 vtkGetMacro(Usage,
int);
97 vtkSetMacro(Usage,
int);
99 int GetAttributeIndex();
100 void SetUserDefinedAttribute(
int index,
bool normalized=
false,
int stride=0);
101 void ResetUserDefinedAttribute();
103 void SetAttributeNormalized(
bool normalized);
107 bool Upload(vtkPoints *points);
111 bool Upload(vtkCellArray *verts);
115 bool Upload(
unsigned int *indices,
unsigned int count);
119 bool Upload(vtkUnsignedCharArray *colors);
123 bool Upload(vtkDataArray *array);
124 bool Upload(vtkDataArray *array,
int attributeType,
int arrayType);
125 bool UploadNormals(vtkDataArray *normals);
126 bool UploadColors(vtkDataArray *colors);
132 vtkGetMacro(Size,
unsigned int);
137 vtkGetMacro(Count,
unsigned int);
141 vtkGetMacro(Handle,
unsigned int);
159 void ReleaseMemory();
163 static bool IsSupported(vtkRenderWindow* renWin);
174 bool LoadRequiredExtensions(vtkOpenGLExtensionManager* mgr);
182 void DestroyBuffer();
186 bool Upload(GLvoid* data);
190 vtkGetMacro(ArrayType,
unsigned int);
213 int GetDataTypeSize(
int type);