The CoordinateFrame class. More...
#include <coordinateframe.h>
Public Member Functions | |
CoordinateFrame (float size) | |
The constructor. | |
virtual void | Render (QGLWidget *glw, QPainter *p=NULL) |
Render the coordinate frame. | |
virtual | ~CoordinateFrame () |
Static Public Member Functions | |
static float | calcSlope (const Point3d &, const Point3d &, float, int, double *, double *, GLint *) |
static void | drawTickedLine (const Point3d &, const Point3d &, float, float, float) |
static float | niceRound (float) |
Public Attributes | |
Color4b | basecolor |
The color used for the ticks, the ticks values and the head of the arrows. | |
bool | drawaxis |
The flag that enables axes rendering. | |
bool | drawlabels |
The flag that enables lablels rendering. | |
bool | drawvalues |
The flag that enables ticks values rendering. | |
QFont | font |
The font used for the labels and the ticks values. | |
float | linewidth |
The width of the lines. | |
float | size |
The distance from the origin to the endpoint of the arrows. | |
Color4b | xcolor |
The color of the X axis and label. | |
Color4b | ycolor |
The color of the Y axis and label. | |
Color4b | zcolor |
The color of the Z axis and label. |
The CoordinateFrame class.
This class can draw the standard icon for a 3D coordinate frame.
Definition at line 59 of file coordinateframe.h.
CoordinateFrame::CoordinateFrame | ( | float | size | ) |
The constructor.
Initialize the CoordinateFrame data.
size | the distance from the origin to the endpoint of the arrows. |
Definition at line 57 of file coordinateframe.cpp.
virtual vcg::CoordinateFrame::~CoordinateFrame | ( | ) | [inline, virtual] |
The destructor.
Definition at line 76 of file coordinateframe.h.
float CoordinateFrame::calcSlope | ( | const Point3d & | a, |
const Point3d & | b, | ||
float | dim, | ||
int | spacing, | ||
double * | mm, | ||
double * | mp, | ||
GLint * | vp | ||
) | [static] |
Definition at line 182 of file coordinateframe.cpp.
void CoordinateFrame::drawTickedLine | ( | const Point3d & | a, |
const Point3d & | b, | ||
float | dim, | ||
float | tickDist, | ||
float | linewidth | ||
) | [static] |
Definition at line 162 of file coordinateframe.cpp.
float CoordinateFrame::niceRound | ( | float | val | ) | [static] |
Definition at line 197 of file coordinateframe.cpp.
void CoordinateFrame::Render | ( | QGLWidget * | glw, |
QPainter * | p = NULL |
||
) | [virtual] |
Render the coordinate frame.
glw | the GL widget. |
Reimplemented in vcg::MovableCoordinateFrame.
Definition at line 65 of file coordinateframe.cpp.
The color used for the ticks, the ticks values and the head of the arrows.
Definition at line 87 of file coordinateframe.h.
The flag that enables axes rendering.
Definition at line 108 of file coordinateframe.h.
The flag that enables lablels rendering.
Definition at line 111 of file coordinateframe.h.
The flag that enables ticks values rendering.
Definition at line 114 of file coordinateframe.h.
The font used for the labels and the ticks values.
Definition at line 105 of file coordinateframe.h.
The width of the lines.
Definition at line 102 of file coordinateframe.h.
The distance from the origin to the endpoint of the arrows.
Definition at line 99 of file coordinateframe.h.
The color of the X axis and label.
Definition at line 90 of file coordinateframe.h.
The color of the Y axis and label.
Definition at line 93 of file coordinateframe.h.
The color of the Z axis and label.
Definition at line 96 of file coordinateframe.h.