coord_system Class Reference

#include <utils.hpp>

Collaboration diagram for coord_system:

Collaboration graph
[legend]

List of all members.


Detailed Description

A utility class for drawing coordinate systems of nodes.

Definition at line 59 of file utils.hpp.


Public Member Functions

 coord_system (node *parent, const gsgl::real_t radius, const gsgl::real_t degree_step, const platform::color &draw_color)
void draw (context *)
void init (context *)
 ~coord_system ()

Private Attributes

const gsgl::real_t degree_step
int display_list_id
const platform::color draw_color
nodeparent
const gsgl::real_t radius

Constructor & Destructor Documentation

coord_system ( node parent,
const gsgl::real_t  radius,
const gsgl::real_t  degree_step,
const platform::color draw_color 
)

Definition at line 61 of file utils.cpp.

~coord_system (  ) 

Definition at line 67 of file utils.cpp.

References CHECK_GL_ERRORS, and coord_system::display_list_id.


Member Function Documentation

void draw ( context c  ) 

void init ( context c  ) 

Definition at line 76 of file utils.cpp.

Referenced by solar_system::init(), and galaxy::init().


Member Data Documentation

const gsgl::real_t degree_step [private]

Definition at line 62 of file utils.hpp.

Referenced by coord_system::draw().

int display_list_id [private]

Definition at line 64 of file utils.hpp.

Referenced by coord_system::draw(), and coord_system::~coord_system().

const platform::color draw_color [private]

Definition at line 63 of file utils.hpp.

Referenced by coord_system::draw().

node* parent [private]

Definition at line 61 of file utils.hpp.

Referenced by coord_system::draw().

const gsgl::real_t radius [private]

Definition at line 62 of file utils.hpp.

Referenced by coord_system::draw().


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

Generated on Sat Mar 1 13:50:07 2008 for Periapsis Project by  doxygen 1.5.5