Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | List of all members
pqCameraUndoRedoReaction Class Reference

Reaction for camera undo or redo. More...

#include <pqCameraUndoRedoReaction.h>

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

Public Member Functions

 pqCameraUndoRedoReaction (QAction *parent, bool undo, pqView *view=nullptr)
 Constructor parent cannot be nullptr. More...
 
- 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 undo (pqView *view)
 undo. More...
 
static void redo (pqView *view)
 redo. More...
 

Protected Slots

void setEnabled (bool enable)
 
void setActiveView (pqView *)
 
- Protected Slots inherited from pqReaction
virtual void updateEnableState ()
 
virtual void updateMasterEnableState (bool)
 

Protected Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from pqReaction
bool IsMaster
 

Detailed Description

Reaction for camera undo or redo.

Definition at line 16 of file pqCameraUndoRedoReaction.h.

Constructor & Destructor Documentation

◆ pqCameraUndoRedoReaction()

pqCameraUndoRedoReaction::pqCameraUndoRedoReaction ( QAction *  parent,
bool  undo,
pqView view = nullptr 
)

Constructor parent cannot be nullptr.

When undo is true, acts as undo-reaction, else acts as redo reaction. If view ==nullptr then active view is used.

Member Function Documentation

◆ undo()

static void pqCameraUndoRedoReaction::undo ( pqView view)
static

undo.

◆ redo()

static void pqCameraUndoRedoReaction::redo ( pqView view)
static

redo.

◆ setEnabled

void pqCameraUndoRedoReaction::setEnabled ( bool  enable)
inlineprotectedslot

Definition at line 40 of file pqCameraUndoRedoReaction.h.

◆ setActiveView

void pqCameraUndoRedoReaction::setActiveView ( pqView )
protectedslot

◆ onTriggered()

void pqCameraUndoRedoReaction::onTriggered ( )
overrideprotectedvirtual

Called when the action is triggered.

Reimplemented from pqReaction.


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