 |
VTK
9.0.1
|
Go to the documentation of this file.
39 #ifndef vtkVtkJSSceneGraphSerializer_h
40 #define vtkVtkJSSceneGraphSerializer_h
42 #include "vtkRenderingVtkJSModule.h"
45 #include <vtk_jsoncpp.h>
137 virtual Json::Value
ToJson(Json::Value&, Json::ArrayIndex,
vtkMapper*,
bool newLUTId =
false);
163 template <
typename CompositeMapper>
166 void extractRequiredFields(Json::Value& extractedFields,
vtkMapper* mapper,
vtkDataSet* dataSet);
virtual void Add(vtkViewNode *, vtkCompositePolyDataMapper *)
a virtual light for 3D rendering
virtual Json::Value ToJson(Json::Value &, Json::ArrayIndex, vtkGlyph3DMapper *)
virtual Json::Value ToJson(Json::Value &, vtkCamera *)
vtkDataArray * GetDataArray(vtkIdType) const
virtual void Add(vtkViewNode *, vtkCompositePolyDataMapper2 *)
Superclass for all sources, filters, and sinks in VTK.
std::string GetDataArrayId(vtkIdType) const
virtual void Add(vtkViewNode *, vtkRenderer *)
virtual Json::Value ToJson(vtkDataArray *)
Translate from a VTK renderable to a vtk-js renderable.
abstract base class for most VTK objects
a class that renders hierarchical polygonal data
virtual Json::Value ToJson(Json::Value &, vtkLight *)
abstract superclass for arrays of numeric data
mapper for composite dataset consisting of polygonal data.
~vtkVtkJSSceneGraphSerializer() override
virtual void Add(vtkViewNode *, vtkMapper *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual Json::Value ToJson(Json::Value &, vtkAlgorithm *, vtkPolyData *)
handles properties associated with a texture map
const Json::Value & GetRoot() const
Access the Json description of the constructed scene.
virtual Json::Value ToJson(Json::Value &, Json::ArrayIndex, vtkMapper *, bool newLUTId=false)
abstract class specifies interface to map data to graphics primitives
virtual Json::Value ToJson(Json::Value &, vtkAlgorithm *, vtkImageData *)
represents an object (geometry & properties) in a rendered scene
topologically and geometrically regular array of data
a simple class to control print indentation
a virtual camera for 3D rendering
static vtkVtkJSSceneGraphSerializer * New()
virtual void Add(vtkViewNode *, vtkRenderWindow *)
virtual Json::Value ToJson(Json::Value &, vtkLookupTable *)
a node within a VTK scene graph
Json::ArrayIndex UniqueId(void *ptr=nullptr)
Associate a unique id with a given object.
vtkDataObject * GetDataObject(vtkIdType) const
abstract class to specify dataset behavior
map scalar values into colors via a lookup table
virtual Json::Value ToJson(Json::Value &, vtkTexture *)
virtual Json::Value ToJson(Json::Value &, vtkAlgorithm *, vtkDataObject *)
virtual Json::Value ToJson(vtkRenderWindow *)
abstract specification for renderers
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void Add(vtkViewNode *, vtkActor *)
Add a scene graph node and its corresponding renderable to the scene.
represent surface properties of a geometric object
virtual Json::Value ToJson(Json::Value &, vtkTransform *)
vtkIdType GetNumberOfDataArrays() const
Access the data arrays referenced in the constructed scene.
create a window for renderers to draw into
virtual void Add(vtkViewNode *, vtkGlyph3DMapper *)
Converts elements of a VTK scene graph into vtk-js elements.
general representation of visualization data
virtual Json::Value ToJson(Json::Value &, vtkProperty *)
Json::ArrayIndex GetDataObjectId(vtkIdType) const
vtkVtkJSSceneGraphSerializer()
virtual Json::Value ToJson(Json::Value &, vtkRenderer *)
vtkIdType GetNumberOfDataObjects() const
Access the data objects referenced in the constructed scene.
void Reset()
Empty the contents of the scene and the reset the unique id generator.
virtual Json::Value ToJson(Json::Value &, vtkActor *, bool newPropertyId=false)