window.cpp
Go to the documentation of this file.
00001 /****************************************************************************
00002 * VCGLib                                                            o o     *
00003 * Visual and Computer Graphics Library                            o     o   *
00004 *                                                                _   O  _   *
00005 * Copyright(C) 2004                                                \/)\/    *
00006 * Visual Computing Lab                                            /\/|      *
00007 * ISTI - Italian National Research Council                           |      *
00008 *                                                                    \      *
00009 * All rights reserved.                                                      *
00010 *                                                                           *
00011 * This program is free software; you can redistribute it and/or modify      *   
00012 * it under the terms of the GNU General Public License as published by      *
00013 * the Free Software Foundation; either version 2 of the License, or         *
00014 * (at your option) any later version.                                       *
00015 *                                                                           *
00016 * This program is distributed in the hope that it will be useful,           *
00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
00019 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)          *
00020 * for more details.                                                         *
00021 *                                                                           *
00022 ****************************************************************************/
00023 /****************************************************************************
00024   History
00025 
00026 $Log: not supported by cvs2svn $
00027 Revision 1.2  2006/12/10 22:17:18  ganovelli
00028 cvs problem during frist committ. repeated
00029 
00030 */
00031 #include <QtGui>
00032 
00033 #include "glwidget.h"
00034 #include "window.h"
00035 #include "mesh_type.h"
00036 
00037 
00038 Window::Window()
00039 {
00040     glWidget = new GLWidget;
00041 
00042                 fvButton = createButton("FlipV()",SLOT(flipV( )));
00043                 feButton = createButton("FlipE()",SLOT(flipE( )));
00044                 ffButton = createButton("FlipF()",SLOT(flipF( )));
00045                 neButton = createButton("NextE() {FlipE() + FlipF() }",SLOT(nextE( )));
00046                 nbButton = createButton("NextB() ",SLOT(nextB( )));
00047                 ldButton = createButton("Load TriMesh",SLOT(OpenFile( )));
00048                 vfButton = createButton("++()",SLOT(nextVfite()));
00049 
00050     QVBoxLayout *mainLayout = new QVBoxLayout;
00051     mainLayout->addWidget(glWidget);
00052     mainLayout->addWidget(fvButton);
00053     mainLayout->addWidget(feButton);
00054     mainLayout->addWidget(ffButton);
00055     mainLayout->addWidget(neButton);
00056     mainLayout->addWidget(nbButton);
00057     mainLayout->addWidget(vfButton);
00058     mainLayout->addWidget(ldButton);
00059     setLayout(mainLayout);
00060 
00061                 glWidget->glWrap.m = &glWidget->mesh; 
00062 
00063     setWindowTitle(tr("TriMesh Pos Demo"));
00064 }
00065 
00066 
00067 QPushButton *Window::createButton(const char *text, const char *setterSlot)
00068 {
00069     QPushButton *button = new QPushButton( text,0);
00070                 button-> resize ( 50, 20 );
00071 
00072     if(!connect(button, SIGNAL(clicked()), glWidget, setterSlot))
00073                         exit(0);
00074     return button;
00075 }


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:38:47