Computer Assited Medical Intervention Tool Kit  version 5.0
MainWindow Class Reference

#include <mainwindow.h>

+ Inheritance diagram for MainWindow:
+ Collaboration diagram for MainWindow:

Public Member Functions

 MainWindow (QWidget *parent=0)
 
 MainWindow (QWidget *parent=0)
 

Private Slots

void clearAll ()
 
void clearAll ()
 
void deleteObject ()
 
void deleteObject ()
 
void fillView ()
 
void fillView ()
 
void itemClicked (QtCanvasItem *item)
 
void itemClicked (QtCanvasItem *item)
 
void itemMoved (QtCanvasItem *item)
 
void itemMoved (QtCanvasItem *item)
 
void newEllipse ()
 
void newEllipse ()
 
void newLine ()
 
void newLine ()
 
void newRectangle ()
 
void newRectangle ()
 
void newText ()
 
void newText ()
 
void valueChanged (QtProperty *property, const QColor &value)
 
void valueChanged (QtProperty *property, const QFont &value)
 
void valueChanged (QtProperty *property, const QPoint &value)
 
void valueChanged (QtProperty *property, const QSize &value)
 
void valueChanged (QtProperty *property, const QString &value)
 
void valueChanged (QtProperty *property, const QVariant &value)
 
void valueChanged (QtProperty *property, double value)
 

Private Member Functions

QtCanvasItemaddEllipse ()
 
QtCanvasItemaddEllipse ()
 
QtCanvasItemaddLine ()
 
QtCanvasItemaddLine ()
 
void addProperty (QtProperty *property, const QString &id)
 
void addProperty (QtVariantProperty *property, const QString &id)
 
QtCanvasItemaddRectangle ()
 
QtCanvasItemaddRectangle ()
 
QtCanvasItemaddText ()
 
QtCanvasItemaddText ()
 
void updateExpandState ()
 
void updateExpandState ()
 

Private Attributes

QtCanvascanvas
 
CanvasViewcanvasView
 
class QtColorPropertyManagercolorManager
 
QtCanvasItemcurrentItem
 
QAction * deleteAction
 
class QtDoublePropertyManagerdoubleManager
 
class QtFontPropertyManagerfontManager
 
QMap< QString, bool > idToExpanded
 
QMap< QString, QtVariantProperty * > idToProperty
 
QMap< QString, QtProperty * > idToProperty
 
class QtPointPropertyManagerpointManager
 
class QtTreePropertyBrowserpropertyEditor
 
QMap< QtProperty *, QString > propertyToId
 
class QtSizePropertyManagersizeManager
 
class QtStringPropertyManagerstringManager
 
class QtVariantPropertyManagervariantManager
 

Constructor & Destructor Documentation

◆ MainWindow() [1/2]

◆ MainWindow() [2/2]

MainWindow::MainWindow ( QWidget *  parent = 0)

Member Function Documentation

◆ addEllipse() [1/2]

QtCanvasItem* MainWindow::addEllipse ( )
private

◆ addEllipse() [2/2]

QtCanvasItem * MainWindow::addEllipse ( )
private

References canvas, QtCanvas::height(), QtCanvasItem::move(), QtCanvasPolygonalItem::setBrush(), QtCanvasItem::setZ(), QtCanvasItem::show(), and QtCanvas::width().

Referenced by fillView(), and newEllipse().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addLine() [1/2]

QtCanvasItem* MainWindow::addLine ( )
private

◆ addLine() [2/2]

QtCanvasItem * MainWindow::addLine ( )
private

References canvas, QtCanvas::height(), QtCanvasItem::move(), QtCanvasLine::setPen(), QtCanvasLine::setPoints(), QtCanvasItem::setZ(), QtCanvasItem::show(), and QtCanvas::width().

Referenced by fillView(), and newLine().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addProperty() [1/2]

void MainWindow::addProperty ( QtProperty property,
const QString &  id 
)
private

References QtAbstractPropertyBrowser::addProperty(), idToExpanded, idToProperty, propertyEditor, propertyToId, and QtTreePropertyBrowser::setExpanded().

Referenced by itemClicked().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addProperty() [2/2]

void MainWindow::addProperty ( QtVariantProperty property,
const QString &  id 
)
private

References QtAbstractPropertyBrowser::addProperty(), idToExpanded, idToProperty, propertyEditor, propertyToId, and QtTreePropertyBrowser::setExpanded().

+ Here is the call graph for this function:

◆ addRectangle() [1/2]

QtCanvasItem* MainWindow::addRectangle ( )
private

◆ addRectangle() [2/2]

QtCanvasItem * MainWindow::addRectangle ( )
private

References canvas, QtCanvas::height(), QtCanvasPolygonalItem::setBrush(), QtCanvasPolygonalItem::setPen(), QtCanvasItem::setZ(), QtCanvasItem::show(), and QtCanvas::width().

Referenced by fillView(), and newRectangle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addText() [1/2]

QtCanvasItem* MainWindow::addText ( )
private

◆ addText() [2/2]

QtCanvasItem * MainWindow::addText ( )
private

References canvas, QtCanvas::height(), QtCanvasItem::move(), QtCanvasText::setColor(), QtCanvasText::setText(), QtCanvasItem::setZ(), QtCanvasItem::show(), and QtCanvas::width().

Referenced by fillView(), and newText().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clearAll [1/2]

void MainWindow::clearAll ( )
privateslot

References QtCanvas::allItems(), canvas, itemClicked(), and QtCanvas::update().

Referenced by MainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clearAll [2/2]

void MainWindow::clearAll ( )
privateslot

◆ deleteObject [1/2]

void MainWindow::deleteObject ( )
privateslot

References canvas, currentItem, itemClicked(), and QtCanvas::update().

Referenced by MainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteObject [2/2]

void MainWindow::deleteObject ( )
privateslot

◆ fillView [1/2]

void MainWindow::fillView ( )
privateslot

References addEllipse(), addLine(), addRectangle(), addText(), canvas, and QtCanvas::update().

Referenced by MainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillView [2/2]

void MainWindow::fillView ( )
privateslot

◆ itemClicked [1/2]

◆ itemClicked [2/2]

void MainWindow::itemClicked ( QtCanvasItem item)
privateslot

◆ itemMoved [1/2]

void MainWindow::itemMoved ( QtCanvasItem item)
privateslot

References currentItem, doubleManager, idToProperty, QtDoublePropertyManager::setValue(), QtCanvasItem::x(), QtCanvasItem::y(), and QtCanvasItem::z().

Referenced by MainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ itemMoved [2/2]

void MainWindow::itemMoved ( QtCanvasItem item)
privateslot

◆ newEllipse [1/2]

void MainWindow::newEllipse ( )
privateslot

References addEllipse(), canvas, itemClicked(), and QtCanvas::update().

Referenced by MainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ newEllipse [2/2]

void MainWindow::newEllipse ( )
privateslot

◆ newLine [1/2]

void MainWindow::newLine ( )
privateslot

References addLine(), canvas, itemClicked(), and QtCanvas::update().

Referenced by MainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ newLine [2/2]

void MainWindow::newLine ( )
privateslot

◆ newRectangle [1/2]

void MainWindow::newRectangle ( )
privateslot

References addRectangle(), canvas, itemClicked(), and QtCanvas::update().

Referenced by MainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ newRectangle [2/2]

void MainWindow::newRectangle ( )
privateslot

◆ newText [1/2]

void MainWindow::newText ( )
privateslot

References addText(), canvas, itemClicked(), and QtCanvas::update().

Referenced by MainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ newText [2/2]

void MainWindow::newText ( )
privateslot

◆ updateExpandState() [1/2]

void MainWindow::updateExpandState ( )
private

◆ updateExpandState() [2/2]

void MainWindow::updateExpandState ( )
private

References idToExpanded, QtTreePropertyBrowser::isExpanded(), QtBrowserItem::property(), propertyEditor, propertyToId, and QtAbstractPropertyBrowser::topLevelItems().

Referenced by itemClicked().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ valueChanged [1/7]

void MainWindow::valueChanged ( QtProperty property,
const QColor &  value 
)
privateslot

◆ valueChanged [2/7]

void MainWindow::valueChanged ( QtProperty property,
const QFont &  value 
)
privateslot

References canvas, currentItem, propertyToId, QtCanvasItem::rtti(), QtCanvasItem::Rtti_Text, QtCanvasText::setFont(), and QtCanvas::update().

+ Here is the call graph for this function:

◆ valueChanged [3/7]

void MainWindow::valueChanged ( QtProperty property,
const QPoint &  value 
)
privateslot

References canvas, currentItem, propertyToId, QtCanvasItem::rtti(), QtCanvasItem::Rtti_Line, QtCanvasLine::setPoints(), QtCanvasLine::startPoint(), and QtCanvas::update().

+ Here is the call graph for this function:

◆ valueChanged [4/7]

void MainWindow::valueChanged ( QtProperty property,
const QSize &  value 
)
privateslot

References canvas, currentItem, propertyToId, QtCanvasItem::rtti(), QtCanvasItem::Rtti_Ellipse, QtCanvasItem::Rtti_Rectangle, QtCanvasRectangle::setSize(), QtCanvasEllipse::setSize(), and QtCanvas::update().

+ Here is the call graph for this function:

◆ valueChanged [5/7]

void MainWindow::valueChanged ( QtProperty property,
const QString &  value 
)
privateslot

References canvas, currentItem, propertyToId, QtCanvasItem::rtti(), QtCanvasItem::Rtti_Text, QtCanvasText::setText(), and QtCanvas::update().

+ Here is the call graph for this function:

◆ valueChanged [6/7]

◆ valueChanged [7/7]

void MainWindow::valueChanged ( QtProperty property,
double  value 
)
privateslot

References canvas, currentItem, propertyToId, QtCanvasItem::setX(), QtCanvasItem::setY(), QtCanvasItem::setZ(), and QtCanvas::update().

Referenced by MainWindow().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ canvas

◆ canvasView

CanvasView * MainWindow::canvasView
private

Referenced by MainWindow().

◆ colorManager

class QtColorPropertyManager* MainWindow::colorManager
private

Referenced by itemClicked(), and MainWindow().

◆ currentItem

QtCanvasItem * MainWindow::currentItem
private

◆ deleteAction

QAction * MainWindow::deleteAction
private

Referenced by itemClicked(), and MainWindow().

◆ doubleManager

class QtDoublePropertyManager* MainWindow::doubleManager
private

Referenced by itemClicked(), itemMoved(), and MainWindow().

◆ fontManager

class QtFontPropertyManager* MainWindow::fontManager
private

Referenced by itemClicked(), and MainWindow().

◆ idToExpanded

QMap< QString, bool > MainWindow::idToExpanded
private

Referenced by addProperty(), and updateExpandState().

◆ idToProperty [1/2]

QMap<QString, QtVariantProperty*> MainWindow::idToProperty
private

◆ idToProperty [2/2]

QMap<QString, QtProperty*> MainWindow::idToProperty
private

Referenced by addProperty(), itemClicked(), and itemMoved().

◆ pointManager

class QtPointPropertyManager* MainWindow::pointManager
private

Referenced by itemClicked(), and MainWindow().

◆ propertyEditor

class QtTreePropertyBrowser * MainWindow::propertyEditor
private

◆ propertyToId

QMap< QtProperty *, QString > MainWindow::propertyToId
private

◆ sizeManager

class QtSizePropertyManager* MainWindow::sizeManager
private

Referenced by itemClicked(), and MainWindow().

◆ stringManager

class QtStringPropertyManager* MainWindow::stringManager
private

Referenced by itemClicked(), and MainWindow().

◆ variantManager

class QtVariantPropertyManager* MainWindow::variantManager
private

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