vcg::CoordinateFrame Class Reference

The CoordinateFrame class. More...

#include <coordinateframe.h>

Inheritance diagram for vcg::CoordinateFrame:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CoordinateFrame (float size)
 The constructor.
virtual void Render (QGLWidget *glw)
 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.

Detailed Description

The CoordinateFrame class.

This class can draw the standard icon for a 3D coordinate frame.

Definition at line 59 of file coordinateframe.h.


Constructor & Destructor Documentation

CoordinateFrame::CoordinateFrame ( float  size  ) 

The constructor.

Initialize the CoordinateFrame data.

Parameters:
size the distance from the origin to the endpoint of the arrows.

Definition at line 56 of file coordinateframe.cpp.

virtual vcg::CoordinateFrame::~CoordinateFrame (  )  [inline, virtual]

The destructor.

Definition at line 76 of file coordinateframe.h.


Member Function Documentation

float CoordinateFrame::calcSlope ( const Point3d a,
const Point3d b,
float  dim,
int  spacing,
double *  mm,
double *  mp,
GLint *  vp 
) [static]

Definition at line 181 of file coordinateframe.cpp.

void CoordinateFrame::drawTickedLine ( const Point3d a,
const Point3d b,
float  dim,
float  tickDist,
float  linewidth 
) [static]

Definition at line 161 of file coordinateframe.cpp.

float CoordinateFrame::niceRound ( float  val  )  [static]

Definition at line 198 of file coordinateframe.cpp.

void CoordinateFrame::Render ( QGLWidget *  glw  )  [virtual]

Render the coordinate frame.

Parameters:
glw the GL widget.

Reimplemented in vcg::ActiveCoordinateFrame, and vcg::MovableCoordinateFrame.

Definition at line 64 of file coordinateframe.cpp.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:22:58 2013