[MOAB-dev] r1458 - MOAB/trunk/tools/qvdual

tautges at mcs.anl.gov tautges at mcs.anl.gov
Fri Dec 7 17:18:45 CST 2007


Author: tautges
Date: 2007-12-07 17:18:45 -0600 (Fri, 07 Dec 2007)
New Revision: 1458

Removed:
   MOAB/trunk/tools/qvdual/moc_uiQVDual.cpp
   MOAB/trunk/tools/qvdual/uiQVDual.h
   MOAB/trunk/tools/qvdual/uiQVDual.ui
Modified:
   MOAB/trunk/tools/qvdual/DrawDual.cpp
   MOAB/trunk/tools/qvdual/DrawDual.hpp
   MOAB/trunk/tools/qvdual/uiQVDual.ui.h
Log:
Deleting generated files.

Implemented printing of sheet diagrams to files.


Modified: MOAB/trunk/tools/qvdual/DrawDual.cpp
===================================================================
--- MOAB/trunk/tools/qvdual/DrawDual.cpp	2007-12-07 22:52:26 UTC (rev 1457)
+++ MOAB/trunk/tools/qvdual/DrawDual.cpp	2007-12-07 23:18:45 UTC (rev 1458)
@@ -41,6 +41,8 @@
 #include "qlineedit.h"
 #include "vtkFloatArray.h"
 #include "vtkMaskFields.h"
+#include "vtkWindowToImageFilter.h"
+#include "vtkPNGWriter.h"
 #include "assert.h"
 #include <sstream>
 
@@ -432,6 +434,59 @@
   return *rit;
 }
 
