VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Web
WebGLExporter
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
28
class
vtkActor2D
;
29
30
class
VTKWEBGLEXPORTER_EXPORT
vtkWebGLWidget
:
public
vtkWebGLObject
31
{
32
public
:
33
static
vtkWebGLWidget
*
New
();
34
vtkTypeMacro(
vtkWebGLWidget
,
vtkWebGLObject
);
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
42
void
GetDataFromColorMap
(
vtkActor2D
* actor);
43
44
protected
:
45
vtkWebGLWidget
();
46
~vtkWebGLWidget
()
override
;
47
48
unsigned
char
*
binaryData
;
49
int
binarySize
;
50
int
orientation
;
51
char
*
title
;
52
char
*
textFormat
;
53
int
textPosition
;
54
float
position[2];
55
float
size[2];
56
int
numberOfLabels
;
57
std::vector<double*>
colors
;
// x, r, g, b
58
59
private
:
60
vtkWebGLWidget
(
const
vtkWebGLWidget
&) =
delete
;
61
void
operator=(
const
vtkWebGLWidget
&) =
delete
;
62
};
63
64
#endif
vtkActor2D
a actor that draws 2D data
Definition:
vtkActor2D.h:149
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkWebGLObject
vtkWebGLObject represent and manipulate an WebGL object and its data.
Definition:
vtkWebGLObject.h:39
vtkWebGLWidget
Widget representation for WebGL.
Definition:
vtkWebGLWidget.h:31
vtkWebGLWidget::GetBinarySize
int GetBinarySize(int part) override
vtkWebGLWidget::New
static vtkWebGLWidget * New()
vtkWebGLWidget::vtkWebGLWidget
vtkWebGLWidget()
vtkWebGLWidget::colors
std::vector< double * > colors
Definition:
vtkWebGLWidget.h:57
vtkWebGLWidget::orientation
int orientation
Definition:
vtkWebGLWidget.h:50
vtkWebGLWidget::GetBinaryData
unsigned char * GetBinaryData(int part) override
vtkWebGLWidget::numberOfLabels
int numberOfLabels
Definition:
vtkWebGLWidget.h:56
vtkWebGLWidget::textFormat
char * textFormat
Definition:
vtkWebGLWidget.h:52
vtkWebGLWidget::GetNumberOfParts
int GetNumberOfParts() override
vtkWebGLWidget::GetDataFromColorMap
void GetDataFromColorMap(vtkActor2D *actor)
vtkWebGLWidget::~vtkWebGLWidget
~vtkWebGLWidget() override
vtkWebGLWidget::binaryData
unsigned char * binaryData
Definition:
vtkWebGLWidget.h:48
vtkWebGLWidget::GenerateBinaryData
void GenerateBinaryData() override
vtkWebGLWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkWebGLWidget::textPosition
int textPosition
Definition:
vtkWebGLWidget.h:53
vtkWebGLWidget::binarySize
int binarySize
Definition:
vtkWebGLWidget.h:49
vtkWebGLWidget::title
char * title
Definition:
vtkWebGLWidget.h:51
vtkWebGLObject.h
Generated on Fri Apr 21 2023 10:29:06 for VTK by
1.9.6