Coord3D(Frame *_frm)
Creates a new Coord3D object.
_frm | the frame to which the coordinates are attached. |
Frame *frame()
Frame *setFrame(Frame *f) See also:
void setCenter(int i, int j)
double scale()
double setScale(double s)
virtual void map(double x, double y, double z, int *i, int *j)
void map(const Point3D &p, int *i, int *j)
int fgColor()
int setFgColor(int fc)
int bgColor()
int setBgColor(int bc)
virtual void clear()
Point3D pos()
virtual void jump(const Point3D &pt)
Returns the frame to which the object is attached.
Sets the frame of the object to _frm. If the frame was NULL, the center
position is set to the center of the frame. The funcition returns the
previous frame.
setCenter
Sets the center (i.e. the position of the ogrin of the coordinate system)
to (i, j) (in pixel coordinates)
Returns the scale (the factor which is used when translating
3D coordinates to pixels)
Sets the scale of the system to scale.
Maps the 3D coordinates of the point (x, y, z) to the
frame pixel coordinates (this is a pure virtual function in Coord3D.
Implemented in IsomCoord3D)
Maps the 3D coordinates of the point p to the
frame pixel coordinates (this is a pure virtual function in Coord3D.
Implemented in IsomCoord3D)
Returns the foreground color of the attached frame. Put here for convenience.
Sets the foreground color of the attached frame to color. Put here for
convenience.
Returns the background color of the attached frame. Put here for convenience.
Sets the background color of the attached frame to color. Put here for
convenience.
Clears the attached frame. Put here for convenience.
Returns the current position.
Jumps to the point pt. Changes also the current position of the
attached frame.
color | The color of the dot. If it is FRAME_FG then the current foreground color is used |
color | The color of the dot. If it is FRAME_FG then the current foreground color is used |
color | The color of the line. If it is FRAME_FG then the current foreground color is used |
color | The color of the line. If it is FRAME_FG then the current foreground color is used |
color | The color of the line. If it is FRAME_FG then the current foreground color is used |
color | The color of the line. If it is FRAME_FG then the current foreground color is used |
color | The color of the box. If it is FRAME_FG then the current foreground color is used |
color | The color of the box. If it is FRAME_FG then the current foreground color is used |
color | The color of the cross. If it is FRAME_FG then the current foreground color is used |