13#ifndef vtkJSONSceneExporter_h
14#define vtkJSONSceneExporter_h
18#include "vtkIOExportModule.h"
26VTK_ABI_NAMESPACE_BEGIN
61 vtkSetMacro(WriteTextures,
bool);
62 vtkGetMacro(WriteTextures,
bool);
75 vtkSetMacro(WriteTextureLODs,
bool);
76 vtkGetMacro(WriteTextureLODs,
bool);
85 vtkSetMacro(TextureLODsBaseSize,
size_t);
86 vtkGetMacro(TextureLODsBaseSize,
size_t);
94 vtkSetStringMacro(TextureLODsBaseUrl);
95 vtkGetStringMacro(TextureLODsBaseUrl);
113 vtkSetMacro(WritePolyLODs,
bool);
114 vtkGetMacro(WritePolyLODs,
bool);
125 vtkSetMacro(PolyLODsBaseSize,
size_t);
126 vtkGetMacro(PolyLODsBaseSize,
size_t);
134 vtkSetStringMacro(PolyLODsBaseUrl);
135 vtkGetStringMacro(PolyLODsBaseUrl);
217 void WriteNamedActors(std::map<std::string, vtkActor*>& actorMap, std::ostream& sceneComponents);
231 void WriteDataObject(
237 std::map<std::string, vtkActor*> NamedActorsMap;
void WriteDataSet(vtkUnstructuredGrid *grid, const std::string &file)
represents an object (geometry & properties) in a rendered scene
Defines a transfer function for mapping a property to an RGB color value.
Store on/off settings for data arrays, etc.
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...
void WriteVolumeCollection(vtkVolumeCollection *volumeCollection, std::ostream &sceneComponents)
std::string CurrentDataSetPath() const
std::string WriteTexture(vtkTexture *texture)
vtkSmartPointer< vtkPolyData > WritePolyLODSeries(vtkPolyData *polys, std::string &config)
std::string ExtractActorRenderingSetup(vtkActor *actor)
std::string GetTemporaryPath() const
Path to temporary folder where files are written to before being renamed to this->FileName.
char * TextureLODsBaseUrl
std::string ExtractVolumeRenderingSetup(vtkVolume *volume)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetFilePathMacro(FileName)
Specify file name of vtk data file to write.
std::string ExtractPiecewiseFunctionSetup(vtkPiecewiseFunction *pwf)
std::string ExtractColorTransferFunctionSetup(vtkColorTransferFunction *volume)
~vtkJSONSceneExporter() override
void WritePropCollection(vtkPropCollection *collection, std::ostream &sceneComponents)
void SetNamedActorsMap(std::map< std::string, vtkActor * > &map)
Instead of using a render window that contains a scene to be written, use a map of named actors whose...
void WriteLookupTable(const char *name, vtkScalarsToColors *lookupTable)
void WriteData() override
std::map< std::string, vtkActor * > GetNamedActorsMap()
Instead of using a render window that contains a scene to be written, use a map of named actors whose...
std::vector< std::string > FilesToZip
static vtkJSONSceneExporter * New()
vtkGetFilePathMacro(FileName)
Specify file name of vtk data file to write.
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
Allocate and hold a VTK object.
Defines a 1D piecewise function.
concrete dataset represents vertices, lines, polygons, and triangle strips
Superclass for mapping scalar values to colors.
Hold a reference to a vtkObjectBase instance.
handles properties associated with a texture map
an ordered list of volumes
represents a volume (data & properties) in a rendered scene