proj home

Files   Classes   Functions   Hierarchy  

d3meshpartitiondraw Class Reference

#include <d3meshpartitiondraw.h>

Inheritance diagram for d3meshpartitiondraw:
Collaboration diagram for d3meshpartitiondraw:

List of all members.

Public Member Functions

 d3meshpartitiondraw (d3meshpartition &_mp)
void rotate (double const theta)
void translate (pt2c &x)
void draw ()
 Draw the object.

Public Attributes

d3tessdrawmeshdraw


Detailed Description

Definition at line 15 of file d3meshpartitiondraw.h.


Constructor & Destructor Documentation

d3meshpartitiondraw::d3meshpartitiondraw ( d3meshpartition _mp  ) 


Member Function Documentation

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 }


Member Data Documentation

Definition at line 20 of file d3meshpartitiondraw.h.

Referenced by d3meshpartitiondraw(), draw(), rotate(), and translate().


The documentation for this class was generated from the following files:

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