forked from Kitware/VTK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtkWebUtilities.h
65 lines (51 loc) · 1.93 KB
/
vtkWebUtilities.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*=========================================================================
Program: Visualization Toolkit
Module: vtkWebUtilities.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkWebUtilities
* @brief collection of utility functions for ParaView Web.
*
* vtkWebUtilities consolidates miscellaneous utility functions useful for
* Python scripts designed for ParaView Web.
*/
#ifndef vtkWebUtilities_h
#define vtkWebUtilities_h
#include "vtkObject.h"
#include "vtkWebCoreModule.h" // needed for exports
#include <string>
class vtkDataSet;
class VTKWEBCORE_EXPORT vtkWebUtilities : public vtkObject
{
public:
static vtkWebUtilities* New();
vtkTypeMacro(vtkWebUtilities, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent) override;
static std::string WriteAttributesToJavaScript(int field_type, vtkDataSet*);
static std::string WriteAttributeHeadersToJavaScript(
int field_type, vtkDataSet*);
//@{
/**
* This method is similar to the ProcessRMIs() method on the GlobalController
* except that it is Python friendly in the sense that it will release the
* Python GIS lock, so when run in a thread, this will trully work in the
* background without locking the main one.
*/
static void ProcessRMIs();
static void ProcessRMIs(int reportError, int dont_loop=0);
//@}
protected:
vtkWebUtilities();
~vtkWebUtilities() override;
private:
vtkWebUtilities(const vtkWebUtilities&) = delete;
void operator=(const vtkWebUtilities&) = delete;
};
#endif
// VTK-HeaderTest-Exclude: vtkWebUtilities.h