union of proxies. More...
#include <vtkSMProxyListDomain.h>
Classes | |
struct | ProxyType |
Used to identify a proxy type. More... | |
Public Types | |
typedef vtkSMDomain | Superclass |
![]() | |
enum | IsInDomainReturnCodes { NOT_APPLICABLE = -1, NOT_IN_DOMAIN = 0, IN_DOMAIN = 1 } |
Return values for IsInDomain calls. More... | |
typedef vtkSMSessionObject | Superclass |
![]() | |
typedef vtkSMObject | Superclass |
![]() | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
const std::vector< ProxyType > & | GetProxyTypes () const |
Returns a vector of proxy types for the proxies in the domain. More... | |
unsigned int | GetNumberOfProxyTypes () |
Returns the number of proxies in the domain. More... | |
const char * | GetProxyGroup (unsigned int index) |
Returns the xml group name for the proxy at a given index. More... | |
const char * | GetProxyName (unsigned int index) |
Returns the xml type name for the proxy at a given index. More... | |
const char * | GetProxyName (vtkSMProxy *proxy) |
If the proxy is part of the domain, then this returns the name used for the proxy in the domain. More... | |
vtkSMProxy * | GetProxyWithName (const char *pname) |
Inverse of GetProxyName , returns the first proxy with the given name. More... | |
int | IsInDomain (vtkSMProperty *property) override |
This always returns true. More... | |
void | AddProxy (vtkSMProxy *) |
Add a proxy to the domain. More... | |
bool | HasProxy (vtkSMProxy *) |
Returns if the proxy is present in the domain. More... | |
unsigned int | GetNumberOfProxies () |
Get number of proxies in the domain. More... | |
vtkSMProxy * | GetProxy (unsigned int index) |
Get proxy at a given index. More... | |
vtkSMProxy * | FindProxy (const char *xmlgroup, const char *xmlname) |
Find a proxy in the domain of the given group and type. More... | |
int | RemoveProxy (vtkSMProxy *proxy) |
Removes the first occurrence of the proxy in the domain. More... | |
int | RemoveProxy (unsigned int index) |
Removes the proxy at the given index. More... | |
void | CreateProxies (vtkSMSessionProxyManager *pxm) |
Creates and populates the domain with the proxy-types. More... | |
int | SetDefaultValues (vtkSMProperty *prop, bool use_unchecked_values) override |
A vtkSMProperty is often defined with a default value in the XML itself. More... | |
void | SetLogName (const char *prefix) |
Sets log name for each of the proxy in the domain using the prefix provided. More... | |
virtual void | SetDefaultIndex (unsigned int) |
Set and Get the default proxy index. More... | |
virtual unsigned int | GetDefaultIndex () |
Set and Get the default proxy index. More... | |
![]() | |
virtual int | IsInDomain (vtkSMProperty *vtkNotUsed(property)) |
Is the (unchecked) value of the property in the domain? Overwritten by sub-classes. More... | |
virtual void | Update (vtkSMProperty *requestingProperty) |
Update self based on the "unchecked" values of all required properties. More... | |
virtual void | SetAnimationValue (vtkSMProperty *, int vtkNotUsed(index), double vtkNotUsed(value)) |
Set the value of an element of a property from the animation editor. More... | |
virtual int | SetDefaultValues (vtkSMProperty *, bool vtkNotUsed(use_unchecked_values)) |
A vtkSMProperty is often defined with a default value in the XML itself. More... | |
vtkSMProperty * | GetProperty () |
Provides access to the vtkSMProperty on which this domain is hooked up. More... | |
virtual unsigned int | GetNumberOfInputConnections (const char *function) |
Helper method to get the number of input connections hence the number of available vtkPVDataInformation from input proxy connected to the required property with the given function. More... | |
vtkSMProperty * | GetRequiredProperty (const char *function) |
Returns a given required property of the given function. More... | |
virtual char * | GetXMLName () |
Assigned by the XML parser. More... | |
virtual bool | GetIsOptional () |
When the IsOptional flag is set, IsInDomain() always returns true. More... | |
virtual vtkPVDataInformation * | GetInputDataInformation (const char *function, unsigned int index=0) |
Helper methods to get vtkPVDataInformation from input proxy connected to the required property with the given function and provided input index. More... | |
virtual vtkPVDataInformation * | GetInputSubsetDataInformation (unsigned int compositeIndex, const char *function, unsigned int index=0) |
Helper methods to get vtkPVDataInformation from input proxy connected to the required property with the given function and provided input index. More... | |
virtual vtkPVDataInformation * | GetInputSubsetDataInformation (const char *selector, const char *assemblyName, const char *function, unsigned int index=0) |
Helper methods to get vtkPVDataInformation from input proxy connected to the required property with the given function and provided input index. More... | |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual vtkSMSessionProxyManager * | GetSessionProxyManager () |
Return the corresponding ProxyManager if any. More... | |
virtual void | SetSession (vtkSMSession *) |
Get/Set the session on wihch this object exists. More... | |
virtual vtkSMSession * | GetSession () |
Get/Set the session on wihch this object exists. More... | |
![]() | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static vtkSMProxyListDomain * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMProxyListDomain * | SafeDownCast (vtkObject *o) |
![]() | |
static vtkSMDomain * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMDomain * | SafeDownCast (vtkObject *o) |
![]() | |
static vtkSMSessionObject * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMSessionObject * | SafeDownCast (vtkObject *o) |
![]() | |
static vtkSMObject * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMObject * | SafeDownCast (vtkObject *o) |
static std::string | CreatePrettyLabel (const std::string &name) |
Return a well-formated label using provided name by adding spaces between lower cases and upper cases: More... | |
![]() | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkSMProxyListDomain () | |
~vtkSMProxyListDomain () override | |
int | ReadXMLAttributes (vtkSMProperty *prop, vtkPVXMLElement *element) override |
Set the appropriate ivars from the xml element. More... | |
void | AddProxy (const char *group, const char *name) |
Adds a proxy type, used by ReadXMLAttributes(). More... | |
void | ChildSaveState (vtkPVXMLElement *propertyElement) override |
Save state for this domain. More... | |
int | LoadState (vtkPVXMLElement *domainElement, vtkSMProxyLocator *loader) override |
void | SetProxies (vtkSMProxy **proxies, unsigned int count) |
![]() | |
vtkSMDomain () | |
~vtkSMDomain () override | |
virtual int | LoadState (vtkPVXMLElement *vtkNotUsed(domainElement), vtkSMProxyLocator *vtkNotUsed(loader)) |
Load the state of the domain from the XML. More... | |
void | RemoveRequiredProperty (vtkSMProperty *prop) |
Remove the given property from the required properties list. More... | |
void | AddRequiredProperty (vtkSMProperty *prop, const char *function) |
Add a new required property to this domain. More... | |
void | DomainModified () |
Invokes DomainModifiedEvent. More... | |
void | InvokeModified () |
unsigned int | GetNumberOfRequiredProperties () |
Gets the number of required properties added. More... | |
void | SetProperty (vtkSMProperty *) |
Set the domain's property. More... | |
void | SaveState (vtkPVXMLElement *parent, const char *uid) |
Add the header and creates a new vtkPVXMLElement for the domain, fills it up with the common attributes. More... | |
virtual void | SetIsOptional (bool) |
When the IsOptional flag is set, IsInDomain() always returns true. More... | |
virtual void | SetXMLName (const char *) |
Assigned by the XML parser. More... | |
![]() | |
vtkSMSessionObject () | |
~vtkSMSessionObject () override | |
![]() | |
vtkSMObject () | |
~vtkSMObject () override | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
unsigned int | DefaultIndex = 0 |
![]() | |
char * | XMLName |
bool | IsOptional |
vtkSMDomainInternals * | Internals |
![]() | |
vtkWeakPointer< vtkSMSession > | Session |
Identifies the session id to which this object is related. More... | |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Friends | |
class | vtkSMProxyProperty |
union of proxies.
This domain is a collection of proxies that can be assigned as the value to a vtkSMProxyProperty. The Server Manager configuration defines the proxy types that form this list, while the value of this domain is the list of instances of proxies. Example usage :
Definition at line 40 of file vtkSMProxyListDomain.h.
Definition at line 44 of file vtkSMProxyListDomain.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented from vtkSMDomain.
Reimplemented in vtkSMRangedTransferFunctionDomain.
Reimplemented from vtkSMDomain.
Reimplemented in vtkSMRangedTransferFunctionDomain.
|
static |
|
overridevirtual |
Reimplemented from vtkSMDomain.
Reimplemented in vtkSMRangedTransferFunctionDomain.
const std::vector<ProxyType>& vtkSMProxyListDomain::GetProxyTypes | ( | ) | const |
Returns a vector of proxy types for the proxies in the domain.
unsigned int vtkSMProxyListDomain::GetNumberOfProxyTypes | ( | ) |
Returns the number of proxies in the domain.
Returns the xml group name for the proxy at a given index.
Returns the xml type name for the proxy at a given index.
const char* vtkSMProxyListDomain::GetProxyName | ( | vtkSMProxy * | proxy | ) |
If the proxy
is part of the domain, then this returns the name used for the proxy in the domain.
Returns nullptr otherwise.
vtkSMProxy* vtkSMProxyListDomain::GetProxyWithName | ( | const char * | pname | ) |
Inverse of GetProxyName
, returns the first proxy with the given name.
|
override |
This always returns true.
void vtkSMProxyListDomain::AddProxy | ( | vtkSMProxy * | ) |
Add a proxy to the domain.
bool vtkSMProxyListDomain::HasProxy | ( | vtkSMProxy * | ) |
Returns if the proxy is present in the domain.
unsigned int vtkSMProxyListDomain::GetNumberOfProxies | ( | ) |
Get number of proxies in the domain.
vtkSMProxy* vtkSMProxyListDomain::GetProxy | ( | unsigned int | index | ) |
Get proxy at a given index.
vtkSMProxy* vtkSMProxyListDomain::FindProxy | ( | const char * | xmlgroup, |
const char * | xmlname | ||
) |
Find a proxy in the domain of the given group and type.
int vtkSMProxyListDomain::RemoveProxy | ( | vtkSMProxy * | proxy | ) |
Removes the first occurrence of the proxy
in the domain.
Returns if the proxy was removed.
Removes the proxy at the given index.
Returns if the proxy was removed.
void vtkSMProxyListDomain::CreateProxies | ( | vtkSMSessionProxyManager * | pxm | ) |
Creates and populates the domain with the proxy-types.
Note that the newly created proxies won't be registered with the proxy manager.
|
override |
A vtkSMProperty is often defined with a default value in the XML itself.
However, many times, the default value must be determined at run time. To facilitate this, domains can override this method to compute and set the default value for the property. Note that unlike the compile-time default values, the application must explicitly call this method to initialize the property.
|
virtual |
Set and Get the default proxy index.
|
virtual |
Set and Get the default proxy index.
void vtkSMProxyListDomain::SetLogName | ( | const char * | prefix | ) |
Sets log name for each of the proxy in the domain using the prefix provided.
|
overrideprotectedvirtual |
Set the appropriate ivars from the xml element.
Should be overwritten by subclass if adding ivars.
Reimplemented from vtkSMDomain.
Reimplemented in vtkSMRangedTransferFunctionDomain.
Adds a proxy type, used by ReadXMLAttributes().
|
overrideprotectedvirtual |
Save state for this domain.
Reimplemented from vtkSMDomain.
|
overrideprotected |
|
protected |
|
friend |
Definition at line 190 of file vtkSMProxyListDomain.h.
|
protected |
Definition at line 193 of file vtkSMProxyListDomain.h.