mainwindow.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the Qt Solutions component.
7 **
8 ** $QT_BEGIN_LICENSE:BSD$
9 ** You may use this file under the terms of the BSD license as follows:
10 **
11 ** "Redistribution and use in source and binary forms, with or without
12 ** modification, are permitted provided that the following conditions are
13 ** met:
14 ** * Redistributions of source code must retain the above copyright
15 ** notice, this list of conditions and the following disclaimer.
16 ** * Redistributions in binary form must reproduce the above copyright
17 ** notice, this list of conditions and the following disclaimer in
18 ** the documentation and/or other materials provided with the
19 ** distribution.
20 ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
21 ** of its contributors may be used to endorse or promote products derived
22 ** from this software without specific prior written permission.
23 **
24 **
25 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
26 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
27 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
28 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
29 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
30 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
31 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
36 **
37 ** $QT_END_LICENSE$
38 **
39 ****************************************************************************/
40 
41 #include "mainwindow.h"
42 #include "qtvariantproperty.h"
43 #include "qttreepropertybrowser.h"
44 #include <QMatrix>
45 #include <QMouseEvent>
46 #include <QMenuBar>
47 #include <QMenu>
48 #include <QAction>
49 #include <QDockWidget>
50 
51 void CanvasView::contentsMousePressEvent(QMouseEvent* event)
52 {
53  handleMouseClickEvent(event);
54 }
55 
56 void CanvasView::contentsMouseDoubleClickEvent(QMouseEvent* event)
57 {
58  handleMouseClickEvent(event);
59 }
60 
61 void CanvasView::handleMouseClickEvent(QMouseEvent* event)
62 {
63  QPoint p = inverseWorldMatrix().map(event->pos());
65  moving = 0;
66 
67  if (!l.isEmpty())
68  {
69  moving = l.first();
70  }
71 
72  moving_start = p;
73  emit itemClicked(moving);
74 }
75 
76 void CanvasView::contentsMouseMoveEvent(QMouseEvent* event)
77 {
78  if (moving)
79  {
80  QPoint p = inverseWorldMatrix().map(event->pos());
81  moving->moveBy(p.x() - moving_start.x(), p.y() - moving_start.y());
82  moving_start = p;
83  canvas()->update();
84  emit itemMoved(moving);
85  }
86 }
87 
88 
89 MainWindow::MainWindow(QWidget* parent)
90  : QMainWindow(parent)
91 {
92  QMenu* editMenu = menuBar()->addMenu(tr("Edit"));
93  QMenu* newObjectMenu = editMenu->addMenu(tr("New Object"));
94 
95  QAction* newRectangleAction = new QAction(tr("Rectangle"), this);
96  connect(newRectangleAction, SIGNAL(triggered(bool)), this, SLOT(newRectangle()));
97  newObjectMenu->addAction(newRectangleAction);
98 
99  QAction* newLineAction = new QAction(tr("Line"), this);
100  connect(newLineAction, SIGNAL(triggered(bool)), this, SLOT(newLine()));
101  newObjectMenu->addAction(newLineAction);
102 
103  QAction* newEllipseAction = new QAction(tr("Ellipse"), this);
104  connect(newEllipseAction, SIGNAL(triggered(bool)), this, SLOT(newEllipse()));
105  newObjectMenu->addAction(newEllipseAction);
106 
107  QAction* newTextAction = new QAction(tr("Text"), this);
108  connect(newTextAction, SIGNAL(triggered(bool)), this, SLOT(newText()));
109  newObjectMenu->addAction(newTextAction);
110 
111  deleteAction = new QAction(tr("Delete Object"), this);
112  connect(deleteAction, SIGNAL(triggered(bool)), this, SLOT(deleteObject()));
113  editMenu->addAction(deleteAction);
114 
115  QAction* clearAction = new QAction(tr("Clear All"), this);
116  connect(clearAction, SIGNAL(triggered(bool)), this, SLOT(clearAll()));
117  editMenu->addAction(clearAction);
118 
119  QAction* fillAction = new QAction(tr("Fill View"), this);
120  connect(fillAction, SIGNAL(triggered(bool)), this, SLOT(fillView()));
121  editMenu->addAction(fillAction);
122 
123  variantManager = new QtVariantPropertyManager(this);
124 
125  connect(variantManager, SIGNAL(valueChanged(QtProperty*, const QVariant&)),
126  this, SLOT(valueChanged(QtProperty*, const QVariant&)));
127 
128  QtVariantEditorFactory* variantFactory = new QtVariantEditorFactory(this);
129 
130  canvas = new QtCanvas(800, 600);
131  canvasView = new CanvasView(canvas, this);
132  setCentralWidget(canvasView);
133 
134  QDockWidget* dock = new QDockWidget(this);
135  addDockWidget(Qt::RightDockWidgetArea, dock);
136 
137  propertyEditor = new QtTreePropertyBrowser(dock);
138  propertyEditor->setFactoryForManager(variantManager, variantFactory);
139  dock->setWidget(propertyEditor);
140 
141  currentItem = 0;
142 
143  connect(canvasView, SIGNAL(itemClicked(QtCanvasItem*)),
144  this, SLOT(itemClicked(QtCanvasItem*)));
145  connect(canvasView, SIGNAL(itemMoved(QtCanvasItem*)),
146  this, SLOT(itemMoved(QtCanvasItem*)));
147 
148  fillView();
149  itemClicked(0);
150 }
151 
152 void MainWindow::newRectangle()
153 {
154  QtCanvasItem* item = addRectangle();
155  canvas->update();
156  itemClicked(item);
157 }
158 
159 void MainWindow::newEllipse()
160 {
161  QtCanvasItem* item = addEllipse();
162  canvas->update();
163  itemClicked(item);
164 }
165 
166 void MainWindow::newLine()
167 {
168  QtCanvasItem* item = addLine();
169  canvas->update();
170  itemClicked(item);
171 }
172 
173 void MainWindow::newText()
174 {
175  QtCanvasItem* item = addText();
176  canvas->update();
177  itemClicked(item);
178 }
179 
180 void MainWindow::deleteObject()
181 {
182  if (!currentItem)
183  {
184  return;
185  }
186 
187  delete currentItem;
188  itemClicked(0);
189  canvas->update();
190 }
191 
192 void MainWindow::clearAll()
193 {
194  QtCanvasItemList list = canvas->allItems();
195  qDeleteAll(list);
196  itemClicked(0);
197  canvas->update();
198 }
199 
200 void MainWindow::fillView()
201 {
202  for (int i = 0; i < 10; i++)
203  {
204  addRectangle();
205  addEllipse();
206  addLine();
207  addText();
208  }
209 
210  canvas->update();
211 }
212 
213 QtCanvasItem* MainWindow::addRectangle()
214 {
215  QtCanvasPolygonalItem* item = new QtCanvasRectangle(rand() % canvas->width(),
216  rand() % canvas->height(), 50, 50, canvas);
217  int z = rand() % 256;
218  item->setBrush(QColor(rand() % 32 * 8, rand() % 32 * 8, rand() % 32 * 8));
219  item->setPen(QPen(QColor(rand() % 32 * 8, rand() % 32 * 8, rand() % 32 * 8), 4));
220  item->setZ(z);
221  item->show();
222  return item;
223 }
224 
225 QtCanvasItem* MainWindow::addEllipse()
226 {
227  QtCanvasPolygonalItem* item = new QtCanvasEllipse(50, 50, canvas);
228  item->setBrush(QColor(rand() % 32 * 8, rand() % 32 * 8, rand() % 32 * 8));
229  item->move(rand() % canvas->width(), rand() % canvas->height());
230  item->setZ(rand() % 256);
231  item->show();
232  return item;
233 }
234 
235 QtCanvasItem* MainWindow::addLine()
236 {
237  QtCanvasLine* item = new QtCanvasLine(canvas);
238  item->setPoints(0, 0, rand() % canvas->width() - canvas->width() / 2,
239  rand() % canvas->height() - canvas->height() / 2);
240  item->move(rand() % canvas->width(), rand() % canvas->height());
241  item->setPen(QPen(QColor(rand() % 32 * 8, rand() % 32 * 8, rand() % 32 * 8), 6));
242  item->setZ(rand() % 256);
243  item->show();
244  return item;
245 }
246 
247 QtCanvasItem* MainWindow::addText()
248 {
249  QtCanvasText* item = new QtCanvasText(canvas);
250  item->setText(tr("Text"));
251  item->setColor(QColor(rand() % 32 * 8, rand() % 32 * 8, rand() % 32 * 8));
252  item->move(rand() % canvas->width(), rand() % canvas->height());
253  item->setZ(rand() % 256);
254  item->show();
255  return item;
256 }
257 
258 void MainWindow::itemMoved(QtCanvasItem* item)
259 {
260  if (item != currentItem)
261  {
262  return;
263  }
264 
265  variantManager->setValue(idToProperty[QLatin1String("xpos")], item->x());
266  variantManager->setValue(idToProperty[QLatin1String("ypos")], item->y());
267  variantManager->setValue(idToProperty[QLatin1String("zpos")], item->z());
268 }
269 
270 void MainWindow::updateExpandState()
271 {
272  QList<QtBrowserItem*> list = propertyEditor->topLevelItems();
273  QListIterator<QtBrowserItem*> it(list);
274 
275  while (it.hasNext())
276  {
277  QtBrowserItem* item = it.next();
278  QtProperty* prop = item->property();
279  idToExpanded[propertyToId[prop]] = propertyEditor->isExpanded(item);
280  }
281 }
282 
283 void MainWindow::itemClicked(QtCanvasItem* item)
284 {
285  updateExpandState();
286 
287  QMap<QtProperty*, QString>::ConstIterator itProp = propertyToId.constBegin();
288 
289  while (itProp != propertyToId.constEnd())
290  {
291  delete itProp.key();
292  itProp++;
293  }
294 
295  propertyToId.clear();
296  idToProperty.clear();
297 
298  currentItem = item;
299 
300  if (!currentItem)
301  {
302  deleteAction->setEnabled(false);
303  return;
304  }
305 
306  deleteAction->setEnabled(true);
307 
308  QtVariantProperty* property;
309 
310  property = variantManager->addProperty(QVariant::Double, tr("Position X"));
311  property->setAttribute(QLatin1String("minimum"), 0);
312  property->setAttribute(QLatin1String("maximum"), canvas->width());
313  property->setValue(item->x());
314  addProperty(property, QLatin1String("xpos"));
315 
316  property = variantManager->addProperty(QVariant::Double, tr("Position Y"));
317  property->setAttribute(QLatin1String("minimum"), 0);
318  property->setAttribute(QLatin1String("maximum"), canvas->height());
319  property->setValue(item->y());
320  addProperty(property, QLatin1String("ypos"));
321 
322  property = variantManager->addProperty(QVariant::Double, tr("Position Z"));
323  property->setAttribute(QLatin1String("minimum"), 0);
324  property->setAttribute(QLatin1String("maximum"), 256);
325  property->setValue(item->z());
326  addProperty(property, QLatin1String("zpos"));
327 
328  if (item->rtti() == QtCanvasItem::Rtti_Rectangle)
329  {
331 
332  property = variantManager->addProperty(QVariant::Color, tr("Brush Color"));
333  property->setValue(i->brush().color());
334  addProperty(property, QLatin1String("brush"));
335 
336  property = variantManager->addProperty(QVariant::Color, tr("Pen Color"));
337  property->setValue(i->pen().color());
338  addProperty(property, QLatin1String("pen"));
339 
340  property = variantManager->addProperty(QVariant::Size, tr("Size"));
341  property->setValue(i->size());
342  addProperty(property, QLatin1String("size"));
343  }
344  else if (item->rtti() == QtCanvasItem::Rtti_Line)
345  {
346  QtCanvasLine* i = (QtCanvasLine*)item;
347 
348  property = variantManager->addProperty(QVariant::Color, tr("Pen Color"));
349  property->setValue(i->pen().color());
350  addProperty(property, QLatin1String("pen"));
351 
352  property = variantManager->addProperty(QVariant::Point, tr("Vector"));
353  property->setValue(i->endPoint());
354  addProperty(property, QLatin1String("endpoint"));
355  }
356  else if (item->rtti() == QtCanvasItem::Rtti_Ellipse)
357  {
358  QtCanvasEllipse* i = (QtCanvasEllipse*)item;
359 
360  property = variantManager->addProperty(QVariant::Color, tr("Brush Color"));
361  property->setValue(i->brush().color());
362  addProperty(property, QLatin1String("brush"));
363 
364  property = variantManager->addProperty(QVariant::Size, tr("Size"));
365  property->setValue(QSize(i->width(), i->height()));
366  addProperty(property, QLatin1String("size"));
367  }
368  else if (item->rtti() == QtCanvasItem::Rtti_Text)
369  {
370  QtCanvasText* i = (QtCanvasText*)item;
371 
372  property = variantManager->addProperty(QVariant::Color, tr("Color"));
373  property->setValue(i->color());
374  addProperty(property, QLatin1String("color"));
375 
376  property = variantManager->addProperty(QVariant::String, tr("Text"));
377  property->setValue(i->text());
378  addProperty(property, QLatin1String("text"));
379 
380  property = variantManager->addProperty(QVariant::Font, tr("Font"));
381  property->setValue(i->font());
382  addProperty(property, QLatin1String("font"));
383  }
384 }
385 
386 void MainWindow::addProperty(QtVariantProperty* property, const QString& id)
387 {
388  propertyToId[property] = id;
389  idToProperty[id] = property;
390  QtBrowserItem* item = propertyEditor->addProperty(property);
391 
392  if (idToExpanded.contains(id))
393  {
394  propertyEditor->setExpanded(item, idToExpanded[id]);
395  }
396 }
397 
398 void MainWindow::valueChanged(QtProperty* property, const QVariant& value)
399 {
400  if (!propertyToId.contains(property))
401  {
402  return;
403  }
404 
405  if (!currentItem)
406  {
407  return;
408  }
409 
410  QString id = propertyToId[property];
411 
412  if (id == QLatin1String("xpos"))
413  {
414  currentItem->setX(value.toDouble());
415  }
416  else if (id == QLatin1String("ypos"))
417  {
418  currentItem->setY(value.toDouble());
419  }
420  else if (id == QLatin1String("zpos"))
421  {
422  currentItem->setZ(value.toDouble());
423  }
424  else if (id == QLatin1String("text"))
425  {
426  if (currentItem->rtti() == QtCanvasItem::Rtti_Text)
427  {
428  QtCanvasText* i = (QtCanvasText*)currentItem;
429  i->setText(value.value<QString>());
430  }
431  }
432  else if (id == QLatin1String("color"))
433  {
434  if (currentItem->rtti() == QtCanvasItem::Rtti_Text)
435  {
436  QtCanvasText* i = (QtCanvasText*)currentItem;
437  i->setColor(value.value<QColor>());
438  }
439  }
440  else if (id == QLatin1String("brush"))
441  {
442  if (currentItem->rtti() == QtCanvasItem::Rtti_Rectangle ||
443  currentItem->rtti() == QtCanvasItem::Rtti_Ellipse)
444  {
445  QtCanvasPolygonalItem* i = (QtCanvasPolygonalItem*)currentItem;
446  QBrush b = i->brush();
447  b.setColor(value.value<QColor>());
448  i->setBrush(b);
449  }
450  }
451  else if (id == QLatin1String("pen"))
452  {
453  if (currentItem->rtti() == QtCanvasItem::Rtti_Rectangle ||
454  currentItem->rtti() == QtCanvasItem::Rtti_Line)
455  {
456  QtCanvasPolygonalItem* i = (QtCanvasPolygonalItem*)currentItem;
457  QPen p = i->pen();
458  p.setColor(value.value<QColor>());
459  i->setPen(p);
460  }
461  }
462  else if (id == QLatin1String("font"))
463  {
464  if (currentItem->rtti() == QtCanvasItem::Rtti_Text)
465  {
466  QtCanvasText* i = (QtCanvasText*)currentItem;
467  i->setFont(value.value<QFont>());
468  }
469  }
470  else if (id == QLatin1String("endpoint"))
471  {
472  if (currentItem->rtti() == QtCanvasItem::Rtti_Line)
473  {
474  QtCanvasLine* i = (QtCanvasLine*)currentItem;
475  QPoint p = value.value<QPoint>();
476  i->setPoints(i->startPoint().x(), i->startPoint().y(), p.x(), p.y());
477  }
478  }
479  else if (id == QLatin1String("size"))
480  {
481  if (currentItem->rtti() == QtCanvasItem::Rtti_Rectangle)
482  {
483  QtCanvasRectangle* i = (QtCanvasRectangle*)currentItem;
484  QSize s = value.value<QSize>();
485  i->setSize(s.width(), s.height());
486  }
487  else if (currentItem->rtti() == QtCanvasItem::Rtti_Ellipse)
488  {
489  QtCanvasEllipse* i = (QtCanvasEllipse*)currentItem;
490  QSize s = value.value<QSize>();
491  i->setSize(s.width(), s.height());
492  }
493  }
494 
495  canvas->update();
496 }
497 
QtVariantPropertyManager::addProperty
virtual QtVariantProperty * addProperty(int propertyType, const QString &name=QString())
Definition: qtvariantproperty.cpp:1403
CanvasView::contentsMouseDoubleClickEvent
void contentsMouseDoubleClickEvent(QMouseEvent *event)
Definition: mainwindow.cpp:57
QtCanvasLine
Definition: qtcanvas.h:761
QtAbstractPropertyBrowser::addProperty
QtBrowserItem * addProperty(QtProperty *property)
Definition: qtpropertybrowser.cpp:1969
QtCanvasPolygonalItem::brush
QBrush brush() const
Definition: qtcanvas.h:637
QtCanvas::update
virtual void update()
Definition: qtcanvas.cpp:1091
QtCanvasText::setFont
void setFont(const QFont &)
Definition: qtcanvas.cpp:5140
QtTreePropertyBrowser
The QtTreePropertyBrowser class provides QTreeWidget based property browser.
Definition: qttreepropertybrowser.h:51
QtCanvasItem::x
double x() const
Definition: qtcanvas.h:73
QtCanvasEllipse::width
int width() const
Definition: qtcanvas.cpp:4901
list
list(APPEND SOURCES ${QT_RESOURCES}) set(COMPONENT_LIBS ArmarXGui ArmarXCoreObservers ArmarXCoreEigen3Variants PlotterController $
Definition: CMakeLists.txt:49
CanvasView::itemClicked
void itemClicked(QtCanvasItem *item)
QtCanvasItem::moveBy
virtual void moveBy(double dx, double dy)
Definition: qtcanvas.cpp:1918
QtCanvasLine::setPoints
void setPoints(int x1, int y1, int x2, int y2)
Definition: qtcanvas.cpp:4590
CanvasView::itemMoved
void itemMoved(QtCanvasItem *item)
MainWindow::MainWindow
MainWindow(QWidget *parent=0)
Definition: mainwindow.cpp:90
QtCanvasText::setColor
void setColor(const QColor &)
Definition: qtcanvas.cpp:5166
QtCanvasItem::setX
void setX(double a)
Definition: qtcanvas.h:88
QtCanvasText::text
QString text() const
Definition: qtcanvas.cpp:5103
QtCanvas::width
int width() const
Definition: qtcanvas.h:276
QtBrowserItem
The QtBrowserItem class represents a property in a property browser instance.
Definition: qtpropertybrowser.h:273
QtVariantPropertyManager
The QtVariantPropertyManager class provides and manages QVariant based properties.
Definition: qtvariantproperty.h:75
QtCanvasItem::Rtti_Text
@ Rtti_Text
Definition: qtcanvas.h:170
QtCanvasItem::setZ
void setZ(double a)
Definition: qtcanvas.h:96
QtProperty
The QtProperty class encapsulates an instance of a property.
Definition: qtpropertybrowser.h:71
QtCanvas::collisions
QtCanvasItemList collisions(const QPoint &) const
Definition: qtcanvas.cpp:2627
QtCanvasRectangle::setSize
void setSize(int w, int h)
Definition: qtcanvas.cpp:4758
QtCanvasRectangle::size
QSize size() const
Definition: qtcanvas.h:691
QtVariantPropertyManager::setValue
virtual void setValue(QtProperty *property, const QVariant &val)
Definition: qtvariantproperty.cpp:1876
QtCanvasItem::Rtti_Ellipse
@ Rtti_Ellipse
Definition: qtcanvas.h:173
armarx::VariantType::Double
const VariantTypeId Double
Definition: Variant.h:919
QtVariantProperty
The QtVariantProperty class is a convenience class handling QVariant based properties.
Definition: qtvariantproperty.h:55
QtCanvas::height
int height() const
Definition: qtcanvas.h:280
QtCanvasPolygonalItem
Definition: qtcanvas.h:622
QtCanvas::allItems
QtCanvasItemList allItems()
Definition: qtcanvas.cpp:684
Color
uint32_t Color
RGBA color.
Definition: color.h:8
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
QtCanvasText::color
QColor color() const
Definition: qtcanvas.cpp:5156
QtCanvasPolygonalItem::setPen
virtual void setPen(QPen p)
Definition: qtcanvas.cpp:4272
QtCanvasItem::Rtti_Rectangle
@ Rtti_Rectangle
Definition: qtcanvas.h:172
QtCanvasRectangle
Definition: qtcanvas.h:679
QtCanvasItem
Definition: qtcanvas.h:67
qtvariantproperty.h
mainwindow.h
QtCanvasItem::y
double y() const
Definition: qtcanvas.h:77
visionx::Point
Eigen::Vector3f Point
Definition: ObjectShapeClassification.h:69
QtCanvasEllipse::setSize
void setSize(int w, int h)
Definition: qtcanvas.cpp:4917
CanvasView::contentsMousePressEvent
void contentsMousePressEvent(QMouseEvent *event)
Definition: mainwindow.cpp:52
QtCanvasView::inverseWorldMatrix
const QMatrix & inverseWorldMatrix() const
Definition: qtcanvas.cpp:3735
QtCanvasText::setText
void setText(const QString &)
Definition: qtcanvas.cpp:5114
QtCanvasItem::show
void show()
Definition: qtcanvas.cpp:2093
QtVariantEditorFactory
The QtVariantEditorFactory class provides widgets for properties created by QtVariantPropertyManager ...
Definition: qtvariantproperty.h:162
QtVariantProperty::setValue
void setValue(const QVariant &value)
Definition: qtvariantproperty.cpp:272
CanvasView
Definition: mainwindow.h:49
QtCanvasPolygonalItem::pen
QPen pen() const
Definition: qtcanvas.h:633
QtCanvasItemList
QList< QtCanvasItem * > QtCanvasItemList
Definition: qtcanvas.h:62
CanvasView::contentsMouseMoveEvent
void contentsMouseMoveEvent(QMouseEvent *event)
Definition: mainwindow.cpp:77
QtBrowserItem::property
QtProperty * property() const
Definition: qtpropertybrowser.cpp:1221
QtCanvasItem::rtti
virtual int rtti() const
Definition: qtcanvas.cpp:5292
QtCanvas
Definition: qtcanvas.h:233
QtAbstractPropertyBrowser::topLevelItems
QList< QtBrowserItem * > topLevelItems() const
Definition: qtpropertybrowser.cpp:1933
QtCanvasItem::z
double z() const
Definition: qtcanvas.h:81
QtCanvasText::font
QFont font() const
Definition: qtcanvas.cpp:5130
QtCanvasLine::startPoint
QPoint startPoint() const
Definition: qtcanvas.h:768
QtCanvasPolygonalItem::setBrush
virtual void setBrush(QBrush b)
Definition: qtcanvas.cpp:4287
QtCanvasLine::endPoint
QPoint endPoint() const
Definition: qtcanvas.h:772
QtTreePropertyBrowser::isExpanded
bool isExpanded(QtBrowserItem *item) const
Definition: qttreepropertybrowser.cpp:1142
qttreepropertybrowser.h
QtCanvasItem::Rtti_Line
@ Rtti_Line
Definition: qtcanvas.h:174
cxxopts::String
std::string String
Definition: cxxopts.hpp:209
QtCanvasLine::setPen
void setPen(QPen p)
Definition: qtcanvas.cpp:4565
QtCanvasEllipse
Definition: qtcanvas.h:792
QtCanvasView::canvas
QtCanvas * canvas() const
Definition: qtcanvas.h:411
QtCanvasEllipse::height
int height() const
Definition: qtcanvas.cpp:4909
QtVariantProperty::setAttribute
void setAttribute(const QString &attribute, const QVariant &value)
Definition: qtvariantproperty.cpp:286
QtCanvasText
Definition: qtcanvas.h:838
QtCanvasItem::move
void move(double x, double y)
Definition: qtcanvas.cpp:1933
QtAbstractPropertyBrowser::setFactoryForManager
void setFactoryForManager(PropertyManager *manager, QtAbstractEditorFactory< PropertyManager > *factory)
Definition: qtpropertybrowser.h:304
QtTreePropertyBrowser::setExpanded
void setExpanded(QtBrowserItem *item, bool expanded)
Definition: qttreepropertybrowser.cpp:1126
armarx::ctrlutil::s
double s(double t, double s0, double v0, double a0, double j)
Definition: CtrlUtil.h:33
QtCanvasItem::setY
void setY(double a)
Definition: qtcanvas.h:92