KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
kjb::Glut_polymesh Class Reference

#include <glut_polymesh.h>

Static Public Member Functions

static int create_glut_polymesh_submenu (void(*ipolymesh_submenu_callback)(int i), Polymesh *pa, bool enable_translation=true, bool enable_pitch=true, bool enable_yaw=true, bool enable_roll=true, bool enable_width=true, bool enable_height=true, bool enable_length=true, unsigned char iincrement_char=GLUT_PM_INCREMENT_CHARACTER, unsigned char idecrement_char=GLUT_PM_DECREMENT_CHARACTER)
 
static void polymesh_submenu_glut (int i)
 This callback will be executed any time an entry of the polymesh submenu is selected. This is automatically called. Within this function the user defined callback will be called. More...
 
static void keyboard_callback (unsigned char key)
 This is the keyboard_callback for this polymesh submenu. The user HAS to call this in the GLUT keyboard callback when appropriate. More...
 
static void enable_polymesh ()
 Enables the polymesh. When the camera is not enabled all submenu selections and the submenu keyboard callback have no effect. More...
 
static void disable_polymesh ()
 Disables the polymesh. When the camera is not enabled all submenu selections and the submenu keyboard callback have no effect. More...
 
static double retrieve_translation_x_increment ()
 returns the increment step used for translating along the x-axis More...
 
static double retrieve_translation_y_increment ()
 returns the increment step used for translating along the x-axis More...
 
static double retrieve_translation_z_increment ()
 returns the increment step used for translating along the z-axis More...
 
static double retrieve_pitch_increment ()
 returns the increment step used for the pitch More...
 
static double retrieve_yaw_increment ()
 returns the increment step used for the yaw More...
 
static double retrieve_roll_increment ()
 returns the increment step used for the roll More...
 
static double retrieve_width_increment ()
 returns the increment step used for the width (along x axis) More...
 
static double retrieve_height_increment ()
 returns the increment step used for the height (along y axis) More...
 
static double retrieve_length_increment ()
 returns the increment step used for the length (along z axis) More...
 
static void update_translation_x_increment (double iincrement)
 sets the increment step used for translating along the x-axis More...
 
static void update_translation_y_increment (double iincrement)
 sets the increment step used for translating along the y-axis More...
 
static void update_translation_z_increment (double iincrement)
 sets the increment step used for translating along the z-axis More...
 
static void update_pitch_increment (double iincrement)
 sets the increment step used for the pitch More...
 
static void update_yaw_increment (double iincrement)
 sets the increment step used for the yaw More...
 
static void update_roll_increment (double iincrement)
 sets the increment step used for the roll More...
 
static void update_width_increment (double iincrement)
 sets the increment step used for the width (along x axis) More...
 
static void update_height_increment (double iincrement)
 sets the increment step used for the height (along y axis) More...
 
static void update_lenght_increment (double iincrement)
 sets the increment step used for the length (along z axis) More...
 

Member Function Documentation

int Glut_polymesh::create_glut_polymesh_submenu ( void(*)(int i ipolymesh_submenu_callback,
Polymesh pa,
bool  enable_translation = true,
bool  enable_pitch = true,
bool  enable_yaw = true,
bool  enable_roll = true,
bool  enable_width = true,
bool  enable_height = true,
bool  enable_length = true,
unsigned char  iincrement_char = GLUT_PM_INCREMENT_CHARACTER,
unsigned char  idecrement_char = GLUT_PM_DECREMENT_CHARACTER 
)
static
static void kjb::Glut_polymesh::disable_polymesh ( )
inlinestatic

Disables the polymesh. When the camera is not enabled all submenu selections and the submenu keyboard callback have no effect.

static void kjb::Glut_polymesh::enable_polymesh ( )
inlinestatic

Enables the polymesh. When the camera is not enabled all submenu selections and the submenu keyboard callback have no effect.

void Glut_polymesh::keyboard_callback ( unsigned char  key)
static

This is the keyboard_callback for this polymesh submenu. The user HAS to call this in the GLUT keyboard callback when appropriate.

void Glut_polymesh::polymesh_submenu_glut ( int  i)
static

This callback will be executed any time an entry of the polymesh submenu is selected. This is automatically called. Within this function the user defined callback will be called.

static double kjb::Glut_polymesh::retrieve_height_increment ( )
inlinestatic

returns the increment step used for the height (along y axis)

static double kjb::Glut_polymesh::retrieve_length_increment ( )
inlinestatic

returns the increment step used for the length (along z axis)

static double kjb::Glut_polymesh::retrieve_pitch_increment ( )
inlinestatic

returns the increment step used for the pitch

static double kjb::Glut_polymesh::retrieve_roll_increment ( )
inlinestatic

returns the increment step used for the roll

static double kjb::Glut_polymesh::retrieve_translation_x_increment ( )
inlinestatic

returns the increment step used for translating along the x-axis

static double kjb::Glut_polymesh::retrieve_translation_y_increment ( )
inlinestatic

returns the increment step used for translating along the x-axis

static double kjb::Glut_polymesh::retrieve_translation_z_increment ( )
inlinestatic

returns the increment step used for translating along the z-axis

static double kjb::Glut_polymesh::retrieve_width_increment ( )
inlinestatic

returns the increment step used for the width (along x axis)

static double kjb::Glut_polymesh::retrieve_yaw_increment ( )
inlinestatic

returns the increment step used for the yaw

static void kjb::Glut_polymesh::update_height_increment ( double  iincrement)
inlinestatic

sets the increment step used for the height (along y axis)

static void kjb::Glut_polymesh::update_lenght_increment ( double  iincrement)
inlinestatic

sets the increment step used for the length (along z axis)

static void kjb::Glut_polymesh::update_pitch_increment ( double  iincrement)
inlinestatic

sets the increment step used for the pitch

static void kjb::Glut_polymesh::update_roll_increment ( double  iincrement)
inlinestatic

sets the increment step used for the roll

static void kjb::Glut_polymesh::update_translation_x_increment ( double  iincrement)
inlinestatic

sets the increment step used for translating along the x-axis

static void kjb::Glut_polymesh::update_translation_y_increment ( double  iincrement)
inlinestatic

sets the increment step used for translating along the y-axis

static void kjb::Glut_polymesh::update_translation_z_increment ( double  iincrement)
inlinestatic

sets the increment step used for translating along the z-axis

static void kjb::Glut_polymesh::update_width_increment ( double  iincrement)
inlinestatic

sets the increment step used for the width (along x axis)

static void kjb::Glut_polymesh::update_yaw_increment ( double  iincrement)
inlinestatic

sets the increment step used for the yaw


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