BeamTreeScene Class Reference

QGraphicsScene zur Verwaltung aller node Objekte. More...

#include <beamtreescene.h>

Collaboration diagram for BeamTreeScene:

Collaboration graph
[legend]

List of all members.

Public Slots

void setScale (int scale)
void resetColor ()

Public Member Functions

 BeamTreeScene (QObject *parent=0)
void render (node *dir)
 Erzeugt die Rechtecke, die das node-Objekt dir, sowie dessen Kinder repräsentieren.
void draw ()
void draw (float scale)
 Fügt die mittels render() erzeugten Rechtecke zur QGraphicsScene hinzu.
void reset ()
void hilight (node *n)
void setView (QGraphicsView *v)

Protected Attributes

QGraphicsView * view
bool timerRunning
QPen pen
QBrush oldBrush
nodeoldNode
QGraphicsSimpleTextItem * textItem


Detailed Description

QGraphicsScene zur Verwaltung aller node Objekte.

Nodes werden dabei durch Rechtecke repräsentiert, die in render() erzeugt bzw. in draw() zur QGraphicsScene hinzugefügt werden.

Definition at line 11 of file beamtreescene.h.


Constructor & Destructor Documentation

BeamTreeScene::BeamTreeScene ( QObject *  parent = 0  ) 

Definition at line 3 of file beamtreescene.cpp.

References pen.


Member Function Documentation

void BeamTreeScene::render ( node dir  ) 

Erzeugt die Rechtecke, die das node-Objekt dir, sowie dessen Kinder repräsentieren.

See also:
draw(float, bool)

Definition at line 10 of file beamtreescene.cpp.

References node::addParentOffset(), node::calculateRect(), node::getChildren(), node::getDepth(), node::isDir(), node::isVertical(), and pen.

Referenced by MainWindow::chooseFolder().

void BeamTreeScene::draw (  ) 

Definition at line 52 of file beamtreescene.cpp.

Referenced by setScale().

void BeamTreeScene::draw ( float  scale  ) 

Fügt die mittels render() erzeugten Rechtecke zur QGraphicsScene hinzu.

Definition at line 56 of file beamtreescene.cpp.

References node::isDir(), and node::isVertical().

void BeamTreeScene::reset (  ) 

Definition at line 83 of file beamtreescene.cpp.

Referenced by MainWindow::chooseFolder().

void BeamTreeScene::hilight ( node n  ) 

Definition at line 87 of file beamtreescene.cpp.

References node::getPath(), oldBrush, oldNode, resetColor(), textItem, and timerRunning.

Referenced by MainWindow::setRoot().

void BeamTreeScene::setView ( QGraphicsView *  v  )  [inline]

Definition at line 28 of file beamtreescene.h.

References view.

Referenced by MainWindow::createCentralWidget().

void BeamTreeScene::setScale ( int  scale  )  [slot]

Definition at line 78 of file beamtreescene.cpp.

References draw().

void BeamTreeScene::resetColor (  )  [slot]

Definition at line 100 of file beamtreescene.cpp.

References oldBrush, oldNode, textItem, and timerRunning.

Referenced by hilight().


Member Data Documentation

QGraphicsView* BeamTreeScene::view [protected]

Definition at line 35 of file beamtreescene.h.

Referenced by setView().

bool BeamTreeScene::timerRunning [protected]

Definition at line 36 of file beamtreescene.h.

Referenced by hilight(), and resetColor().

QPen BeamTreeScene::pen [protected]

Definition at line 37 of file beamtreescene.h.

Referenced by BeamTreeScene(), and render().

QBrush BeamTreeScene::oldBrush [protected]

Definition at line 38 of file beamtreescene.h.

Referenced by hilight(), and resetColor().

Definition at line 39 of file beamtreescene.h.

Referenced by hilight(), and resetColor().

QGraphicsSimpleTextItem* BeamTreeScene::textItem [protected]

Definition at line 40 of file beamtreescene.h.

Referenced by hilight(), and resetColor().


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

Generated on Wed Jun 4 14:40:10 2008 for infovis by  doxygen 1.5.5