Remoting
ServerManager
vtkSMProxyListDomain.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: ParaView
4
Module: vtkSMProxyListDomain.h
5
6
Copyright (c) Kitware, Inc.
7
All rights reserved.
8
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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
=========================================================================*/
37
#ifndef vtkSMProxyListDomain_h
38
#define vtkSMProxyListDomain_h
39
40
#include "
vtkRemotingServerManagerModule.h
"
//needed for exports
41
#include "
vtkSMDomain.h
"
42
43
#include <string>
// for std::string
44
#include <utility>
// for std::pair
45
#include <vector>
// for std::vector
46
47
class
vtkSMProperty
;
48
class
vtkSMProxy
;
49
class
vtkSMProxyListDomainInternals;
50
class
vtkSMSessionProxyManager
;
51
52
class
VTKREMOTINGSERVERMANAGER_EXPORT
vtkSMProxyListDomain
:
public
vtkSMDomain
53
{
54
public
:
55
static
vtkSMProxyListDomain
*
New
();
56
vtkTypeMacro(
vtkSMProxyListDomain
,
vtkSMDomain
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
58
62
struct
ProxyType
63
{
64
std::string
GroupName
;
65
std::string
ProxyName
;
66
ProxyType
() =
default
;
67
ProxyType
(
const
std::string& group,
const
std::string& name)
68
: GroupName(group)
69
, ProxyName(name)
70
{
71
}
72
};
73
77
const
std::vector<ProxyType>& GetProxyTypes()
const
;
78
82
unsigned
int
GetNumberOfProxyTypes();
83
87
const
char
* GetProxyGroup(
unsigned
int
index
);
88
92
const
char
* GetProxyName(
unsigned
int
index);
93
98
const
char
* GetProxyName(
vtkSMProxy
* proxy);
99
103
vtkSMProxy
* GetProxyWithName(
const
char
* pname);
104
108
int
IsInDomain(
vtkSMProperty
* property)
override
;
109
113
void
AddProxy(
vtkSMProxy
*);
114
118
bool
HasProxy(
vtkSMProxy
*);
119
123
unsigned
int
GetNumberOfProxies();
124
128
vtkSMProxy
* GetProxy(
unsigned
int
index);
129
133
vtkSMProxy
* FindProxy(
const
char
* xmlgroup,
const
char
* xmlname);
134
139
int
RemoveProxy(
vtkSMProxy
* proxy);
140
145
int
RemoveProxy(
unsigned
int
index);
146
152
void
CreateProxies(
vtkSMSessionProxyManager
* pxm);
153
163
int
SetDefaultValues(
vtkSMProperty
* prop,
bool
use_unchecked_values)
override
;
164
166
169
vtkSetMacro(DefaultIndex,
unsigned
int
);
170
vtkGetMacro(DefaultIndex,
unsigned
int
);
172
177
void
SetLogName(
const
char
* prefix);
178
179
protected
:
180
vtkSMProxyListDomain
();
181
~
vtkSMProxyListDomain
()
override
;
182
187
int
ReadXMLAttributes(
vtkSMProperty
* prop,
vtkPVXMLElement
* element)
override
;
188
192
void
AddProxy(
const
char
* group,
const
char
*
name
);
193
197
void
ChildSaveState(
vtkPVXMLElement
* propertyElement)
override
;
198
199
// Load the state of the domain from the XML.
200
int
LoadState(
vtkPVXMLElement
* domainElement,
vtkSMProxyLocator
* loader)
override
;
201
202
friend
class
vtkSMProxyProperty
;
203
void
SetProxies
(
vtkSMProxy
** proxies,
unsigned
int
count);
204
205
unsigned
int
DefaultIndex = 0;
206
207
private
:
208
vtkSMProxyListDomain
(
const
vtkSMProxyListDomain
&) =
delete
;
209
void
operator=(
const
vtkSMProxyListDomain
&) =
delete
;
210
211
vtkSMProxyListDomainInternals* Internals;
212
};
213
214
#endif
vtkRemotingServerManagerModule.h
vtkSMProxyProperty::SetProxies
virtual void SetProxies(unsigned int numElements, vtkSMProxy *proxies[])
Sets the value of the property to the list of proxies specified.
vtkSMProxyProperty
property representing pointer(s) to vtkObject(s)
Definition:
vtkSMProxyProperty.h:69
vtkSMProxyListDomain::ProxyType::ProxyName
std::string ProxyName
Definition:
vtkSMProxyListDomain.h:65
VTKREMOTINGSERVERMANAGER_EXPORT
#define VTKREMOTINGSERVERMANAGER_EXPORT
Definition:
vtkRemotingServerManagerModule.h:15
vtkSMProperty
superclass for all SM properties
Definition:
vtkSMProperty.h:156
name
name
vtkIndent
vtkSMDomain
represents the possible values a property can have
Definition:
vtkSMDomain.h:49
vtkSMDomain::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSMProxyListDomain::ProxyType::GroupName
std::string GroupName
Definition:
vtkSMProxyListDomain.h:64
vtkSMSessionProxyManager
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
Definition:
vtkSMSessionProxyManager.h:147
vtkSMProxy
proxy for a VTK object(s) on a server
Definition:
vtkSMProxy.h:152
vtkSMProxyLocator
is used to locate proxies referred to in state xmls while loading state files.
Definition:
vtkSMProxyLocator.h:36
vtkSMProxyListDomain
union of proxies.
Definition:
vtkSMProxyListDomain.h:52
vtkSMDomain.h
vtkSMProxyListDomain::ProxyType::ProxyType
ProxyType(const std::string &group, const std::string &name)
Definition:
vtkSMProxyListDomain.h:67
vtkSMDomain::New
static vtkSMDomain * New()
vtkPVXMLElement
This is used by vtkPVXMLParser to represent an XML document starting at the root element.
Definition:
vtkPVXMLElement.h:35
index
index
vtkSMProxyListDomain::ProxyType
Used to identify a proxy type.
Definition:
vtkSMProxyListDomain.h:62
Generated by
1.8.13 on Fri Jun 2 2023