VTK  9.3.1
vtkWebUtilities.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkWebUtilities_h
12 #define vtkWebUtilities_h
13 
14 #include "vtkObject.h"
15 #include "vtkWebCoreModule.h" // needed for exports
16 #include <string> // for std::string
17 
18 VTK_ABI_NAMESPACE_BEGIN
19 class vtkDataSet;
20 
21 class VTKWEBCORE_EXPORT vtkWebUtilities : public vtkObject
22 {
23 public:
24  static vtkWebUtilities* New();
25  vtkTypeMacro(vtkWebUtilities, vtkObject);
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
28  static std::string WriteAttributesToJavaScript(int field_type, vtkDataSet*);
29  static std::string WriteAttributeHeadersToJavaScript(int field_type, vtkDataSet*);
30 
32 
38  static void ProcessRMIs();
39  static void ProcessRMIs(int reportError, int dont_loop = 0);
41 
42 protected:
44  ~vtkWebUtilities() override;
45 
46 private:
47  vtkWebUtilities(const vtkWebUtilities&) = delete;
48  void operator=(const vtkWebUtilities&) = delete;
49 };
50 
51 VTK_ABI_NAMESPACE_END
52 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
a simple class to control print indentation
Definition: vtkIndent.h:28
collection of utility functions for ParaView Web.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...