VTK  9.1.0
vtkWebGLWidget.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkWebGLWidget.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
20#ifndef vtkWebGLWidget_h
21#define vtkWebGLWidget_h
22
23#include "vtkWebGLExporterModule.h" // needed for export macro
24#include "vtkWebGLObject.h"
25
26#include <vector> // Needed to store colors
27
28class vtkActor2D;
29
30class VTKWEBGLEXPORTER_EXPORT vtkWebGLWidget : public vtkWebGLObject
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
37 void GenerateBinaryData() override;
38 unsigned char* GetBinaryData(int part) override;
39 int GetBinarySize(int part) override;
40 int GetNumberOfParts() override;
41
43
44protected:
46 ~vtkWebGLWidget() override;
47
48 unsigned char* binaryData;
51 char* title;
54 float position[2];
55 float size[2];
57 std::vector<double*> colors; // x, r, g, b
58
59private:
60 vtkWebGLWidget(const vtkWebGLWidget&) = delete;
61 void operator=(const vtkWebGLWidget&) = delete;
62};
63
64#endif
a actor that draws 2D data
Definition: vtkActor2D.h:149
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkWebGLObject represent and manipulate an WebGL object and its data.
Widget representation for WebGL.
int GetBinarySize(int part) override
static vtkWebGLWidget * New()
std::vector< double * > colors
unsigned char * GetBinaryData(int part) override
int GetNumberOfParts() override
void GetDataFromColorMap(vtkActor2D *actor)
~vtkWebGLWidget() override
unsigned char * binaryData
void GenerateBinaryData() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.