Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pqCopyReaction Class Reference

Reaction for copying sources/filters. More...

#include <pqCopyReaction.h>

Inheritance diagram for pqCopyReaction:
Inheritance graph
[legend]
Collaboration diagram for pqCopyReaction:
Collaboration graph
[legend]

Public Slots

void updateEnableState () override
 Updates the enabled state. More...
 

Signals

void pipelineCopied ()
 

Public Member Functions

 pqCopyReaction (QAction *parent, bool paste_mode=false, bool pipeline_mode=false)
 
 ~pqCopyReaction () override
 
- Public Member Functions inherited from pqReaction
 pqReaction (QAction *parent, Qt::ConnectionType type=Qt::AutoConnection)
 Constructor. More...
 
 ~pqReaction () override
 
QAction * parentAction () const
 Provides access to the parent action. More...
 

Static Public Member Functions

static void copy (vtkSMProxy *dest, vtkSMProxy *source)
 Copy all properties from source to dest. More...
 
static void copy ()
 
static void paste ()
 
static void copyPipeline ()
 
static void pastePipeline ()
 
static pqProxygetSelectedPipelineRoot ()
 
static bool canPastePipeline ()
 

Protected Member Functions

void onTriggered () override
 Called when the action is triggered. More...
 

Protected Attributes

bool Paste
 
bool CreatePipeline
 
- Protected Attributes inherited from pqReaction
bool IsMaster
 

Static Protected Attributes

static QSet< QPointer< pqProxy > > FilterSelection
 Used for copy/paste pipeline. More...
 
static pqProxySelectionRoot
 Used for copy/paste pipeline. More...
 
static QSet< pqCopyReaction * > PastePipelineContainer
 Containers storing all instances of pipeline paster / copier. More...
 
static QSet< pqCopyReaction * > CopyPipelineContainer
 Containers storing all instances of pipeline paster / copier. More...
 
static QMap< pqProxy *, QMetaObject::Connection > SelectedProxyConnections
 Containers storing all instances of pipeline paster / copier. More...
 

Additional Inherited Members

- Protected Slots inherited from pqReaction
virtual void updateEnableState ()
 
virtual void updateMasterEnableState (bool)
 

Detailed Description

Reaction for copying sources/filters.

Definition at line 21 of file pqCopyReaction.h.

Constructor & Destructor Documentation

◆ pqCopyReaction()

pqCopyReaction::pqCopyReaction ( QAction *  parent,
bool  paste_mode = false,
bool  pipeline_mode = false 
)

◆ ~pqCopyReaction()

pqCopyReaction::~pqCopyReaction ( )
override

Member Function Documentation

◆ copy() [1/2]

static void pqCopyReaction::copy ( vtkSMProxy dest,
vtkSMProxy source 
)
static

Copy all properties from source to dest.

Uses the property names as the key for matching properties.

◆ copy() [2/2]

static void pqCopyReaction::copy ( )
static

◆ paste()

static void pqCopyReaction::paste ( )
static

◆ copyPipeline()

static void pqCopyReaction::copyPipeline ( )
static

◆ pastePipeline()

static void pqCopyReaction::pastePipeline ( )
static

◆ getSelectedPipelineRoot()

static pqProxy* pqCopyReaction::getSelectedPipelineRoot ( )
static

◆ canPastePipeline()

static bool pqCopyReaction::canPastePipeline ( )
static

◆ updateEnableState

void pqCopyReaction::updateEnableState ( )
overrideslot

Updates the enabled state.

Applications need not explicitly call this.

◆ pipelineCopied

void pqCopyReaction::pipelineCopied ( )
signal

◆ onTriggered()

void pqCopyReaction::onTriggered ( )
inlineoverrideprotectedvirtual

Called when the action is triggered.

Reimplemented from pqReaction.

Definition at line 56 of file pqCopyReaction.h.

Member Data Documentation

◆ Paste

bool pqCopyReaction::Paste
protected

Definition at line 76 of file pqCopyReaction.h.

◆ CreatePipeline

bool pqCopyReaction::CreatePipeline
protected

Definition at line 77 of file pqCopyReaction.h.

◆ FilterSelection

QSet<QPointer<pqProxy> > pqCopyReaction::FilterSelection
staticprotected

Used for copy/paste pipeline.

pqApplicationCore::registerManager() requires a QObject, but we need to track potentially multiple pipeline sources. Also using QPointer, so that way if any pqPipelineSource in this selection is deleted between Copy Pipeline and Paste Pipeline, we will be able to easily determine this.

Definition at line 87 of file pqCopyReaction.h.

◆ SelectionRoot

pqProxy* pqCopyReaction::SelectionRoot
staticprotected

Used for copy/paste pipeline.

pqApplicationCore::registerManager() requires a QObject, but we need to track potentially multiple pipeline sources. Also using QPointer, so that way if any pqPipelineSource in this selection is deleted between Copy Pipeline and Paste Pipeline, we will be able to easily determine this.

Definition at line 88 of file pqCopyReaction.h.

◆ PastePipelineContainer

QSet<pqCopyReaction*> pqCopyReaction::PastePipelineContainer
staticprotected

Containers storing all instances of pipeline paster / copier.

They enable to trigger updateEnableState of pasters once a pipeline has been copied in the clipboard.

Definition at line 97 of file pqCopyReaction.h.

◆ CopyPipelineContainer

QSet<pqCopyReaction*> pqCopyReaction::CopyPipelineContainer
staticprotected

Containers storing all instances of pipeline paster / copier.

They enable to trigger updateEnableState of pasters once a pipeline has been copied in the clipboard.

Definition at line 98 of file pqCopyReaction.h.

◆ SelectedProxyConnections

QMap<pqProxy*, QMetaObject::Connection> pqCopyReaction::SelectedProxyConnections
staticprotected

Containers storing all instances of pipeline paster / copier.

They enable to trigger updateEnableState of pasters once a pipeline has been copied in the clipboard.

Definition at line 99 of file pqCopyReaction.h.


The documentation for this class was generated from the following file: