rock_widget_collection
0.1
build
rock-master-18.09-gui-rock-widget-collection-0.20180124
src
image_view_old
main.cc
Go to the documentation of this file.
1
/*
2
* File: main.cc
3
* Author: blueck
4
*
5
* Created on 17. Juni 2010, 13:29
6
*/
7
8
#include <cstdlib>
9
#include "QtGui/qapplication.h"
10
#include "
ImageViewOldGL.h
"
11
#include "
PolygonItem.h
"
12
#include "
ArrowItem.h
"
13
#include <QtGui/QImage>
14
#include <QtGui/QMainWindow>
15
#include <iostream>
16
#include <QtGui/QScrollArea>
17
#include <QtGui/QColor>
18
#include <QtCore/QPoint>
19
20
using namespace
std
;
21
22
/*
23
*
24
*/
25
//int main(int argc, char** argv)
26
//{
28
// QImage* image = new QImage("/home/blueck/pics/test.jpg");
29
// ImageViewWidget* widget = new ImageViewWidget(image->width(), image->height());
30
// QMainWindow* mainwindow = new QMainWindow();
31
// mainwindow->setFixedSize(640, 480);
32
// QScrollArea* area = new QScrollArea();
33
// area->setWidget(widget);
34
// mainwindow->setCentralWidget(area);
36
// mainwindow->show();
37
// QPoint* points = new QPoint[3];
38
// points[0] = QPoint(10, 10);
39
// points[1] = QPoint(10, 100);
40
// points[2] = QPoint(20, 50);
41
// ArrowItem* arrowItem = new ArrowItem(10, 20, 0, QColor(255, 0, 0), 10, 120);
42
// arrowItem->setInteriorColor(new QColor(255, 0, 0));
43
// arrowItem->setLineWidth(2);
44
// // PolygonItem* polygonItem = new PolygonItem(QColor(255, 0, 0), 0, points, 3);
47
// widget->addItem(arrowItem);
48
//
54
//
61
// std::cout << "Remove" << std::endl;
64
// widget->repaint();
85
// app->exec();*/
86
// return 0;
87
//}
88
//
std
PolygonItem.h
ArrowItem.h
ImageViewOldGL.h
Generated by
1.8.13