Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GraphicsView_ViewTransformer Class Reference

#include <GraphicsView_ViewTransformer.h>

Inheritance diagram for GraphicsView_ViewTransformer:
Inheritance graph

Public Member Functions

 GraphicsView_ViewTransformer (GraphicsView_Viewer *, int type)
 
 ~GraphicsView_ViewTransformer ()
 
int type () const
 
virtual void exec ()
 
virtual bool eventFilter (QObject *, QEvent *)
 

Static Public Member Functions

static int accelKey ()
 
static void setAccelKey (int k)
 
static int zoomButton ()
 
static void setZoomButton (int b)
 
static int panButton ()
 
static void setPanButton (int b)
 
static int panGlobalButton ()
 
static void setPanGlobalButton (int b)
 
static int fitRectButton ()
 
static void setFitRectButton (int b)
 

Protected Types

enum  TransformState { Begin, InProcess, Finished }
 

Protected Member Functions

virtual void onTransform (TransformState)
 
void initTransform (bool)
 
void drawRect (const QRectF &theRect)
 
void endDrawRect ()
 

Protected Attributes

GraphicsView_ViewermyViewer
 
int myType
 
QCursor mySavedCursor
 
bool mySavedMouseTrack
 
QPointF myStart
 
QPointF myCurr
 
int myButtonState
 
int myMajorBtn
 
QRubberBand * myRectBand
 

Static Protected Attributes

static int panBtn = Qt::MidButton
 
static int zoomBtn = Qt::LeftButton
 
static int fitRectBtn = Qt::LeftButton
 
static int panGlobalBtn = Qt::LeftButton
 
static int acccelKey = Qt::ControlModifier
 

Member Enumeration Documentation

Enumerator
Begin 
InProcess 
Finished 

Constructor & Destructor Documentation

GraphicsView_ViewTransformer::GraphicsView_ViewTransformer ( GraphicsView_Viewer v,
int  type 
)
GraphicsView_ViewTransformer::~GraphicsView_ViewTransformer ( )

Member Function Documentation

static int GraphicsView_ViewTransformer::accelKey ( )
inlinestatic
void GraphicsView_ViewTransformer::drawRect ( const QRectF &  theRect)
protected
void GraphicsView_ViewTransformer::endDrawRect ( )
protected

References myRectBand.

bool GraphicsView_ViewTransformer::eventFilter ( QObject o,
QEvent e 
)
virtual
static int GraphicsView_ViewTransformer::fitRectButton ( )
inlinestatic
void GraphicsView_ViewTransformer::initTransform ( bool  init)
protected
static int GraphicsView_ViewTransformer::panButton ( )
inlinestatic
static int GraphicsView_ViewTransformer::panGlobalButton ( )
inlinestatic
static void GraphicsView_ViewTransformer::setAccelKey ( int  k)
inlinestatic
static void GraphicsView_ViewTransformer::setFitRectButton ( int  b)
inlinestatic
static void GraphicsView_ViewTransformer::setPanButton ( int  b)
inlinestatic
static void GraphicsView_ViewTransformer::setPanGlobalButton ( int  b)
inlinestatic
static void GraphicsView_ViewTransformer::setZoomButton ( int  b)
inlinestatic
int GraphicsView_ViewTransformer::type ( ) const

References myType.

static int GraphicsView_ViewTransformer::zoomButton ( )
inlinestatic

Member Data Documentation

int GraphicsView_ViewTransformer::acccelKey = Qt::ControlModifier
staticprotected
int GraphicsView_ViewTransformer::fitRectBtn = Qt::LeftButton
staticprotected
int GraphicsView_ViewTransformer::myButtonState
protected
QPointF GraphicsView_ViewTransformer::myCurr
protected
int GraphicsView_ViewTransformer::myMajorBtn
protected
QRubberBand* GraphicsView_ViewTransformer::myRectBand
protected
QCursor GraphicsView_ViewTransformer::mySavedCursor
protected
bool GraphicsView_ViewTransformer::mySavedMouseTrack
protected
QPointF GraphicsView_ViewTransformer::myStart
protected
int GraphicsView_ViewTransformer::myType
protected
GraphicsView_Viewer* GraphicsView_ViewTransformer::myViewer
protected
int GraphicsView_ViewTransformer::panBtn = Qt::MidButton
staticprotected
int GraphicsView_ViewTransformer::panGlobalBtn = Qt::LeftButton
staticprotected
int GraphicsView_ViewTransformer::zoomBtn = Qt::LeftButton
staticprotected

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