Beispiel #1
0
PCLVisualizer::PCLVisualizer(QWidget *parent, Qt::WFlags flags)
	: QMainWindow(parent, flags)
{
	ui.setupUi(this);

	//信号槽连接
	connect(ui.OpenFile,SIGNAL(triggered()),this,SLOT(fileOpenSlot()));
	connect(ui.Exit,SIGNAL(triggered()),this,SLOT(ExitSlot()));
	connect(ui.OpenProjectManage, SIGNAL(triggered()), this, SLOT(OpenProjectManageSlot()));
	
	mPclViewer.reset(new pcl::visualization::PCLVisualizer ("viewer", false));	
	ui.qvtkWidget->update();
}
Beispiel #2
0
void MainWindow::SetConnects()
{
	connect( actionNew_File, SIGNAL(triggered()), this, SLOT(NewFileSlot()) );
	connect( actionOpen_File, SIGNAL(triggered()), this, SLOT(OpenFileSlot()) );
	connect( actionRecent_Files, SIGNAL(triggered()), this, SLOT(OpenFileSlot()) );
	connect( actionSave, SIGNAL(triggered()), this, SLOT(SaveSlot()) );
	connect( actionSave_As, SIGNAL(triggered()), this, SLOT(SaveAsSlot()) );
	connect( actionExit, SIGNAL(triggered()), this, SLOT(ExitSlot()) );
	connect( actionUndo, SIGNAL(triggered()), this, SLOT(UndoSlot()) );
	connect( actionRecover, SIGNAL(triggered()), this, SLOT(RecoverSlot()) );
	connect( actionCut, SIGNAL(triggered()), this, SLOT(CutSlot()) );
	connect( actionCopy, SIGNAL(triggered()), this, SLOT(CopySlot()) );
	connect( actionPast, SIGNAL(triggered()), this, SLOT(PastSlot()) );
	connect( actionClose, SIGNAL(triggered()), this, SLOT(CloseSlot()) );
	connect( actionClose_All_Windows, SIGNAL(triggered()), this, SLOT(CloseAllWindowSlot()) );
	//connect( actionTile, SIGNAL(triggered()), this, SLOT(TileWidowsSlot()) );
	//connect( actionStack, SIGNAL(triggered()), this, SLOT(StackUpWindowsSlot()) );
	connect( actionNext_Window, SIGNAL(triggered()), this, SLOT(NextWindowSlot()) );
	connect( actionPrevious_Window, SIGNAL(triggered()), this, SLOT(PreviousWindowsSlot()) );
	connect( actionAbout, SIGNAL(triggered()), this, SLOT(AboutSlot()) );
	connect( actionAbout_Qt, SIGNAL(triggered()), this, SLOT(AboutQtSlot()) );
	
}