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

#include <GraphicsView_Object.h>

Inheritance diagram for GraphicsView_Object:
Inheritance graph

Public Member Functions

 GraphicsView_Object (QGraphicsItem *theParent=0)
 
 ~GraphicsView_Object ()
 
virtual void compute ()=0
 
virtual void addTo (GraphicsView_ViewPort *theViewPort)
 
virtual void removeFrom (GraphicsView_ViewPort *theViewPort)
 
const QString & getName () const
 
virtual void setName (const QString &theName)
 
virtual int getPriority () const
 
virtual bool isOnTop () const
 
virtual void setIsOnTop (bool theIsOnTop)
 
virtual bool hasSpecificZValue () const
 
virtual bool isSelectable () const
 
virtual bool isMovable () const
 
virtual void setMovable (bool theMovable)
 
virtual QRectF getRect () const
 
virtual bool checkHighlight (double theX, double theY, QCursor &theCursor) const
 
virtual bool highlight (double theX, double theY)
 
virtual void unhighlight ()
 
virtual bool isHighlighted () const
 
virtual bool select (double theX, double theY, const QRectF &theRect)
 
virtual void unselect ()
 
virtual bool isSelected () const
 
virtual void setSelected (bool theState)
 
virtual void move (double theDX, double theDY, bool theIsAtOnce=false)
 
virtual bool finishMove (bool theStatus)
 
virtual bool isMoving () const
 
virtual bool isMovingByXAllowed (double theDX)
 
virtual bool isMovingByYAllowed (double theDY)
 
virtual bool updateScale (bool theIsScaleUp, bool theIsCtrl)
 
virtual QRectF getPullingRect () const
 
virtual bool portContains (const QPointF &)
 
virtual bool startPulling (const QPointF &)
 
virtual void pull (const QPointF &, GraphicsView_Object *, const GraphicsView_ObjectList &)
 
virtual void finishPulling (bool, const GraphicsView_ObjectList &)
 
virtual bool isPulling ()
 
virtual bool handleMousePress (QGraphicsSceneMouseEvent *)
 
virtual bool handleMouseMove (QGraphicsSceneMouseEvent *)
 
virtual bool handleMouseRelease (QGraphicsSceneMouseEvent *)
 
virtual QTransform getViewTransform () const
 
virtual void setViewTransform (const QTransform &theTransform)
 

Protected Attributes

QString myName
 
int myPriority
 
bool myIsOnTop
 
bool myIsHighlighted
 
bool myIsSelected
 
bool myIsMoving
 
bool myIsMovable
 
QTransform myViewTransform
 

Constructor & Destructor Documentation

GraphicsView_Object::GraphicsView_Object ( QGraphicsItem *  theParent = 0)
GraphicsView_Object::~GraphicsView_Object ( )

Member Function Documentation

void GraphicsView_Object::addTo ( GraphicsView_ViewPort theViewPort)
virtual
bool GraphicsView_Object::checkHighlight ( double  theX,
double  theY,
QCursor &  theCursor 
) const
virtual

References getRect().

virtual void GraphicsView_Object::compute ( )
pure virtual
bool GraphicsView_Object::finishMove ( bool  theStatus)
virtual

References myIsMoving.

virtual void GraphicsView_Object::finishPulling ( bool  ,
const GraphicsView_ObjectList  
)
inlinevirtual
const QString& GraphicsView_Object::getName ( ) const
inline

References myName.

virtual int GraphicsView_Object::getPriority ( ) const
inlinevirtual
virtual QRectF GraphicsView_Object::getPullingRect ( ) const
inlinevirtual
QRectF GraphicsView_Object::getRect ( ) const
virtual
virtual QTransform GraphicsView_Object::getViewTransform ( ) const
inlinevirtual
virtual bool GraphicsView_Object::handleMouseMove ( QGraphicsSceneMouseEvent *  )
inlinevirtual
virtual bool GraphicsView_Object::handleMousePress ( QGraphicsSceneMouseEvent *  )
inlinevirtual
virtual bool GraphicsView_Object::handleMouseRelease ( QGraphicsSceneMouseEvent *  )
inlinevirtual
virtual bool GraphicsView_Object::hasSpecificZValue ( ) const
inlinevirtual
bool GraphicsView_Object::highlight ( double  theX,
double  theY 
)
virtual
virtual bool GraphicsView_Object::isHighlighted ( ) const
inlinevirtual
virtual bool GraphicsView_Object::isMovable ( ) const
inlinevirtual
virtual bool GraphicsView_Object::isMoving ( ) const
inlinevirtual
virtual bool GraphicsView_Object::isMovingByXAllowed ( double  theDX)
inlinevirtual
virtual bool GraphicsView_Object::isMovingByYAllowed ( double  theDY)
inlinevirtual
virtual bool GraphicsView_Object::isOnTop ( ) const
inlinevirtual
virtual bool GraphicsView_Object::isPulling ( )
inlinevirtual
virtual bool GraphicsView_Object::isSelectable ( ) const
inlinevirtual
virtual bool GraphicsView_Object::isSelected ( ) const
inlinevirtual
void GraphicsView_Object::move ( double  theDX,
double  theDY,
bool  theIsAtOnce = false 
)
virtual

References finishMove(), myIsMovable, and myIsMoving.

virtual bool GraphicsView_Object::portContains ( const QPointF &  )
inlinevirtual
virtual void GraphicsView_Object::pull ( const QPointF &  ,
GraphicsView_Object ,
const GraphicsView_ObjectList  
)
inlinevirtual
void GraphicsView_Object::removeFrom ( GraphicsView_ViewPort theViewPort)
virtual
bool GraphicsView_Object::select ( double  theX,
double  theY,
const QRectF &  theRect 
)
virtual
virtual void GraphicsView_Object::setIsOnTop ( bool  theIsOnTop)
inlinevirtual
virtual void GraphicsView_Object::setMovable ( bool  theMovable)
inlinevirtual
void GraphicsView_Object::setName ( const QString &  theName)
virtual

References myName.

virtual void GraphicsView_Object::setSelected ( bool  theState)
inlinevirtual
void GraphicsView_Object::setViewTransform ( const QTransform &  theTransform)
virtual

References myViewTransform.

virtual bool GraphicsView_Object::startPulling ( const QPointF &  )
inlinevirtual
void GraphicsView_Object::unhighlight ( )
virtual

References myIsHighlighted.

void GraphicsView_Object::unselect ( )
virtual

References myIsSelected.

virtual bool GraphicsView_Object::updateScale ( bool  theIsScaleUp,
bool  theIsCtrl 
)
inlinevirtual

Member Data Documentation

bool GraphicsView_Object::myIsHighlighted
protected
bool GraphicsView_Object::myIsMovable
protected
bool GraphicsView_Object::myIsMoving
protected
bool GraphicsView_Object::myIsOnTop
protected
bool GraphicsView_Object::myIsSelected
protected
QString GraphicsView_Object::myName
protected
int GraphicsView_Object::myPriority
protected
QTransform GraphicsView_Object::myViewTransform
protected

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