helper class to help copy/paste properties on proxies.
More...
#include <vtkSMProxyClipboard.h>
helper class to help copy/paste properties on proxies.
vtkSMProxyClipboard is a helper class used to enable copy/paste for properties on proxies. Copy/Paste is more that simply copying values from a proxy to another (for which one should simply use vtkSMProxy::Copy()). This has several extra smarts including the following:
- Skips input properties.
- Skips properties that are hidden by setting vtkSMProperty::PanelVisibility to "never".
- Specially handles properties with vtkSMProxyListDomain to select the same type of proxy from the target domain when pasting and then loading the state for the value proxy separately.
- For other vtkSMProxyProperty instances (e.g. LookupTable, ScalarOpacityFunction, etc.) on Paste, it tries to locate the requested proxy value on the session.
Definition at line 46 of file vtkSMProxyClipboard.h.
§ Superclass
§ vtkSMProxyClipboard()
vtkSMProxyClipboard::vtkSMProxyClipboard |
( |
| ) |
|
|
protected |
§ ~vtkSMProxyClipboard()
vtkSMProxyClipboard::~vtkSMProxyClipboard |
( |
| ) |
|
|
protected |
§ New()
§ GetClassName()
virtual const char* vtkSMProxyClipboard::GetClassName |
( |
| ) |
|
|
virtual |
§ IsTypeOf()
static int vtkSMProxyClipboard::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
§ IsA()
virtual int vtkSMProxyClipboard::IsA |
( |
const char * |
type | ) |
|
|
virtual |
§ SafeDownCast()
§ PrintSelf()
void vtkSMProxyClipboard::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
§ Copy()
bool vtkSMProxyClipboard::Copy |
( |
vtkSMProxy * |
source | ) |
|
Put a proxy's state on the clipboard.
Return true if the operation was successful.
§ CanPaste()
bool vtkSMProxyClipboard::CanPaste |
( |
vtkSMProxy * |
target | ) |
|
Returns true of the proxy state on the clipboard can be pasted on to the specified target
.
Current implementation doesn't check for the types of the proxies. In future, we can make this type-aware or add other criteria.
§ Paste()
bool vtkSMProxyClipboard::Paste |
( |
vtkSMProxy * |
target | ) |
|
Paste the state on the clipboard on to the target proxy.
§ Clear()
void vtkSMProxyClipboard::Clear |
( |
| ) |
|
|
inline |
§ CopiedState
The documentation for this class was generated from the following file: