• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

tests/latticevtk/latticevtk.cpp

Go to the documentation of this file.
00001 #include <QApplication>
00002 
00003 #include "DGVLatticeVTK.h"
00004 
00005 int main(int argc, char *argv[])
00006 {
00007         QApplication app(argc,argv);
00008         DGVLatticeVTK defaultWindow;
00009 
00010     defaultWindow.generateLattice();
00011         defaultWindow.show();
00012 
00013         DGVLatticeVTK Lattice2D, Lattice3D;
00014     Array<latticeType,1> param(2);
00015 
00016     param = 10, 20;
00017         Lattice2D.setLatticeParameters(param);
00018         Lattice2D.generateLattice();
00019         Lattice2D.show();
00020 
00021         Lattice3D.setDimensions(3);
00022         Lattice3D.setDefaultSize(10);
00023         Lattice3D.generateLattice();
00024         Lattice3D.show();
00025 
00026         return app.exec();
00027 }
00028 

Generated on Wed Sep 8 2010 01:36:51 for DGV by  doxygen 1.7.1