+bool DrawDual::print_dual_surfs(MBRange &dual_surfs,
+                                const bool /*use_offsets*/) 
+{
+  MBErrorCode success = MB_SUCCESS;
+  int offset = 0;
+
+      // create vtkWindowToImageFilter
+  vtkWindowToImageFilter *wtif = vtkWindowToImageFilter::New();
+
+      // create vtkPNGWriter
+  vtkPNGWriter *pngw = vtkPNGWriter::New();
+  
+      // set vtkPNGWriter input to output port of vtkWindowToImageFilter
+  pngw->SetInput(wtif->GetOutput());
+
+  char filename[15];
+  std::vector<int> surf_ids(dual_surfs.size());
+  success = vtkMOABUtils::MBI->tag_get_data(vtkMOABUtils::globalId_tag(), 
+                                            dual_surfs, &surf_ids[0]);
+  if (MB_SUCCESS != success) return success;
+  MBRange::iterator rit;
+  int i;
+  
+  for (rit = dual_surfs.begin(), i = 0; 
+       rit != dual_surfs.end(); rit++, i++) {
+
+    GraphWindows &this_gw = surfDrawrings[*rit];
+
+    MBEntityHandle dum_handle = 0;
+    MBErrorCode tmp_success = MBI->tag_get_data(dualSurfaceTagHandle, &(*rit), 1, 
+                                           &dum_handle);
+    if (MB_TAG_NOT_FOUND == tmp_success || dum_handle == 0) continue;
+  
+    tmp_success = draw_dual_surf(*rit, offset);
+    if (MB_SUCCESS != tmp_success) success = tmp_success;
+      // if (use_offsets) offset++;
+
+      // set vtkWindowToImageFilter input to render window
+    wtif->SetInput(this_gw.sheetDiagram->sheet_diagram()->GetRenderWindow());
+    wtif->Update();
+
+      // set file name
+    sprintf(filename, "s%d.png", surf_ids[i]);
+    pngw->SetFileName(filename);
+    
+      // call Write function on png writer
+    this_gw.sheetDiagram->sheet_diagram()->GetRenderWindow()->Render();
+    pngw->Write();
+  }
+  
+  return (MB_SUCCESS == success ? true : false);
+}
+
 bool DrawDual::draw_dual_surfs(MBRange &dual_surfs,
                                const bool /*use_offsets*/) 
 {

Modified: MOAB/trunk/tools/qvdual/DrawDual.hpp
===================================================================
--- MOAB/trunk/tools/qvdual/DrawDual.hpp	2007-12-07 22:52:26 UTC (rev 1457)
+++ MOAB/trunk/tools/qvdual/DrawDual.hpp	2007-12-07 23:18:45 UTC (rev 1458)
@@ -33,6 +33,8 @@
 
   bool draw_dual_surfs(MBRange &dual_surfs,
                        const bool use_offsets = false);
+  bool print_dual_surfs(MBRange &dual_surfs,
+                        const bool use_offsets = false);
   bool draw_dual_surfs(std::vector<MBEntityHandle> &dual_surfs,
                        const bool use_offsets = false);
   MBErrorCode draw_dual_surf(MBEntityHandle dual_surf,

Deleted: MOAB/trunk/tools/qvdual/moc_uiQVDual.cpp
===================================================================
--- MOAB/trunk/tools/qvdual/moc_uiQVDual.cpp	2007-12-07 22:52:26 UTC (rev 1457)
+++ MOAB/trunk/tools/qvdual/moc_uiQVDual.cpp	2007-12-07 23:18:45 UTC (rev 1458)
@@ -1,231 +0,0 @@
-/****************************************************************************
-** uiQVDual meta object code from reading C++ file 'uiQVDual.h'
-**
-** Created: Mon Sep 10 16:49:21 2007
-**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.3.7   edited Oct 19 16:22 $)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#undef QT_NO_COMPAT
-#include "uiQVDual.h"
-#include <qmetaobject.h>
-#include <qapplication.h>
-
-#include <private/qucomextra_p.h>
-#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
-#error "This file was generated using the moc from 3.3.7. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-const char *uiQVDual::className() const
-{
-    return "uiQVDual";
-}
-
-QMetaObject *uiQVDual::metaObj = 0;
-static QMetaObjectCleanUp cleanUp_uiQVDual( "uiQVDual", &uiQVDual::staticMetaObject );
-
-#ifndef QT_NO_TRANSLATION
-QString uiQVDual::tr( const char *s, const char *c )
-{
-    if ( qApp )
-	return qApp->translate( "uiQVDual", s, c, QApplication::DefaultCodec );
-    else
-	return QString::fromLatin1( s );
-}
-#ifndef QT_NO_TRANSLATION_UTF8
-QString uiQVDual::trUtf8( const char *s, const char *c )
-{
-    if ( qApp )
-	return qApp->translate( "uiQVDual", s, c, QApplication::UnicodeUTF8 );
-    else
-	return QString::fromUtf8( s );
-}
-#endif // QT_NO_TRANSLATION_UTF8
-
-#endif // QT_NO_TRANSLATION
-
-QMetaObject* uiQVDual::staticMetaObject()
-{
-    if ( metaObj )
-	return metaObj;
-    QMetaObject* parentObject = QMainWindow::staticMetaObject();
-    static const QUMethod slot_0 = {"fileNew", 0, 0 };
-    static const QUMethod slot_1 = {"fileOpen", 0, 0 };
-    static const QUParameter param_slot_2[] = {
-	{ "filename", &static_QUType_QString, 0, QUParameter::In }
-    };
-    static const QUMethod slot_2 = {"fileOpen", 1, param_slot_2 };
-    static const QUMethod slot_3 = {"fileSave", 0, 0 };
-    static const QUParameter param_slot_4[] = {
-	{ "filename", &static_QUType_QString, 0, QUParameter::In }
-    };
-    static const QUMethod slot_4 = {"fileSaveAs", 1, param_slot_4 };
-    static const QUMethod slot_5 = {"filePrint", 0, 0 };
-    static const QUMethod slot_6 = {"fileExit", 0, 0 };
-    static const QUMethod slot_7 = {"helpIndex", 0, 0 };
-    static const QUMethod slot_8 = {"helpContents", 0, 0 };
-    static const QUMethod slot_9 = {"helpAbout", 0, 0 };
-    static const QUMethod slot_10 = {"constructDual", 0, 0 };
-    static const QUMethod slot_11 = {"updateMesh", 0, 0 };
-    static const QUMethod slot_12 = {"DebugButton_pressed", 0, 0 };
-    static const QUMethod slot_13 = {"ActorTreeView_selectionChanged", 0, 0 };
-    static const QUMethod slot_14 = {"TagTreeView_selectionChanged", 0, 0 };
-    static const QUMethod slot_15 = {"displayVisible", 0, 0 };
-    static const QUMethod slot_16 = {"displayDraw", 0, 0 };
-    static const QUMethod slot_17 = {"displayWireframeShaded", 0, 0 };
-    static const QUMethod slot_18 = {"displayInvertSelection", 0, 0 };
-    static const QUParameter param_slot_19[] = {
-	{ "item", &static_QUType_ptr, "QListViewItem", QUParameter::In },
-	{ 0, &static_QUType_varptr, "\x0e", QUParameter::In },
-	{ 0, &static_QUType_int, 0, QUParameter::In }
-    };
-    static const QUMethod slot_19 = {"ActorListView1_rightButtonPressed", 3, param_slot_19 };
-    static const QUMethod slot_20 = {"displayInvisible", 0, 0 };
-    static const QUParameter param_slot_21[] = {
-	{ 0, &static_QUType_ptr, "QListViewItem", QUParameter::In },
-	{ 0, &static_QUType_varptr, "\x0e", QUParameter::In },
-	{ 0, &static_QUType_int, 0, QUParameter::In }
-    };
-    static const QUMethod slot_21 = {"TagListView1_rightButtonPressed", 3, param_slot_21 };
-    static const QUMethod slot_22 = {"displayDisplayAll", 0, 0 };
-    static const QUMethod slot_23 = {"CropToolButton_clicked", 0, 0 };
-    static const QUMethod slot_24 = {"displayDrawSheetAction_activated", 0, 0 };
-    static const QUMethod slot_25 = {"APbutton_clicked", 0, 0 };
-    static const QUMethod slot_26 = {"negAPbutton_clicked", 0, 0 };
-    static const QUMethod slot_27 = {"FOCbutton_clicked", 0, 0 };
-    static const QUMethod slot_28 = {"FSbutton_clicked", 0, 0 };
-    static const QUMethod slot_29 = {"negFCbutton_clicked", 0, 0 };
-    static const QUMethod slot_30 = {"fileSaveAs", 0, 0 };
-    static const QUMethod slot_31 = {"resetDisplay", 0, 0 };
-    static const QUMethod slot_32 = {"redrawDisplay", 0, 0 };
-    static const QUMethod slot_33 = {"languageChange", 0, 0 };
-    static const QMetaData slot_tbl[] = {
-	{ "fileNew()", &slot_0, QMetaData::Public },
-	{ "fileOpen()", &slot_1, QMetaData::Public },
-	{ "fileOpen(const QString&)", &slot_2, QMetaData::Public },
-	{ "fileSave()", &slot_3, QMetaData::Public },
-	{ "fileSaveAs(const QString&)", &slot_4, QMetaData::Public },
-	{ "filePrint()", &slot_5, QMetaData::Public },
-	{ "fileExit()", &slot_6, QMetaData::Public },
-	{ "helpIndex()", &slot_7, QMetaData::Public },
-	{ "helpContents()", &slot_8, QMetaData::Public },
-	{ "helpAbout()", &slot_9, QMetaData::Public },
-	{ "constructDual()", &slot_10, QMetaData::Public },
-	{ "updateMesh()", &slot_11, QMetaData::Public },
-	{ "DebugButton_pressed()", &slot_12, QMetaData::Public },
-	{ "ActorTreeView_selectionChanged()", &slot_13, QMetaData::Public },
-	{ "TagTreeView_selectionChanged()", &slot_14, QMetaData::Public },
-	{ "displayVisible()", &slot_15, QMetaData::Public },
-	{ "displayDraw()", &slot_16, QMetaData::Public },
-	{ "displayWireframeShaded()", &slot_17, QMetaData::Public },
-	{ "displayInvertSelection()", &slot_18, QMetaData::Public },
-	{ "ActorListView1_rightButtonPressed(QListViewItem*,const QPoint&,int)", &slot_19, QMetaData::Public },
-	{ "displayInvisible()", &slot_20, QMetaData::Public },
-	{ "TagListView1_rightButtonPressed(QListViewItem*,const QPoint&,int)", &slot_21, QMetaData::Public },
-	{ "displayDisplayAll()", &slot_22, QMetaData::Public },
-	{ "CropToolButton_clicked()", &slot_23, QMetaData::Public },
-	{ "displayDrawSheetAction_activated()", &slot_24, QMetaData::Public },
-	{ "APbutton_clicked()", &slot_25, QMetaData::Public },
-	{ "negAPbutton_clicked()", &slot_26, QMetaData::Public },
-	{ "FOCbutton_clicked()", &slot_27, QMetaData::Public },
-	{ "FSbutton_clicked()", &slot_28, QMetaData::Public },
-	{ "negFCbutton_clicked()", &slot_29, QMetaData::Public },
-	{ "fileSaveAs()", &slot_30, QMetaData::Public },
-	{ "resetDisplay()", &slot_31, QMetaData::Public },
-	{ "redrawDisplay()", &slot_32, QMetaData::Public },
-	{ "languageChange()", &slot_33, QMetaData::Protected }
-    };
-    static const QUMethod signal_0 = {"toggled", 0, 0 };
-    static const QMetaData signal_tbl[] = {
-	{ "toggled()", &signal_0, QMetaData::Public }
-    };
-    metaObj = QMetaObject::new_metaobject(
-	"uiQVDual", parentObject,
-	slot_tbl, 34,
-	signal_tbl, 1,
-#ifndef QT_NO_PROPERTIES
-	0, 0,
-	0, 0,
-#endif // QT_NO_PROPERTIES
-	0, 0 );
-    cleanUp_uiQVDual.setMetaObject( metaObj );
-    return metaObj;
-}
-
-void* uiQVDual::qt_cast( const char* clname )
-{
-    if ( !qstrcmp( clname, "uiQVDual" ) )
-	return this;
-    return QMainWindow::qt_cast( clname );
-}
-
-// SIGNAL toggled
-void uiQVDual::toggled()
-{
-    activate_signal( staticMetaObject()->signalOffset() + 0 );
-}
-
-bool uiQVDual::qt_invoke( int _id, QUObject* _o )
-{
-    switch ( _id - staticMetaObject()->slotOffset() ) {
-    case 0: fileNew(); break;
-    case 1: fileOpen(); break;
-    case 2: fileOpen((const QString&)static_QUType_QString.get(_o+1)); break;
-    case 3: fileSave(); break;
-    case 4: fileSaveAs((const QString&)static_QUType_QString.get(_o+1)); break;
-    case 5: filePrint(); break;
-    case 6: fileExit(); break;
-    case 7: helpIndex(); break;
-    case 8: helpContents(); break;
-    case 9: helpAbout(); break;
-    case 10: constructDual(); break;
-    case 11: updateMesh(); break;
-    case 12: DebugButton_pressed(); break;
-    case 13: ActorTreeView_selectionChanged(); break;
-    case 14: TagTreeView_selectionChanged(); break;
-    case 15: displayVisible(); break;
-    case 16: displayDraw(); break;
-    case 17: displayWireframeShaded(); break;
-    case 18: displayInvertSelection(); break;
-    case 19: ActorListView1_rightButtonPressed((QListViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2)),(int)static_QUType_int.get(_o+3)); break;
-    case 20: displayInvisible(); break;
-    case 21: TagListView1_rightButtonPressed((QListViewItem*)static_QUType_ptr.get(_o+1),(const QPoint&)*((const QPoint*)static_QUType_ptr.get(_o+2)),(int)static_QUType_int.get(_o+3)); break;
-    case 22: displayDisplayAll(); break;
-    case 23: CropToolButton_clicked(); break;
-    case 24: displayDrawSheetAction_activated(); break;
-    case 25: APbutton_clicked(); break;
-    case 26: negAPbutton_clicked(); break;
-    case 27: FOCbutton_clicked(); break;
-    case 28: FSbutton_clicked(); break;
-    case 29: negFCbutton_clicked(); break;
-    case 30: fileSaveAs(); break;
-    case 31: resetDisplay(); break;
-    case 32: redrawDisplay(); break;
-    case 33: languageChange(); break;
-    default:
-	return QMainWindow::qt_invoke( _id, _o );
-    }
-    return TRUE;
-}
-
-bool uiQVDual::qt_emit( int _id, QUObject* _o )
-{
-    switch ( _id - staticMetaObject()->signalOffset() ) {
-    case 0: toggled(); break;
-    default:
-	return QMainWindow::qt_emit(_id,_o);
-    }
-    return TRUE;
-}
-#ifndef QT_NO_PROPERTIES
-
-bool uiQVDual::qt_property( int id, int f, QVariant* v)
-{
-    return QMainWindow::qt_property( id, f, v);
-}
-
-bool uiQVDual::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
-#endif // QT_NO_PROPERTIES

Deleted: MOAB/trunk/tools/qvdual/uiQVDual.h
===================================================================
--- MOAB/trunk/tools/qvdual/uiQVDual.h	2007-12-07 22:52:26 UTC (rev 1457)
+++ MOAB/trunk/tools/qvdual/uiQVDual.h	2007-12-07 23:18:45 UTC (rev 1458)
@@ -1,164 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'uiQVDual.ui'
-**
-** Created: Mon Nov 5 08:55:16 2007
-**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.7   edited Aug 31 2005 $)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-
-#ifndef UIQVDUAL_H
-#define UIQVDUAL_H
-
-#include <qvariant.h>
-#include <qmainwindow.h>
-#include <map>
-#include <set>
-#include "MBInterface.hpp"
-
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QSpacerItem;
-class QAction;
-class QActionGroup;
-class QToolBar;
-class QPopupMenu;
-class QListView;
-class QListViewItem;
-class QPushButton;
-class QLabel;
-class QLineEdit;
-class QVTKWidget;
-class vtkUnstructuredGrid;
-class vtkRenderer;
-class vtkRenderWindowInteractor;
-class vtkProperty;
-class CropToolPopup;
-class DrawDual;
-
-class uiQVDual : public QMainWindow
-{
-    Q_OBJECT
-
-public:
-    uiQVDual( QWidget* parent = 0, const char* name = 0, WFlags fl = WType_TopLevel );
-    ~uiQVDual();
-
-    QListView* ActorListView1;
-    QListView* TagListView1;
-    QPushButton* APbutton;
-    QPushButton* FOCbutton;
-    QPushButton* FSbutton;
-    QPushButton* Create_Dual_Button;
-    QPushButton* DebugButton;
-    QPushButton* negAPbutton;
-    QPushButton* negFOCbutton;
-    QPushButton* negFCbutton;
-    QPushButton* CropTool;
-    QPushButton* CropToolButton;
-    QLabel* picklabel1;
-    QLineEdit* pickline1;
-    QLabel* picklabel2;
-    QLineEdit* pickline2;
-    QVTKWidget* vtkWidget;
-    QMenuBar *MenuBar;
-    QPopupMenu *fileMenu;
-    QPopupMenu *helpMenu;
-    QPopupMenu *Window;
-    QPopupMenu *Display;
-    QAction* fileNewAction;
-    QAction* fileOpenAction;
-    QAction* fileSaveAction;
-    QAction* fileSaveAsAction;
-    QAction* filePrintAction;
-    QAction* fileExitAction;
-    QAction* helpContentsAction;
-    QAction* helpIndexAction;
-    QAction* helpAboutAction;
-    QAction* windowTagViewAction;
-    QAction* windowSheetViewAction;
-    QAction* windowChordViewAction;
-    QAction* windowActorViewAction;
-    QAction* displayVisibleAction;
-    QAction* displayDrawAction;
-    QAction* displayWireframeShadedAction;
-    QAction* displayInvertSelectionAction;
-    QAction* displayInvisibleAction;
-    QAction* displayDisplayAllActions;
-    QAction* displayDrawSheetAction;
-
-    bool computeDual;
-
-public slots:
-    virtual void fileNew();
-    virtual void fileOpen();
-    virtual void fileOpen( const QString & filename );
-    virtual void fileSave();
-    virtual void fileSaveAs( const QString & filename );
-    virtual void filePrint();
-    virtual void fileExit();
-    virtual void helpIndex();
-    virtual void helpContents();
-    virtual void helpAbout();
-    virtual void constructDual();
-    virtual void updateMesh();
-    virtual void DebugButton_pressed();
-    virtual void ActorTreeView_selectionChanged();
-    virtual void TagTreeView_selectionChanged();
-    virtual void displayVisible();
-    virtual void displayDraw();
-    virtual void displayWireframeShaded();
-    virtual void displayInvertSelection();
-    virtual void ActorListView1_rightButtonPressed( QListViewItem * item, const QPoint &, int );
-    virtual void displayInvisible();
-    virtual void TagListView1_rightButtonPressed( QListViewItem *, const QPoint &, int );
-    virtual void displayDisplayAll();
-    virtual void CropToolButton_clicked();
-    virtual void displayDrawSheetAction_activated();
-    virtual void APbutton_clicked();
-    virtual void negAPbutton_clicked();
-    virtual void FOCbutton_clicked();
-    virtual void FSbutton_clicked();
-    virtual void negFCbutton_clicked();
-    virtual void fileSaveAs();
-    virtual void resetDisplay();
-    virtual void redrawDisplay();
-    virtual void pickline1_returnPressed();
-
-signals:
-    void toggled();
-
-protected:
-    CropToolPopup *cropToolPopup;
-    std::set<QListViewItem*> itemSelList;
-    DrawDual *drawDual;
-
-    QVBoxLayout* layout13;
-    QHBoxLayout* layout6;
-    QHBoxLayout* layout7;
-
-protected slots:
-    virtual void languageChange();
-
-private:
-    QString lastOpened;
-    std::map<QListViewItem*,MBEntityHandle> itemSetMap;
-    vtkUnstructuredGrid *myUG;
-    int currentWin;
-
-    void init();
-    void destroy();
-    virtual void updateTagList();
-    virtual void updateActorList();
-    virtual void updateActorContainsList( QListViewItem * item, MBEntityHandle set_handle );
-    virtual void updateActorParentList( QListViewItem * item, MBEntityHandle set_handle );
-    virtual void changeSetProperty( std::set<QListViewItem *> & high_sets, std::set<QListViewItem *> & unhigh_sets );
-    virtual void evalItem( QListViewItem * item, const bool high, MBRange & high_mbsets, MBRange & unhigh_mbsets );
-    virtual void getSelected( QListView * listv, std::set<QListViewItem *> & selected, std::set<QListViewItem *> & unselected );
-    virtual void getSelected( QListView * listv, MBRange & selected, MBRange & unselected );
-    virtual void getItemSets( std::set<QListViewItem *> & items, MBRange & sets );
-
-};
-
-#endif // UIQVDUAL_H

Deleted: MOAB/trunk/tools/qvdual/uiQVDual.ui
===================================================================
--- MOAB/trunk/tools/qvdual/uiQVDual.ui	2007-12-07 22:52:26 UTC (rev 1457)
+++ MOAB/trunk/tools/qvdual/uiQVDual.ui	2007-12-07 23:18:45 UTC (rev 1458)
@@ -1,1029 +0,0 @@
-<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
-<class>uiQVDual</class>
-<widget class="QMainWindow">
-    <property name="name">
-        <cstring>uiQVDual</cstring>
-    </property>
-    <property name="geometry">
-        <rect>
-            <x>0</x>
-            <y>0</y>
-            <width>1010</width>
-            <height>771</height>
-        </rect>
-    </property>
-    <property name="sizePolicy">
-        <sizepolicy>
-            <hsizetype>5</hsizetype>
-            <vsizetype>5</vsizetype>
-            <horstretch>0</horstretch>
-            <verstretch>0</verstretch>
-        </sizepolicy>
-    </property>
-    <property name="minimumSize">
-        <size>
-            <width>21</width>
-            <height>160</height>
-        </size>
-    </property>
-    <property name="caption">
-        <string>QVDual</string>
-    </property>
-    <property name="mouseTracking">
-        <bool>false</bool>
-    </property>
-    <property name="focusPolicy">
-        <enum>NoFocus</enum>
-    </property>
-    <widget class="QLayoutWidget">
-        <property name="name">
-            <cstring>layout13</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>-19</x>
-                <y>1</y>
-                <width>412</width>
-                <height>635</height>
-            </rect>
-        </property>
-        <vbox>
-            <property name="name">
-                <cstring>unnamed</cstring>
-            </property>
-            <widget class="QListView">
-                <column>
-                    <property name="text">
-                        <string>Actor</string>
-                    </property>
-                    <property name="clickable">
-                        <bool>true</bool>
-                    </property>
-                    <property name="resizable">
-                        <bool>false</bool>
-                    </property>
-                </column>
-            <item>
-                <property name="text">
-                    <string>New Item</string>
-                </property>
-                <property name="pixmap">
-                    <pixmap></pixmap>
-                </property>
-            </item>
-                <property name="name">
-                    <cstring>ActorListView1</cstring>
-                </property>
-                <property name="sizePolicy">
-                    <sizepolicy>
-                        <hsizetype>7</hsizetype>
-                        <vsizetype>7</vsizetype>
-                        <horstretch>0</horstretch>
-                        <verstretch>1</verstretch>
-                    </sizepolicy>
-                </property>
-                <property name="minimumSize">
-                    <size>
-                        <width>100</width>
-                        <height>0</height>
-                    </size>
-                </property>
-                <property name="maximumSize">
-                    <size>
-                        <width>300</width>
-                        <height>32767</height>
-                    </size>
-                </property>
-                <property name="resizePolicy">
-                    <enum>Manual</enum>
-                </property>
-                <property name="hScrollBarMode">
-                    <enum>AlwaysOn</enum>
-                </property>
-                <property name="selectionMode">
-                    <enum>Extended</enum>
-                </property>
-                <property name="allColumnsShowFocus">
-                    <bool>true</bool>
-                </property>
-                <property name="showSortIndicator">
-                    <bool>true</bool>
-                </property>
-                <property name="rootIsDecorated">
-                    <bool>true</bool>
-                </property>
-                <property name="resizeMode">
-                    <enum>AllColumns</enum>
-                </property>
-            </widget>
-            <widget class="QListView">
-                <column>
-                    <property name="text">
-                        <string>Tag/Value</string>
-                    </property>
-                    <property name="clickable">
-                        <bool>true</bool>
-                    </property>
-                    <property name="resizable">
-                        <bool>false</bool>
-                    </property>
-                </column>
-            <item>
-                <property name="text">
-                    <string>New Item</string>
-                </property>
-                <property name="pixmap">
-                    <pixmap></pixmap>
-                </property>
-            </item>
-                <property name="name">
-                    <cstring>TagListView1</cstring>
-                </property>
-                <property name="sizePolicy">
-                    <sizepolicy>
-                        <hsizetype>7</hsizetype>
-                        <vsizetype>7</vsizetype>
-                        <horstretch>0</horstretch>
-                        <verstretch>1</verstretch>
-                    </sizepolicy>
-                </property>
-                <property name="minimumSize">
-                    <size>
-                        <width>100</width>
-                        <height>0</height>
-                    </size>
-                </property>
-                <property name="maximumSize">
-                    <size>
-                        <width>300</width>
-                        <height>32767</height>
-                    </size>
-                </property>
-                <property name="resizePolicy">
-                    <enum>Manual</enum>
-                </property>
-                <property name="hScrollBarMode">
-                    <enum>AlwaysOn</enum>
-                </property>
-                <property name="selectionMode">
-                    <enum>Extended</enum>
-                </property>
-                <property name="allColumnsShowFocus">
-                    <bool>true</bool>
-                </property>
-                <property name="showSortIndicator">
-                    <bool>true</bool>
-                </property>
-                <property name="rootIsDecorated">
-                    <bool>true</bool>
-                </property>
-                <property name="resizeMode">
-                    <enum>AllColumns</enum>
-                </property>
-            </widget>
-        </vbox>
-    </widget>
-    <widget class="QPushButton">
-        <property name="name">
-            <cstring>APbutton</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>400</x>
-                <y>580</y>
-                <width>40</width>
-                <height>25</height>
-            </rect>
-        </property>
-        <property name="text">
-            <string>AP</string>
-        </property>
-    </widget>
-    <widget class="QPushButton">
-        <property name="name">
-            <cstring>FOCbutton</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>450</x>
-                <y>580</y>
-                <width>40</width>
-                <height>25</height>
-            </rect>
-        </property>
-        <property name="text">
-            <string>FOC</string>
-        </property>
-    </widget>
-    <widget class="QPushButton">
-        <property name="name">
-            <cstring>FSbutton</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>500</x>
-                <y>580</y>
-                <width>30</width>
-                <height>25</height>
-            </rect>
-        </property>
-        <property name="text">
-            <string>FS</string>
-        </property>
-    </widget>
-    <widget class="QPushButton">
-        <property name="name">
-            <cstring>Create_Dual_Button</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>400</x>
-                <y>640</y>
-                <width>77</width>
-                <height>26</height>
-            </rect>
-        </property>
-        <property name="sizePolicy">
-            <sizepolicy>
-                <hsizetype>0</hsizetype>
-                <vsizetype>0</vsizetype>
-                <horstretch>0</horstretch>
-                <verstretch>0</verstretch>
-            </sizepolicy>
-        </property>
-        <property name="text">
-            <string>Make Dual</string>
-        </property>
-        <property name="toolTip" stdset="0">
-            <string>Create the dual</string>
-        </property>
-    </widget>
-    <widget class="QPushButton">
-        <property name="name">
-            <cstring>DebugButton</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>400</x>
-                <y>670</y>
-                <width>52</width>
-                <height>26</height>
-            </rect>
-        </property>
-        <property name="sizePolicy">
-            <sizepolicy>
-                <hsizetype>0</hsizetype>
-                <vsizetype>0</vsizetype>
-                <horstretch>0</horstretch>
-                <verstretch>0</verstretch>
-            </sizepolicy>
-        </property>
-        <property name="text">
-            <string>Debug</string>
-        </property>
-    </widget>
-    <widget class="QPushButton">
-        <property name="name">
-            <cstring>negAPbutton</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>400</x>
-                <y>610</y>
-                <width>40</width>
-                <height>25</height>
-            </rect>
-        </property>
-        <property name="text">
-            <string>-AP</string>
-        </property>
-    </widget>
-    <widget class="QPushButton">
-        <property name="name">
-            <cstring>negFOCbutton</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>450</x>
-                <y>610</y>
-                <width>40</width>
-                <height>25</height>
-            </rect>
-        </property>
-        <property name="text">
-            <string>-FOC</string>
-        </property>
-    </widget>
-    <widget class="QPushButton">
-        <property name="name">
-            <cstring>negFCbutton</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>500</x>
-                <y>610</y>
-                <width>30</width>
-                <height>25</height>
-            </rect>
-        </property>
-        <property name="text">
-            <string>-FS</string>
-        </property>
-    </widget>
-    <widget class="QPushButton">
-        <property name="name">
-            <cstring>CropTool</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>580</x>
-                <y>660</y>
-                <width>81</width>
-                <height>31</height>
-            </rect>
-        </property>
-        <property name="text">
-            <string>CropTool</string>
-        </property>
-    </widget>
-    <widget class="QPushButton">
-        <property name="name">
-            <cstring>CropToolButton</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>490</x>
-                <y>660</y>
-                <width>71</width>
-                <height>31</height>
-            </rect>
-        </property>
-        <property name="text">
-            <string>Crop</string>
-        </property>
-    </widget>
-    <widget class="QLayoutWidget">
-        <property name="name">
-            <cstring>layout6</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>550</x>
-                <y>580</y>
-                <width>310</width>
-                <height>40</height>
-            </rect>
-        </property>
-        <hbox>
-            <property name="name">
-                <cstring>unnamed</cstring>
-            </property>
-            <widget class="QLabel">
-                <property name="name">
-                    <cstring>picklabel1</cstring>
-                </property>
-                <property name="text">
-                    <string>Pick 1:</string>
-                </property>
-            </widget>
-            <widget class="QLineEdit">
-                <property name="name">
-                    <cstring>pickline1</cstring>
-                </property>
-            </widget>
-        </hbox>
-    </widget>
-    <widget class="QLayoutWidget">
-        <property name="name">
-            <cstring>layout7</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>550</x>
-                <y>620</y>
-                <width>310</width>
-                <height>40</height>
-            </rect>
-        </property>
-        <hbox>
-            <property name="name">
-                <cstring>unnamed</cstring>
-            </property>
-            <widget class="QLabel">
-                <property name="name">
-                    <cstring>picklabel2</cstring>
-                </property>
-                <property name="text">
-                    <string>Pick 2:</string>
-                </property>
-            </widget>
-            <widget class="QLineEdit">
-                <property name="name">
-                    <cstring>pickline2</cstring>
-                </property>
-            </widget>
-        </hbox>
-    </widget>
-    <widget class="QVTKWidget">
-        <property name="name">
-            <cstring>vtkWidget</cstring>
-        </property>
-        <property name="geometry">
-            <rect>
-                <x>400</x>
-                <y>10</y>
-                <width>600</width>
-                <height>569</height>
-            </rect>
-        </property>
-        <property name="sizePolicy">
-            <sizepolicy>
-                <hsizetype>7</hsizetype>
-                <vsizetype>7</vsizetype>
-                <horstretch>0</horstretch>
-                <verstretch>0</verstretch>
-            </sizepolicy>
-        </property>
-        <property name="minimumSize">
-            <size>
-                <width>0</width>
-                <height>0</height>
-            </size>
-        </property>
-    </widget>
-</widget>
-<menubar>
-    <property name="name">
-        <cstring>MenuBar</cstring>
-    </property>
-    <item text="&amp;File" name="fileMenu">
-        <action name="fileNewAction"/>
-        <action name="fileOpenAction"/>
-        <action name="fileSaveAction"/>
-        <action name="fileSaveAsAction"/>
-        <separator/>
-        <action name="filePrintAction"/>
-        <separator/>
-        <action name="fileExitAction"/>
-    </item>
-    <item text="&amp;Help" name="helpMenu">
-        <action name="helpContentsAction"/>
-        <action name="helpIndexAction"/>
-        <separator/>
-        <action name="helpAboutAction"/>
-    </item>
-    <item text="Window" name="Window">
-        <action name="windowTagViewAction"/>
-        <action name="windowSheetViewAction"/>
-        <action name="windowChordViewAction"/>
-    </item>
-    <item text="Display" name="Display">
-        <action name="displayVisibleAction"/>
-        <action name="displayInvisibleAction"/>
-        <action name="displayDrawAction"/>
-        <action name="displayWireframeShadedAction"/>
-        <action name="displayInvertSelectionAction"/>
-        <action name="displayDisplayAllActions"/>
-        <action name="displayDrawSheetAction"/>
-    </item>
-</menubar>
-<toolbars>
-</toolbars>
-<actions>
-    <action>
-        <property name="name">
-            <cstring>fileNewAction</cstring>
-        </property>
-        <property name="iconSet">
-            <iconset></iconset>
-        </property>
-        <property name="text">
-            <string>New</string>
-        </property>
-        <property name="menuText">
-            <string>&amp;New</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>fileOpenAction</cstring>
-        </property>
-        <property name="iconSet">
-            <iconset></iconset>
-        </property>
-        <property name="text">
-            <string>Open</string>
-        </property>
-        <property name="menuText">
-            <string>&amp;Open...</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>fileSaveAction</cstring>
-        </property>
-        <property name="iconSet">
-            <iconset></iconset>
-        </property>
-        <property name="text">
-            <string>Save</string>
-        </property>
-        <property name="menuText">
-            <string>&amp;Save</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>fileSaveAsAction</cstring>
-        </property>
-        <property name="text">
-            <string>Save As</string>
-        </property>
-        <property name="menuText">
-            <string>Save &amp;As...</string>
-        </property>
-        <property name="accel">
-            <string></string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>filePrintAction</cstring>
-        </property>
-        <property name="iconSet">
-            <iconset></iconset>
-        </property>
-        <property name="text">
-            <string>Print</string>
-        </property>
-        <property name="menuText">
-            <string>&amp;Print...</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>fileExitAction</cstring>
-        </property>
-        <property name="text">
-            <string>Exit</string>
-        </property>
-        <property name="menuText">
-            <string>E&amp;xit</string>
-        </property>
-        <property name="accel">
-            <string></string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>helpContentsAction</cstring>
-        </property>
-        <property name="text">
-            <string>Contents</string>
-        </property>
-        <property name="menuText">
-            <string>&amp;Contents...</string>
-        </property>
-        <property name="accel">
-            <string></string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>helpIndexAction</cstring>
-        </property>
-        <property name="text">
-            <string>Index</string>
-        </property>
-        <property name="menuText">
-            <string>&amp;Index...</string>
-        </property>
-        <property name="accel">
-            <string></string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>helpAboutAction</cstring>
-        </property>
-        <property name="text">
-            <string>About</string>
-        </property>
-        <property name="menuText">
-            <string>&amp;About</string>
-        </property>
-        <property name="accel">
-            <string></string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>windowTagViewAction</cstring>
-        </property>
-        <property name="text">
-            <string>Tag view</string>
-        </property>
-        <property name="menuText">
-            <string>Tag view</string>
-        </property>
-        <property name="whatsThis">
-            <string>Hierarchical tag view</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>windowSheetViewAction</cstring>
-        </property>
-        <property name="text">
-            <string>Sheet view</string>
-        </property>
-        <property name="menuText">
-            <string>Sheet view</string>
-        </property>
-        <property name="whatsThis">
-            <string>Toggle sheet visibility</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>windowChordViewAction</cstring>
-        </property>
-        <property name="text">
-            <string>Chord view</string>
-        </property>
-        <property name="menuText">
-            <string>Chord view</string>
-        </property>
-        <property name="whatsThis">
-            <string>Toggle chord visibility</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>windowActorViewAction</cstring>
-        </property>
-        <property name="text">
-            <string>Actor view</string>
-        </property>
-        <property name="whatsThis">
-            <string>Toggle actor view</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>displayVisibleAction</cstring>
-        </property>
-        <property name="toggleAction">
-            <bool>false</bool>
-        </property>
-        <property name="on">
-            <bool>false</bool>
-        </property>
-        <property name="text">
-            <string>Visible</string>
-        </property>
-        <property name="menuText">
-            <string>Visible</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>displayDrawAction</cstring>
-        </property>
-        <property name="text">
-            <string>Draw</string>
-        </property>
-        <property name="menuText">
-            <string>Draw</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>displayWireframeShadedAction</cstring>
-        </property>
-        <property name="text">
-            <string>Wireframe/Shaded</string>
-        </property>
-        <property name="menuText">
-            <string>Wireframe/Shaded</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>displayInvertSelectionAction</cstring>
-        </property>
-        <property name="text">
-            <string>Invert selection</string>
-        </property>
-        <property name="menuText">
-            <string>Invert selection</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>displayInvisibleAction</cstring>
-        </property>
-        <property name="text">
-            <string>Invisible</string>
-        </property>
-        <property name="menuText">
-            <string>Invisible</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>displayDisplayAllActions</cstring>
-        </property>
-        <property name="text">
-            <string>Display All</string>
-        </property>
-        <property name="menuText">
-            <string>Display All</string>
-        </property>
-    </action>
-    <action>
-        <property name="name">
-            <cstring>displayDrawSheetAction</cstring>
-        </property>
-        <property name="text">
-            <string>Draw Sheet</string>
-        </property>
-        <property name="menuText">
-            <string>Draw Sheet</string>
-        </property>
-    </action>
-</actions>
-<connections>
-    <connection>
-        <sender>ActorListView1</sender>
-        <signal>selectionChanged()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>ActorTreeView_selectionChanged()</slot>
-    </connection>
-    <connection>
-        <sender>ActorListView1</sender>
-        <signal>rightButtonPressed(QListViewItem*,const QPoint&amp;,int)</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>ActorListView1_rightButtonPressed(QListViewItem*,const QPoint&amp;,int)</slot>
-    </connection>
-    <connection>
-        <sender>Create_Dual_Button</sender>
-        <signal>clicked()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>constructDual()</slot>
-    </connection>
-    <connection>
-        <sender>DebugButton</sender>
-        <signal>pressed()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>DebugButton_pressed()</slot>
-    </connection>
-    <connection>
-        <sender>displayDisplayAllActions</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>displayDisplayAll()</slot>
-    </connection>
-    <connection>
-        <sender>displayDrawAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>displayDraw()</slot>
-    </connection>
-    <connection>
-        <sender>displayInvertSelectionAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>displayInvertSelection()</slot>
-    </connection>
-    <connection>
-        <sender>displayVisibleAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>displayVisible()</slot>
-    </connection>
-    <connection>
-        <sender>displayWireframeShadedAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>displayWireframeShaded()</slot>
-    </connection>
-    <connection>
-        <sender>fileExitAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>fileExit()</slot>
-    </connection>
-    <connection>
-        <sender>fileNewAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>fileNew()</slot>
-    </connection>
-    <connection>
-        <sender>fileOpenAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>fileOpen()</slot>
-    </connection>
-    <connection>
-        <sender>filePrintAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>filePrint()</slot>
-    </connection>
-    <connection>
-        <sender>fileSaveAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>fileSave()</slot>
-    </connection>
-    <connection>
-        <sender>fileSaveAsAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>fileSaveAs()</slot>
-    </connection>
-    <connection>
-        <sender>helpAboutAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>helpAbout()</slot>
-    </connection>
-    <connection>
-        <sender>helpContentsAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>helpContents()</slot>
-    </connection>
-    <connection>
-        <sender>helpIndexAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>helpIndex()</slot>
-    </connection>
-    <connection>
-        <sender>TagListView1</sender>
-        <signal>selectionChanged()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>TagTreeView_selectionChanged()</slot>
-    </connection>
-    <connection>
-        <sender>TagListView1</sender>
-        <signal>rightButtonPressed(QListViewItem*,const QPoint&amp;,int)</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>TagListView1_rightButtonPressed(QListViewItem*,const QPoint&amp;,int)</slot>
-    </connection>
-    <connection>
-        <sender>displayInvisibleAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>displayInvisible()</slot>
-    </connection>
-    <connection>
-        <sender>CropToolButton</sender>
-        <signal>clicked()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>CropToolButton_clicked()</slot>
-    </connection>
-    <connection>
-        <sender>displayDrawSheetAction</sender>
-        <signal>activated()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>displayDrawSheetAction_activated()</slot>
-    </connection>
-    <connection>
-        <sender>APbutton</sender>
-        <signal>clicked()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>APbutton_clicked()</slot>
-    </connection>
-    <connection>
-        <sender>negAPbutton</sender>
-        <signal>clicked()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>negAPbutton_clicked()</slot>
-    </connection>
-    <connection>
-        <sender>FOCbutton</sender>
-        <signal>clicked()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>FOCbutton_clicked()</slot>
-    </connection>
-    <connection>
-        <sender>FSbutton</sender>
-        <signal>clicked()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>FSbutton_clicked()</slot>
-    </connection>
-    <connection>
-        <sender>negFCbutton</sender>
-        <signal>clicked()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>negFCbutton_clicked()</slot>
-    </connection>
-    <connection>
-        <sender>pickline1</sender>
-        <signal>returnPressed()</signal>
-        <receiver>uiQVDual</receiver>
-        <slot>pickline1_returnPressed()</slot>
-    </connection>
-</connections>
-<includes>
-    <include location="local" impldecl="in declaration">MBInterface.hpp</include>
-    <include location="global" impldecl="in declaration">map</include>
-    <include location="global" impldecl="in declaration">set</include>
-    <include location="local" impldecl="in implementation">vtkRenderer.h</include>
-    <include location="local" impldecl="in implementation">vtkRenderWindow.h</include>
-    <include location="local" impldecl="in implementation">vtkActor.h</include>
-    <include location="local" impldecl="in implementation">MBCore.hpp</include>
-    <include location="local" impldecl="in implementation">vtkDataSetMapper.h</include>
-    <include location="local" impldecl="in implementation">qfiledialog.h</include>
-    <include location="local" impldecl="in implementation">vtkMOABReader.h</include>
-    <include location="local" impldecl="in implementation">vtkUnstructuredGridSource.h</include>
-    <include location="local" impldecl="in implementation">vtkUnstructuredGrid.h</include>
-    <include location="local" impldecl="in implementation">vtkMOABUtils.h</include>
-    <include location="local" impldecl="in implementation">qapplication.h</include>
-    <include location="local" impldecl="in implementation">MBTagConventions.hpp</include>
-    <include location="local" impldecl="in implementation">vtkRenderWindowInteractor.h</include>
-    <include location="local" impldecl="in implementation">CropToolpopup.h</include>
-    <include location="local" impldecl="in implementation">CropTool.hpp</include>
-    <include location="local" impldecl="in implementation">DrawDual.hpp</include>
-    <include location="local" impldecl="in implementation">uiQVDual.ui.h</include>
-</includes>
-<forwards>
-    <forward>class vtkUnstructuredGrid</forward>
-    <forward>class vtkRenderer</forward>
-    <forward>class vtkRenderWindowInteractor</forward>
-    <forward>class vtkProperty</forward>
-    <forward>class CropToolPopup</forward>
-    <forward>class DrawDual</forward>
-</forwards>
-<variables>
-    <variable access="private">QString lastOpened;</variable>
-    <variable access="public">bool computeDual;</variable>
-    <variable>CropToolPopup *cropToolPopup;</variable>
-    <variable access="private">std::map&lt;QListViewItem*,MBEntityHandle&gt; itemSetMap;</variable>
-    <variable access="private">vtkUnstructuredGrid *myUG;</variable>
-    <variable>std::set&lt;QListViewItem*&gt; itemSelList;</variable>
-    <variable access="private">int currentWin;</variable>
-    <variable>DrawDual *drawDual;</variable>
-</variables>
-<signals>
-    <signal>toggled()</signal>
-</signals>
-<slots>
-    <slot>fileNew()</slot>
-    <slot>fileOpen()</slot>
-    <slot>fileOpen( const QString &amp; filename )</slot>
-    <slot>fileSave()</slot>
-    <slot>fileSaveAs( const QString &amp; filename )</slot>
-    <slot>filePrint()</slot>
-    <slot>fileExit()</slot>
-    <slot>helpIndex()</slot>
-    <slot>helpContents()</slot>
-    <slot>helpAbout()</slot>
-    <slot>constructDual()</slot>
-    <slot>updateMesh()</slot>
-    <slot>DebugButton_pressed()</slot>
-    <slot>ActorTreeView_selectionChanged()</slot>
-    <slot>TagTreeView_selectionChanged()</slot>
-    <slot>displayVisible()</slot>
-    <slot>displayDraw()</slot>
-    <slot>displayWireframeShaded()</slot>
-    <slot>displayInvertSelection()</slot>
-    <slot>ActorListView1_rightButtonPressed( QListViewItem * item, const QPoint &amp;, int )</slot>
-    <slot>displayInvisible()</slot>
-    <slot>TagListView1_rightButtonPressed( QListViewItem *, const QPoint &amp;, int )</slot>
-    <slot>displayDisplayAll()</slot>
-    <slot>CropToolButton_clicked()</slot>
-    <slot>displayDrawSheetAction_activated()</slot>
-    <slot>APbutton_clicked()</slot>
-    <slot>negAPbutton_clicked()</slot>
-    <slot>FOCbutton_clicked()</slot>
-    <slot>FSbutton_clicked()</slot>
-    <slot>negFCbutton_clicked()</slot>
-    <slot>fileSaveAs()</slot>
-    <slot>resetDisplay()</slot>
-    <slot>redrawDisplay()</slot>
-    <slot>pickline1_returnPressed()</slot>
-</slots>
-<functions>
-    <function access="private" specifier="non virtual">init()</function>
-    <function access="private" specifier="non virtual">destroy()</function>
-    <function access="private">updateTagList()</function>
-    <function access="private">updateActorList()</function>
-    <function access="private">updateActorContainsList( QListViewItem * item, MBEntityHandle set_handle )</function>
-    <function access="private">updateActorParentList( QListViewItem * item, MBEntityHandle set_handle )</function>
-    <function access="private">changeSetProperty( std::set&lt;QListViewItem *&gt; &amp; high_sets, std::set&lt;QListViewItem *&gt; &amp; unhigh_sets )</function>
-    <function access="private">evalItem( QListViewItem * item, const bool high, MBRange &amp; high_mbsets, MBRange &amp; unhigh_mbsets )</function>
-    <function access="private">getSelected( QListView * listv, std::set&lt;QListViewItem *&gt; &amp; selected, std::set&lt;QListViewItem *&gt; &amp; unselected )</function>
-    <function access="private">getSelected( QListView * listv, MBRange &amp; selected, MBRange &amp; unselected )</function>
-    <function access="private">getItemSets( std::set&lt;QListViewItem *&gt; &amp; items, MBRange &amp; sets )</function>
-</functions>
-<pixmapinproject/>
-<layoutdefaults spacing="6" margin="11"/>
-<includehints>
-    <includehint>QVTKWidget.h</includehint>
-</includehints>
-</UI>

Modified: MOAB/trunk/tools/qvdual/uiQVDual.ui.h
===================================================================
--- MOAB/trunk/tools/qvdual/uiQVDual.ui.h	2007-12-07 22:52:26 UTC (rev 1457)
+++ MOAB/trunk/tools/qvdual/uiQVDual.ui.h	2007-12-07 23:18:45 UTC (rev 1458)
@@ -1116,3 +1116,31 @@
     
   vtkMOABUtils::drawDual->print_picked_ents(picked_ents, true);
 }
+
+
+void uiQVDual::displayPrintSheet()
+{
+  MBRange selected, unselected;
+  getSelected(NULL, selected, unselected);
+
+    // get selected sets which are dual surfaces
+  MBRange dual_surfs;
+  DualTool dual_tool(vtkMOABUtils::mbImpl);
+  MBEntityHandle dum_tag;
+  MBErrorCode result;
+  for (MBRange::iterator rit = selected.begin(); rit != selected.end(); rit++) {
+    result = vtkMOABUtils::mbImpl->tag_get_data(dual_tool.dualSurface_tag(), &(*rit), 1,
+                                                &dum_tag);
+    if (MB_SUCCESS == result && 0 != dum_tag)
+      dual_surfs.insert(*rit);
+  }
+
+  if (NULL == vtkMOABUtils::drawDual) 
+    vtkMOABUtils::drawDual = new DrawDual(pickline1, pickline2);
+
+  // now draw them
+  bool success = vtkMOABUtils::drawDual->print_dual_surfs(dual_surfs);
+  if (!success) 
+    std::cout << "Problem drawing dual surface(s)." << std::endl;
+
+}




More information about the moab-dev mailing list