Files Classes Functions Hierarchy
#include <d3meshpartitiondraw.h>
Public Member Functions | |
| d3meshpartitiondraw (d3meshpartition &_mp) | |
| void | rotate (double const theta) |
| void | translate (pt2c &x) |
| void | draw () |
| Draw the object. | |
Public Attributes | |
| d3tessdraw * | meshdraw |
Definition at line 15 of file d3meshpartitiondraw.h.
| d3meshpartitiondraw::d3meshpartitiondraw | ( | d3meshpartition & | _mp | ) |
Definition at line 12 of file d3meshpartitiondraw.cpp.
References d3tessdraw::graphicsDeffered, d3meshpartition::meshB, meshdraw, d3tessdraw::meshupdate(), d3tessdraw::multicolor, d3tessdraw::points, and d3tessdraw::simplexes.
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 }
| void d3meshpartitiondraw::draw | ( | ) | [virtual] |
Draw the object.
Implements gobj.
Definition at line 24 of file d3meshpartitiondraw.cpp.
References d3tessdraw::draw(), and meshdraw.
00025 { 00026 //cout << "d3meshpartitiondraw::draw()" << endl; 00027 assert(meshdraw!=0); 00028 00029 meshdraw->draw(); 00030 }
| void d3meshpartitiondraw::rotate | ( | double const | theta | ) |
Definition at line 33 of file d3meshpartitiondraw.cpp.
References meshdraw, d3tessdraw::meshupdate(), d3tesstransform::rotate(), and d3tessdraw::tess.
00034 { 00035 assert(meshdraw!=0); 00036 00037 d3tesstransform trans(meshdraw->tess); 00038 trans.rotate(theta); 00039 00040 meshdraw->meshupdate(); 00041 }
| void d3meshpartitiondraw::translate | ( | pt2c & | x | ) |
Definition at line 44 of file d3meshpartitiondraw.cpp.
References meshdraw, d3tessdraw::meshupdate(), d3tessdraw::tess, and d3tesstransform::translate().
00045 { 00046 assert(meshdraw!=0); 00047 00048 d3tesstransform trans(meshdraw->tess); 00049 trans.translate(x); 00050 00051 meshdraw->meshupdate(); 00052 }
Definition at line 20 of file d3meshpartitiondraw.h.
Referenced by d3meshpartitiondraw(), draw(), rotate(), and translate().
1.5.8