proj home

Files   Classes   Functions   Hierarchy  

d3meshpartitiondraw.cpp

Go to the documentation of this file.
00001 #include <cassert>
00002 #include <cmath>
00003 using namespace std;
00004 
00005 #include <point.h>
00006 
00007 
00008 #include <d3meshpartitiondraw.h>
00009 #include <d3tesstransform.h>
00010 
00011 
00012 d3meshpartitiondraw::d3meshpartitiondraw(d3meshpartition & _mp )
00013   : mp(_mp)
00014 {
00015   meshdraw = new d3tessdraw(mp.meshB);
00016   meshdraw->graphicsDeffered.v[d3tessdraw::multicolor]->isdrawn = true;
00017   meshdraw->graphicsDeffered.v[d3tessdraw::points]->isdrawn = true;
00018   meshdraw->graphicsDeffered.v[d3tessdraw::simplexes]->isdrawn = true;
00019 
00020   meshdraw->meshupdate();
00021 }
00022 
00023 
00024 void d3meshpartitiondraw::draw()
00025 {
00026   //cout << "d3meshpartitiondraw::draw()" << endl;
00027   assert(meshdraw!=0);
00028 
00029   meshdraw->draw();
00030 }
00031 
00032 
00033 void d3meshpartitiondraw::rotate(double const theta)
00034 {
00035   assert(meshdraw!=0);
00036 
00037   d3tesstransform trans(meshdraw->tess);
00038   trans.rotate(theta);
00039 
00040   meshdraw->meshupdate();
00041 }
00042 
00043 
00044 void d3meshpartitiondraw::translate( pt2c & x )
00045 {
00046   assert(meshdraw!=0);
00047 
00048   d3tesstransform trans(meshdraw->tess);
00049   trans.translate(x);
00050 
00051   meshdraw->meshupdate();
00052 }
00053 
00054 
00055 
00056 
00057 

Generated on Fri Mar 4 00:49:26 2011 for Chelton Evans Source by  doxygen 1.5.8