#include "mainwindow.h"
#include "registrazione.h"
#include <QtGui>
#include <vtkSmartPointer.h>
#include <vtkSphereSource.h>
#include <vtkPolyDataMapper.h>
#include <vtkActor.h>
#include <vtkImageViewer.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkInteractorStyleImage.h>
#include <vtkRenderer.h>
#include <vtkJPEGReader.h>
#include <QCheckBox>
#include <QVTKWidget.h>
#include "MyTabWidget.h"
using namespace std;
int main(int argc, char *argv[]){
MainWindow w;
Dati->setFixedHeight(20);
Dati->setFixedWidth(150);
Registrazione->setFixedHeight(20);
Registrazione->setFixedWidth(150);
Registrazione->setEnabled(false);
Seleziona->setEnabled(false);
Seleziona->setFixedHeight(20);
Seleziona->setFixedWidth(150);
impS->setFixedHeight(20);
impS->setFixedWidth(150);
impT->setFixedHeight(20);
impT->setFixedWidth(150);
Carica->setFixedHeight(20);
Carica->setFixedWidth(150);
Controlla->setFixedHeight(20);
Controlla->setFixedWidth(150);
Controlla->setEnabled(false);
QLabel *l0
= new QLabel("Posizione della point cloud da controllare");
QLabel *l1
= new QLabel("Posizione della point cloud sorgente");
QLabel *l2
= new QLabel("Posizione della point cloud destinazione");
interazioni->setFixedWidth(150);
testo0->verticalScrollBar()->setVisible(false);
testo0->setFixedHeight(20);
testo0->setFixedWidth(300);
testo0->setEnabled(false);
testo1->verticalScrollBar()->setVisible(false);
testo1->setFixedHeight(20);
testo1->setFixedWidth(300);
testo1->setEnabled(false);
testo2->setFixedHeight(20);
testo2->setFixedWidth(300);
testo2->setEnabled(false);
testo2->verticalScrollBar()->setVisible(false);
QVTKWidget *widget0 = new QVTKWidget;
widget0->setVisible(false);
QVTKWidget *widget = new QVTKWidget;
widget->setVisible(false);
ly0->addWidget(l0);
ly0->addWidget(testo0);
ly0->addWidget(Carica);
ly0->addWidget(Controlla);
ly1->addWidget(l1);
ly1->addWidget(l2);
ly2->addWidget(testo1);
ly2->addWidget(impS);
ly2->addWidget(testo2);
ly2->addWidget(impT);
ly3->addWidget(interazioni);
ly3->addWidget(Registrazione);
ly3->addWidget(Seleziona);
layout0->addLayout(ly0);
layout0->addWidget(widget0);
layout->addWidget(Dati);
layout->addLayout(ly1); layout->addLayout(ly2); layout->addLayout(ly3);
layout->addWidget(widget);
window0->setLayout(layout0);
window0->setGeometry(1000,0,1200,800);
window->setVisible(false);
window0->show();
window->setLayout(layout);
window->setGeometry(1000,0,1200,800);
window->setVisible(false);
window->show();
centralWidget->setFixedSize(1200,200);
MyTabWidget *tabs = new MyTabWidget(centralWidget);
tabs->setDocumentMode(false);
tabs->setFixedSize(1200, 800);
tabs->addTab(window0,"Controllo");
tabs->addTab(window,"Registrazione");
tabs->setTabsClosable(false);
tabs->update();
QObject::connect(tabs,
SIGNAL(currentChanged
(int)),tabs,
SLOT(prova
(int)));
w.setCentralWidget(centralWidget);
w.setGeometry(1000,0,1200,800);
w.setWindowTitle("Progetto di Elaborazione tridimensionale");
w.show();
w.setVisualizer(testo0, Carica,Controlla, widget0);
w.setVisualizer(Dati, Registrazione,testo1,testo2,widget,impS,impT,Seleziona);//, Plan, Radious);
return a.exec();
}
#include "mainwindow.h"
#include "registrazione.h"
#include <QtGui>
#include <vtkSmartPointer.h>
#include <vtkSphereSource.h>
#include <vtkPolyDataMapper.h>
#include <vtkActor.h>
#include <vtkImageViewer.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkInteractorStyleImage.h>
#include <vtkRenderer.h>
#include <vtkJPEGReader.h>
#include <QCheckBox>
#include <QVTKWidget.h>
#include "MyTabWidget.h"
using namespace std;
int main(int argc, char *argv[]){
QApplication a(argc, argv);
MainWindow w;
QPushButton *Dati = new QPushButton("Inserisci dati");
Dati->setFixedHeight(20);
Dati->setFixedWidth(150);
QPushButton *Registrazione = new QPushButton("Avvia registrazione");
Registrazione->setFixedHeight(20);
Registrazione->setFixedWidth(150);
Registrazione->setEnabled(false);
QPushButton *Seleziona = new QPushButton("Point Pick");
Seleziona->setEnabled(false);
Seleziona->setFixedHeight(20);
Seleziona->setFixedWidth(150);
QPushButton *impS = new QPushButton("Cambia source");
impS->setFixedHeight(20);
impS->setFixedWidth(150);
QPushButton *impT = new QPushButton("Cambia target");
impT->setFixedHeight(20);
impT->setFixedWidth(150);
QPushButton *Carica = new QPushButton("Carica PCD");
Carica->setFixedHeight(20);
Carica->setFixedWidth(150);
QPushButton *Controlla = new QPushButton("Controlla");
Controlla->setFixedHeight(20);
Controlla->setFixedWidth(150);
Controlla->setEnabled(false);
QLabel *l0 = new QLabel("Posizione della point cloud da controllare");
QLabel *l1 = new QLabel("Posizione della point cloud sorgente");
QLabel *l2 = new QLabel("Posizione della point cloud destinazione");
QLabel *interazioni = new QLabel("Interazioni: ");
interazioni->setFixedWidth(150);
QTextEdit *testo0 = new QTextEdit("");
testo0->verticalScrollBar()->setVisible(false);
testo0->setFixedHeight(20);
testo0->setFixedWidth(300);
testo0->setEnabled(false);
QTextEdit *testo1 = new QTextEdit("");
testo1->verticalScrollBar()->setVisible(false);
testo1->setFixedHeight(20);
testo1->setFixedWidth(300);
testo1->setEnabled(false);
QTextEdit *testo2 = new QTextEdit("");
testo2->setFixedHeight(20);
testo2->setFixedWidth(300);
testo2->setEnabled(false);
testo2->verticalScrollBar()->setVisible(false);
QVTKWidget *widget0 = new QVTKWidget;
widget0->setVisible(false);
QVTKWidget *widget = new QVTKWidget;
widget->setVisible(false);
QWidget *window0 = new QWidget();
QWidget *window = new QWidget();
QHBoxLayout *ly0 = new QHBoxLayout();
ly0->addWidget(l0);
ly0->addWidget(testo0);
ly0->addWidget(Carica);
ly0->addWidget(Controlla);
QHBoxLayout *ly1 = new QHBoxLayout();
ly1->addWidget(l1);
ly1->addWidget(l2);
QHBoxLayout *ly2 = new QHBoxLayout();
ly2->addWidget(testo1);
ly2->addWidget(impS);
ly2->addWidget(testo2);
ly2->addWidget(impT);
QHBoxLayout *ly3 = new QHBoxLayout();
ly3->addWidget(interazioni);
ly3->addWidget(Registrazione);
ly3->addWidget(Seleziona);
QVBoxLayout *layout0 = new QVBoxLayout();
layout0->addLayout(ly0);
layout0->addWidget(widget0);
QVBoxLayout *layout = new QVBoxLayout();
layout->addWidget(Dati);
layout->addLayout(ly1); layout->addLayout(ly2); layout->addLayout(ly3);
layout->addWidget(widget);
window0->setLayout(layout0);
window0->setGeometry(1000,0,1200,800);
window->setVisible(false);
window0->show();
window->setLayout(layout);
window->setGeometry(1000,0,1200,800);
window->setVisible(false);
window->show();
QWidget *centralWidget = new QWidget(&w);
centralWidget->setFixedSize(1200,200);
MyTabWidget *tabs = new MyTabWidget(centralWidget);
tabs->setDocumentMode(false);
tabs->setFixedSize(1200, 800);
tabs->addTab(window0,"Controllo");
tabs->addTab(window,"Registrazione");
tabs->setTabsClosable(false);
tabs->update();
QObject::connect(tabs,SIGNAL(currentChanged(int)),tabs,SLOT(prova(int)));
w.setCentralWidget(centralWidget);
w.setGeometry(1000,0,1200,800);
w.setWindowTitle("Progetto di Elaborazione tridimensionale");
w.show();
w.setVisualizer(testo0, Carica,Controlla, widget0);
w.setVisualizer(Dati, Registrazione,testo1,testo2,widget,impS,impT,Seleziona);//, Plan, Radious);
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks