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

pqCameraReaction has the logic to handle common operations associated with the camera such as reset view along X axis etc. More...

#include <pqCameraReaction.h>

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

Public Types

enum  Mode {
  RESET_CAMERA, RESET_POSITIVE_X, RESET_POSITIVE_Y, RESET_POSITIVE_Z,
  RESET_NEGATIVE_X, RESET_NEGATIVE_Y, RESET_NEGATIVE_Z, APPLY_ISOMETRIC_VIEW,
  ZOOM_TO_DATA, ROTATE_CAMERA_CW, ROTATE_CAMERA_CCW, ZOOM_CLOSEST_TO_DATA,
  RESET_CAMERA_CLOSEST
}
 

Public Slots

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

Public Member Functions

 pqCameraReaction (QAction *parent, Mode mode)
 
- 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 resetCamera (bool closest=false)
 
static void resetPositiveX ()
 
static void resetPositiveY ()
 
static void resetPositiveZ ()
 
static void resetNegativeX ()
 
static void resetNegativeY ()
 
static void resetNegativeZ ()
 
static void resetDirection (double look_x, double look_y, double look_z, double up_x, double up_y, double up_z)
 
static void zoomToData (bool closest=false)
 
static void rotateCamera (double angle)
 
static void applyIsometricView ()
 

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

pqCameraReaction has the logic to handle common operations associated with the camera such as reset view along X axis etc.

Definition at line 14 of file pqCameraReaction.h.

Member Enumeration Documentation

◆ Mode

Enumerator
RESET_CAMERA 
RESET_POSITIVE_X 
RESET_POSITIVE_Y 
RESET_POSITIVE_Z 
RESET_NEGATIVE_X 
RESET_NEGATIVE_Y 
RESET_NEGATIVE_Z 
APPLY_ISOMETRIC_VIEW 
ZOOM_TO_DATA 
ROTATE_CAMERA_CW 
ROTATE_CAMERA_CCW 
ZOOM_CLOSEST_TO_DATA 
RESET_CAMERA_CLOSEST 

Definition at line 20 of file pqCameraReaction.h.

Constructor & Destructor Documentation

◆ pqCameraReaction()

pqCameraReaction::pqCameraReaction ( QAction *  parent,
Mode  mode 
)

Member Function Documentation

◆ resetCamera()

static void pqCameraReaction::resetCamera ( bool  closest = false)
static

◆ resetPositiveX()

static void pqCameraReaction::resetPositiveX ( )
static

◆ resetPositiveY()

static void pqCameraReaction::resetPositiveY ( )
static

◆ resetPositiveZ()

static void pqCameraReaction::resetPositiveZ ( )
static

◆ resetNegativeX()

static void pqCameraReaction::resetNegativeX ( )
static

◆ resetNegativeY()

static void pqCameraReaction::resetNegativeY ( )
static

◆ resetNegativeZ()

static void pqCameraReaction::resetNegativeZ ( )
static

◆ resetDirection()

static void pqCameraReaction::resetDirection ( double  look_x,
double  look_y,
double  look_z,
double  up_x,
double  up_y,
double  up_z 
)
static

◆ zoomToData()

static void pqCameraReaction::zoomToData ( bool  closest = false)
static

◆ rotateCamera()

static void pqCameraReaction::rotateCamera ( double  angle)
static

◆ applyIsometricView()

static void pqCameraReaction::applyIsometricView ( )
static

◆ updateEnableState

void pqCameraReaction::updateEnableState ( )
overrideslot

Updates the enabled state.

Applications need not explicitly call this.

◆ onTriggered()

void pqCameraReaction::onTriggered ( )
overrideprotectedvirtual

Called when the action is triggered.

Reimplemented from pqReaction.


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