21 #ifndef vtkWebGLExporter_h 22 #define vtkWebGLExporter_h 37 #include "vtkWebGLExporterModule.h" 52 void PrintSelf(ostream& os,
vtkIndent indent) override;
61 const
char* GenerateMetadata();
64 int GetNumberOfObjects();
66 void SetCenterOfRotation(
float a1,
float a2,
float a3);
67 void SetMaxAllowedSize(
int mesh,
int lines);
68 void SetMaxAllowedSize(
int size);
71 static
void ComputeMD5(const
unsigned char*
content,
int size, std::
string &hash);
74 ~vtkWebGLExporter() override;
76 void parseRenderer(
vtkRenderer* render, const
char* viewId,
bool onlyWidget,
void* mapTime);
78 void parseActor(
vtkActor* actor,
vtkMTimeType actorTime,
size_t rendererId,
int layer,
bool isWidget);
80 const
char* GenerateExportMetadata();
86 double CameraLookAt[10];
87 bool GradientBackground;
88 double Background1[3];
89 double Background2[3];
92 float CenterOfRotation[3];
93 int meshObjMaxSize, lineObjMaxSize;
94 std::
string renderersMetaData;
98 vtkWebGLExporter(const vtkWebGLExporter&) = delete;
99 void operator=(const vtkWebGLExporter&) = delete;
102 vtkInternal* Internal;
represents an object (geometry & properties) in a rendered scene
abstract base class for most VTK objects
represent and manipulate point attribute data
PolyData representation for WebGL.
vtkTypeUInt32 vtkMTimeType
a actor that draws 2D data
represent and manipulate cell attribute data
convert input polygons and strips to triangles
vtkWebGLObject represent and manipulate an WebGL object and its data.
abstract specification for renderers
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkWebGLExporter export the data of the scene to be used in the WebGL.
an ordered list of renderers
a simple class to control print indentation
abstract class specifies interface to map data to graphics primitives
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...