Developer Documentation
VSI::SceneTools Class Reference

#include <Plugin-VSI/scene/sceneTools.hh>

Inheritance diagram for VSI::SceneTools:

Public Member Functions

 SceneTools (GraphicsScene *_scene)
 Constructor. More...
 
 ~SceneTools ()
 Destructor. More...
 
void mouseMove (QPointF _pos)
 Handles mouse movement (will be called by the scene, if the mouse with a draged element is moved) More...
 
void mouseRelease (QPointF _pos, QGraphicsItem *_item)
 Handles mouse release (will be called by the scene, if the element is dropped) More...
 

Private Slots

void sceneRectChanged (const QRectF &_rect)
 
void updateArrows ()
 

Private Attributes

GraphicsScenescene_
 
Arrowarrows_ [5]
 
Trashtrash_
 
ZoomButtonzoom_ [2]
 
FunctionDisplayfDisplay_
 

Detailed Description

Widget that acts as parent for the scene manipulation widgets (Arrows, ZoomButtons, Trash, ...) It layouts itself (and also its childs) to the visible scene rectangle. It also forwards events from the scene to its child widgets

Definition at line 67 of file sceneTools.hh.

Constructor & Destructor Documentation

◆ SceneTools()

VSI::SceneTools::SceneTools ( GraphicsScene _scene)
explicit

Constructor.

Definition at line 70 of file sceneTools.cc.

◆ ~SceneTools()

VSI::SceneTools::~SceneTools ( )

Destructor.

Definition at line 118 of file sceneTools.cc.

Member Function Documentation

◆ mouseMove()

void VSI::SceneTools::mouseMove ( QPointF  _pos)

Handles mouse movement (will be called by the scene, if the mouse with a draged element is moved)

Definition at line 170 of file sceneTools.cc.

◆ mouseRelease()

void VSI::SceneTools::mouseRelease ( QPointF  _pos,
QGraphicsItem *  _item 
)

Handles mouse release (will be called by the scene, if the element is dropped)

Definition at line 197 of file sceneTools.cc.

◆ sceneRectChanged

void VSI::SceneTools::sceneRectChanged ( const QRectF &  _rect)
privateslot

Definition at line 125 of file sceneTools.cc.

◆ updateArrows

void VSI::SceneTools::updateArrows ( )
privateslot

Definition at line 136 of file sceneTools.cc.

Member Data Documentation

◆ arrows_

Arrow* VSI::SceneTools::arrows_[5]
private

Definition at line 96 of file sceneTools.hh.

◆ fDisplay_

FunctionDisplay* VSI::SceneTools::fDisplay_
private

Definition at line 100 of file sceneTools.hh.

◆ scene_

GraphicsScene* VSI::SceneTools::scene_
private

Definition at line 94 of file sceneTools.hh.

◆ trash_

Trash* VSI::SceneTools::trash_
private

Definition at line 97 of file sceneTools.hh.

◆ zoom_

ZoomButton* VSI::SceneTools::zoom_[2]
private

Definition at line 98 of file sceneTools.hh.


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