|
| IsomCoord3D (capd::krak::Frame *frm=NULL, int orient=0) |
| Creates a IsomCoord3D object. More...
|
|
virtual | ~IsomCoord3D () |
|
virtual int | orientation () |
| Returns the orientation of the system. More...
|
|
virtual int | setOrientation (int i) |
| Sets the orientation of the system. More...
|
|
virtual void | map (double x, double y, double z, int *i, int *j) |
| Maps the 3D coordinates of the point (x), y , z to the frame pixel coordinates. More...
|
|
virtual void | drawAxis () |
| Draws the axis of the system. More...
|
|
capd::krak::Frame * | frame () |
| Returns the frame to which the object is attached. More...
|
|
capd::krak::Frame * | setFrame (capd::krak::Frame *f) |
| Sets the frame of the object to _frm . More...
|
|
void | setCenter (int i, int j) |
| Sets the center (i.e. More...
|
|
double | scale () |
| Returns the scale (the factor which is used when translating 3D coordinates to pixels) More...
|
|
double | setScale (double s) |
| Sets the scale of the system to scale . More...
|
|
void | map (const Point3D &p, int *i, int *j) |
| Maps the 3D coordinates of the point p to the frame pixel coordinates (this is a pure virtual function in Coord3D. More...
|
|
int | fgColor () |
| Returns the foreground color of the attached frame. More...
|
|
int | setFgColor (int fc) |
| Sets the foreground color of the attached frame to color . More...
|
|
int | bgColor () |
| Returns the background color of the attached frame. More...
|
|
int | setBgColor (int bc) |
| Sets the background color of the attached frame to color . More...
|
|
virtual void | clear () |
| Clears the attached frame. More...
|
|
Point3D | pos () |
| Returns the current position. More...
|
|
virtual void | jump (const Point3D &pt) |
| Jumps to the point pt . More...
|
|
virtual void | jump (double x, double y, double z) |
| Jumps to the point (_x, _y , _z ) . More...
|
|
virtual void | dot (double x, double y, double z, int color=FRAME_FG) |
| Draws a dot at the position (x, y , z) . More...
|
|
void | dot (const Point3D &p, int color=FRAME_FG) |
| Draws a dot at the position (p). More...
|
|
virtual void | lineTo (double x, double y, double z, int color=FRAME_FG) |
| Draws a line from the current position the position (x), y , z . More...
|
|
void | lineTo (const Point3D &p, int color=FRAME_FG) |
| Draws a line from the current position the position (p). More...
|
|
virtual void | line (double x1, double y1, double z1, double x2, double y2, double z2, int color=FRAME_FG) |
| Draws a line from the point (x1, y1 , z1 ) to (x2 , y2 , z2 ) . More...
|
|
void | line (const Point3D &p1, const Point3D &p2, int color=FRAME_FG) |
| Draws a line from the point p1 to p2. More...
|
|
virtual void | box (double x1, double y1, double z1, double x2, double y2, double z2, int color=FRAME_FG) |
| Draws a box with a corner in (x1, y1 , z1 ) and and in (x2, y2 , z2). More...
|
|
void | box (const Point3D &p1, const Point3D &p2, int color=FRAME_FG) |
| Draws a box with a corner in p1 and and in p2. More...
|
|
virtual void | Xcrss (double x, double y, double z, int size=1, int color=FRAME_FG) |
| Draw a cross with in the point (x), y , z and and in (x2), y2 , z2 . More...
|
|
void | Xcrss (const Point3D &p, int size=1, int color=FRAME_FG) |
|
This is a class for isomteric 3D drawing.
Most function are inherited from Coord3D::top(Coord3D).
Example use:
IsomCoord3D c(frm); // c will draw on the frame frm
c.setFgColor(BLACK); // this function sets the color of
// the attached frame
c.setScale(0.1); // this sets the size of a logical unit
c.jump(15.2, 17, 44);
c.lineTo(33.2, 32, 45);
c.box(45, 56, 67,
-123, -23, -56, RED);
//etc...