13 #ifndef vtkJSONSceneExporter_h
14 #define vtkJSONSceneExporter_h
18 #include "vtkIOExportModule.h"
26 VTK_ABI_NAMESPACE_BEGIN
51 vtkSetFilePathMacro(FileName);
52 vtkGetFilePathMacro(FileName);
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);
159 void SetNamedActorsMap(std::map<std::string, vtkActor*>& map);
160 std::map<std::string, vtkActor*> GetNamedActorsMap();
167 void WritePropCollection(
vtkPropCollection* collection, std::ostream& sceneComponents);
168 void WriteVolumeCollection(
vtkVolumeCollection* volumeCollection, std::ostream& sceneComponents);
217 void WriteNamedActors(std::map<std::string, vtkActor*>& actorMap, std::ostream& sceneComponents);
231 void WriteDataObject(
237 std::map<std::string, vtkActor*> NamedActorsMap;
240 VTK_ABI_NAMESPACE_END
represents a volume (data & properties) in a rendered scene
abstract class to write a scene to a file
represents an object (geometry & properties) in a rendered scene
virtual void WriteData()=0
std::map< vtkTexture *, std::string > TextureStrings
Defines a 1D piecewise function.
Export the content of a vtkRenderWindow into a directory with a JSON meta file describing the scene a...
abstract class to specify dataset behavior
char * TextureLODsBaseUrl
concrete dataset represents vertices, lines, polygons, and triangle strips
Superclass for mapping scalar values to colors.
a simple class to control print indentation
Store on/off settings for data arrays, etc.
size_t TextureLODsBaseSize
an ordered list of volumes
std::vector< std::string > FilesToZip
handles properties associated with a texture map
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
std::map< vtkTexture *, std::string > TextureLODStrings
void WriteDataSet(vtkUnstructuredGrid *grid, const std::string &file)
Defines a transfer function for mapping a property to an RGB color value.
std::map< std::string, std::string > LookupTables
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
general representation of visualization data