66 #ifndef GLUT_PARAPIPED_H_
67 #define GLUT_PARAPIPED_H_
73 #include <GLUT/glut.h>
82 #define GLUT_PA_DECREMENT_CHARACTER 'j'
83 #define GLUT_PA_INCREMENT_CHARACTER 'k'
84 #define GLUT_PA_NUMBER_OF_PARAPIPED_PARAMETERS 9
110 bool enable_translation =
true,
bool enable_pitch =
true,
bool enable_yaw =
true,
bool enable_roll =
true,
111 bool enable_width =
true,
bool enable_height =
true,
bool enable_length =
true,
179 static bool parapiped_enabled;
180 static unsigned int selected_parameter;
183 static unsigned char increment_character;
184 static unsigned char decrement_character;
189 static void (*parapiped_submenu_callback)(
int i);
static double retrieve_translation_x_increment()
returns the increment step used for the x-coordinate of the centre
Definition: glut_parapiped.h:141
static double retrieve_translation_y_increment()
returns the increment step used for the y-coordinate of the centre
Definition: glut_parapiped.h:143
static void update_pitch_increment(double iincrement)
sets the increment step used for the pitch
Definition: glut_parapiped.h:166
static void update_lenght_increment(double iincrement)
sets the increment step used for the length (along z axis)
Definition: glut_parapiped.h:176
#define GLUT_PA_INCREMENT_CHARACTER
Definition: glut_parapiped.h:83
#define GLUT_PA_DECREMENT_CHARACTER
Definition: glut_parapiped.h:82
Definition: glut_parapiped.h:106
static double retrieve_yaw_increment()
returns the increment step used for the yaw
Definition: glut_parapiped.h:149
static void update_translation_z_increment(double iincrement)
sets the increment step used for the z-coordinate of the centre
Definition: glut_parapiped.h:164
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
static double retrieve_length_increment()
returns the increment step used for the length (along z axis)
Definition: glut_parapiped.h:157
static void update_translation_x_increment(double iincrement)
sets the increment step used for the x-coordinate of the centre
Definition: glut_parapiped.h:160
Definition: glut_parapiped.h:79
St_perspective_camera for modeling a perspective camera using the classic Forsyth and Ponce parametri...
static int create_glut_parapiped_submenu(void(*iparapiped_submenu_callback)(int i), Parametric_parapiped *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_PA_INCREMENT_CHARACTER, unsigned char idecrement_char=GLUT_PA_DECREMENT_CHARACTER)
Definition: glut_parapiped.cpp:80
static void parapiped_submenu_glut(int i)
This callback will be executed any time an entry of the parapiped submenu is selected. This is automatically called. Within this function the user defined callback will be called.
Definition: glut_parapiped.cpp:135
Definition: glut_parapiped.h:80
static double retrieve_width_increment()
returns the increment step used for the width (along x axis)
Definition: glut_parapiped.h:153
Definition: glut_parapiped.h:79
Definition: glut_parapiped.h:79
static void update_roll_increment(double iincrement)
sets the increment step used for the roll
Definition: glut_parapiped.h:170
static void update_translation_y_increment(double iincrement)
sets the increment step used for the y-coordinate of the centre
Definition: glut_parapiped.h:162
static void update_height_increment(double iincrement)
sets the increment step used for the height (along y axis)
Definition: glut_parapiped.h:174
static double retrieve_translation_z_increment()
returns the increment step used for the z-coordinate of the centre
Definition: glut_parapiped.h:145
Definition: glut_parapiped.h:80
static void update_width_increment(double iincrement)
sets the increment step used for the width (along x axis)
Definition: glut_parapiped.h:172
static double retrieve_roll_increment()
returns the increment step used for the roll
Definition: glut_parapiped.h:151
static void disable_parapiped()
Disables the parapiped. When the camera is not enabled all submenu selections and the submenu keyboar...
Definition: glut_parapiped.h:138
Definition: glut_parapiped.h:79
static void enable_parapiped()
Enables the parapiped. When the camera is not enabled all submenu selections and the submenu keyboard...
Definition: glut_parapiped.h:132
static double retrieve_height_increment()
returns the increment step used for the height (along y axis)
Definition: glut_parapiped.h:155
get the indices of edges in each direction for i
Definition: APPgetLargeConnectedEdges.m:48
Definition: glut_parapiped.h:79
Definition: glut_parapiped.h:80
static double retrieve_pitch_increment()
returns the increment step used for the pitch
Definition: glut_parapiped.h:147
Definition: glut_parapiped.h:79
static void update_yaw_increment(double iincrement)
sets the increment step used for the yaw
Definition: glut_parapiped.h:168
static void keyboard_callback(unsigned char key)
This is the keyboard_callback for this parapiped submenu. The user HAS to call this in the GLUT keybo...
Definition: glut_parapiped.cpp:141
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...
Definition: st_parapiped.h:99