Documentation


DeformableOctreeQt.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           monwidgetbidon.h  -  description
00003                              -------------------
00004     begin                : Thu Jan 8 2004
00005     copyright            : (C) 2004 by Mathieu Coquerelle
00006     email                : coquerel@inrialpes.fr
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
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  ***************************************************************************/
00017 
00018 #ifndef DeformableOctreeQt_H
00019 #define DeformableOctreeQt_H
00020 
00021 #include <qwidget.h>
00022 #include "DeformableOctreeDesigner.h"
00023 #include "DeformableOctreeNode.h"
00024 //#include <animal/X3DTK/Qt/mainControllerGUI/MainController.h>
00025 
00026 //#include <octreeview.h>
00027 
00031 namespace X3DTK
00032 {
00033   namespace Qt
00034   {
00035 
00036     class DeformableOctreeQt : public DeformableOctreeDesigner
00037     {
00038       Q_OBJECT
00039 
00040     public:
00041       DeformableOctreeQt( X3D::DeformableOctreeNode * DON );
00042       ~DeformableOctreeQt();
00043 
00044     public slots:
00045       void slotSubdivide();
00046       void slotSimplify();
00047 
00048       void slotMoveXPlus();
00049       void slotMoveXMinus();
00050       void slotMoveYPlus();
00051       void slotMoveYMinus();
00052       void slotMoveZPlus();
00053       void slotMoveZMinus();
00054 
00055       // Octree Navigation
00056       void slotCycleCell();
00057       void slotCyclePoint();
00058       void slotGoFather();
00059       void slotGoChild();
00060 
00061       // Options
00062       void slotSetDrawEmptyCells(bool);
00063       void slotSetDrawOctree(bool);
00064       void slotSetDrawSelection(bool);
00065       void slotSetDrawSelectedCellsPoints(bool);
00066       void slotSetDrawFrames(bool);
00067       void slotSetDrawNeighbours(bool);
00068 
00069       void slotSetNMaxPointsPerCell( int n );
00070       unsigned int getOptionNMaxPointsPerCell( );
00071 
00072       void slotSetInterpolationMethod( int index );
00073 
00074       void slotChangeToolsSize( int size );
00075 
00076       void slotButtonTest();
00077 
00078       void slotDirectManipulation();
00079 
00080     private:
00081       X3D::DeformableOctreeNode * _node;
00082       void initButtons();
00083 
00084     signals:
00085       void changed();
00086     };
00087 
00088     QWidget * createDeformableOctreeQWidget(X3D::DeformableOctreeNode * node, QWidget * parent );
00089 
00090   }
00091 }
00092 
00093 #endif
00094 

Generated on Thu Dec 23 13:52:24 2004 by doxygen 1.3.6