VTKFIG
0.25.0
Easy VTK based in situ visualization
include
vtkfigClient.h
Go to the documentation of this file.
1
5
#include <thread>
6
#include <cassert>
7
#include <memory>
8
#include <vtkSmartPointer.h>
9
10
#include "config.h"
11
12
#include "
vtkfigFrame.h
"
13
#include "
vtkfigSurf2D.h
"
14
#include "
vtkfigScalarView.h
"
15
#include "
vtkfigVectorView.h
"
16
#include "
vtkfigGridView.h
"
17
#include "
vtkfigXYPlot.h
"
18
19
#include "internals/vtkfigThread.h"
20
#include "internals/vtkfigCommunicator.h"
21
22
namespace
vtkfig
23
{
24
25
namespace
internals
26
{
30
class
Client
31
{
32
33
public
:
37
static
constexpr
const
char
*
ExecHelp
=R
"(
38
vtkfig-exec [-p portnumber] [-t timeout] [-via host] [-ssh] hostname command
39
40
Run command on host and send all vtkfig rendering commands to local host.
41
42
Parameters:
43
-p portnumber Port number on remote host for connection (default: 35000)
44
-t timeout Timeout for establishing connection in ms (default: 1000)
45
-via vianame Name of via host (for ssh tunneling)
46
-ssh Connet via ssh
47
hostname Name of host to run command on (mandatory)
48
command command to run (mandatory; all the remaining part of the command line):
49
-h This help.
50
)";
51
52
53
private
:
54
int
debug_level=0;
55
int
port=35000;
56
std::string remotecmd;
57
std::string hostname;
58
int
timeout=1000;
59
60
bool
help_switch=
false
;
61
bool
have_hostname=
false
;
62
bool
use_ssh=
false
;
63
int
iarg=1;
64
bool
remoteswitch=
false
;
65
bool
via=
false
;
66
std::string via_hostname;
67
vtkSmartPointer<Communicator> communicator;
68
69
public
:
71
Client
(
int
argc,
const
char
* argv[]);
72
74
int
spin
();
75
76
};
77
78
}
79
}
vtkfigScalarView.h
vtkfigXYPlot.h
vtkfig::internals::Client::Client
Client(int argc, const char *argv[])
Client constructor.
vtkfig::internals::Client::spin
int spin()
Client receive-and-render loop.
vtkfig::internals::Client
Client side visualization setup.
Definition:
vtkfigClient.h:30
vtkfig::internals::Client::ExecHelp
static constexpr const char * ExecHelp
Help string for vtkfig-exec.
Definition:
vtkfigClient.h:37
vtkfigVectorView.h
vtkfigFrame.h
vtkfigGridView.h
vtkfigSurf2D.h
Generated on Tue Apr 14 2020 15:13:41 for VTKFIG by
1.8.16