VTK  9.0.1
vtkWebUtilities.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWebUtilities.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef vtkWebUtilities_h
24 #define vtkWebUtilities_h
25 
26 #include "vtkObject.h"
27 #include "vtkWebCoreModule.h" // needed for exports
28 #include <string>
29 
30 class vtkDataSet;
31 
32 class VTKWEBCORE_EXPORT vtkWebUtilities : public vtkObject
33 {
34 public:
35  static vtkWebUtilities* New();
36  vtkTypeMacro(vtkWebUtilities, vtkObject);
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
39  static std::string WriteAttributesToJavaScript(int field_type, vtkDataSet*);
40  static std::string WriteAttributeHeadersToJavaScript(int field_type, vtkDataSet*);
41 
43 
49  static void ProcessRMIs();
50  static void ProcessRMIs(int reportError, int dont_loop = 0);
52 
53 protected:
55  ~vtkWebUtilities() override;
56 
57 private:
58  vtkWebUtilities(const vtkWebUtilities&) = delete;
59  void operator=(const vtkWebUtilities&) = delete;
60 };
61 
62 #endif
63 // VTK-HeaderTest-Exclude: vtkWebUtilities.h
abstract base class for most VTK objects
Definition: vtkObject.h:62
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:56
a simple class to control print indentation
Definition: vtkIndent.h:33
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...