VTK
dox
Web
WebGLExporter
vtkWebGLDataSet.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkWebGLDataSet.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
=========================================================================*/
21
#ifndef vtkWebGLDataSet_h
22
#define vtkWebGLDataSet_h
23
24
#include "
vtkObject.h
"
25
#include "vtkWebGLExporterModule.h"
// needed for export macro
26
27
#include "
vtkWebGLObject.h
"
// Needed for the enum
28
#include <string>
// needed for md5
29
30
class
VTKWEBGLEXPORTER_EXPORT
vtkWebGLDataSet
:
public
vtkObject
31
{
32
public
:
33
static
vtkWebGLDataSet
*
New
();
34
vtkTypeMacro(
vtkWebGLDataSet
,
vtkObject
)
35
void PrintSelf(ostream &os,
vtkIndent
indent) override;
36
37
void
SetVertices(
float
* v,
int
size
);
38
void
SetIndexes(
short
* i,
int
size
);
39
void
SetNormals(
float
* n);
40
void
SetColors(
unsigned
char
* c);
41
void
SetPoints(
float
* p,
int
size
);
42
void
SetTCoords(
float
*t);
43
void
SetMatrix(
float
* m);
44
void
SetType(
WebGLObjectTypes
t);
45
46
unsigned
char
* GetBinaryData();
47
int
GetBinarySize();
48
void
GenerateBinaryData();
49
bool
HasChanged();
50
51
std::
string
GetMD5();
52
53
protected:
54
vtkWebGLDataSet
();
55
~
vtkWebGLDataSet
() override;
56
57
int
NumberOfVertices;
58
int
NumberOfPoints;
59
int
NumberOfIndexes;
60
WebGLObjectTypes
webGLType;
61
62
float
* Matrix;
63
float
*
vertices
;
64
float
* normals;
65
short
* indexes;
66
float
*
points
;
67
float
* tcoords;
68
unsigned
char
* colors;
69
unsigned
char
* binary;
// Data in binary
70
int
binarySize;
// Size of the data in binary
71
bool
hasChanged;
72
std::
string
MD5;
73
74
private:
75
vtkWebGLDataSet
(const
vtkWebGLDataSet
&) = delete;
76
void
operator=(const
vtkWebGLDataSet
&) = delete;
77
};
78
79
#endif
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:60
vtkWebGLObject.h
vtkX3D::points
@ points
Definition:
vtkX3D.h:446
vertices
std::pair< boost::graph_traits< vtkGraph * >::vertex_iterator, boost::graph_traits< vtkGraph * >::vertex_iterator > vertices(vtkGraph *g)
Definition:
vtkBoostGraphAdapter.h:841
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkWebGLDataSet::New
static vtkWebGLDataSet * New()
vtkX3D::size
@ size
Definition:
vtkX3D.h:253
vtkObject.h
WebGLObjectTypes
WebGLObjectTypes
Definition:
vtkWebGLObject.h:32
vtkWebGLDataSet
vtkWebGLDataSet represent vertices, lines, polygons, and triangles.
Definition:
vtkWebGLDataSet.h:31
Generated by
1.8.20