25 #ifndef vtkJSONSceneExporter_h
26 #define vtkJSONSceneExporter_h
29 #include "vtkIOExportModule.h"
55 vtkSetStringMacro(FileName);
56 vtkGetStringMacro(FileName);
65 vtkSetMacro(WriteTextures,
bool);
66 vtkGetMacro(WriteTextures,
bool);
79 vtkSetMacro(WriteTextureLODs,
bool);
80 vtkGetMacro(WriteTextureLODs,
bool);
89 vtkSetMacro(TextureLODsBaseSize,
size_t);
90 vtkGetMacro(TextureLODsBaseSize,
size_t);
98 vtkSetStringMacro(TextureLODsBaseUrl);
99 vtkGetStringMacro(TextureLODsBaseUrl);
117 vtkSetMacro(WritePolyLODs,
bool);
118 vtkGetMacro(WritePolyLODs,
bool);
129 vtkSetMacro(PolyLODsBaseSize,
size_t);
130 vtkGetMacro(PolyLODsBaseSize,
size_t);
138 vtkSetStringMacro(PolyLODsBaseUrl);
139 vtkGetStringMacro(PolyLODsBaseUrl);
represents an object (geometry & properties) in a rendered scene
general representation of visualization data
abstract class to specify dataset behavior
abstract class to write a scene to a file
a simple class to control print indentation
Export the content of a vtkRenderWindow into a directory with a JSON meta file describing the scene a...
std::string CurrentDataSetPath() const
std::string WriteTexture(vtkTexture *texture)
std::string WriteDataSet(vtkDataSet *dataset, const char *addOnMeta)
vtkSmartPointer< vtkPolyData > WritePolyLODSeries(vtkPolyData *polys, std::string &config)
char * TextureLODsBaseUrl
void WriteDataObject(ostream &os, vtkDataObject *dataObject, vtkActor *actor)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkJSONSceneExporter() override
std::string ExtractRenderingSetup(vtkActor *actor)
void WriteLookupTable(const char *name, vtkScalarsToColors *lookupTable)
void WriteData() override
std::vector< std::string > FilesToZip
static vtkJSONSceneExporter * New()
std::string WriteTextureLODSeries(vtkTexture *texture)
std::map< std::string, std::string > LookupTables
std::map< vtkTexture *, std::string > TextureStrings
size_t TextureLODsBaseSize
std::map< vtkTexture *, std::string > TextureLODStrings
concrete dataset represents vertices, lines, polygons, and triangle strips
Superclass for mapping scalar values to colors.
handles properties associated with a texture map