mesh_conv::MC_navigator_tool Class Reference

Container class for the viewer, does not need to be weel written. More...

Collaboration diagram for mesh_conv::MC_navigator_tool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MC_navigator_tool ()
MC_matrix current_light1 () const
MC_v3d_vector axis_light1 () const
MC_matrix current_cam1 () const
MC_v3d_vector axis_cam1 () const
void go_forward_trackball_cam1 (const double &d_L)
void go_right_trackball_cam1 (const double &d_L)
void go_up_trackball_cam1 (const double &d_L)
std::ostream & write_cam1 (std::ostream &stream) const
const MC_navigator_toolwrite_cam1_file (std::string &filename) const
MC_navigator_toolread_cam1 (std::istream &param)
MC_navigator_toolread_cam1_file (const std::string &filename)
std::ostream & write_light1 (std::ostream &stream) const
const MC_navigator_toolwrite_light1_file (std::string &filename) const
MC_navigator_toolread_light1 (std::istream &param)
MC_navigator_toolread_light1_file (const std::string &filename)
double delta_time ()
 return current_time-old_time;
double update_fps ()
 update the fps and return fps
int increase_frame_number ()
 increase the frame drawn and return the number
MC_double_vector projection_param () const
MC_matrix projection_matrix () const
MC_v3d_vector ray_world_space_cam1 (const int &x_screen, const int &y_screen) const
 give the (x,y) coordinate in screen space and return the center and the ray pointed in world space

Public Attributes

MC_trackball trackball_cam1
MC_v3d tr_cam1
double dist_cam1
MC_trackball trackball_light1
MC_v3d tr_light1
double dist_light1
unsigned int current_time
unsigned int old_time
unsigned int frame
double current_fps
int x_previous
int y_previous
int x_screen_size_1
int y_screen_size_1
double fov
double znear
double zfar
double size_pointer
bool left_button
bool right_button

Detailed Description

Container class for the viewer, does not need to be weel written.


Constructor & Destructor Documentation

mesh_conv::MC_navigator_tool::MC_navigator_tool (  ) 

Member Function Documentation

MC_v3d_vector mesh_conv::MC_navigator_tool::axis_cam1 (  )  const
Returns:
position,normal,right,up

References current_cam1(), and mesh_conv::MC_matrix::to_matrix3().

Here is the call graph for this function:

MC_v3d_vector mesh_conv::MC_navigator_tool::axis_light1 (  )  const
Returns:
position,normal,right,up

References current_light1(), and mesh_conv::MC_matrix::to_matrix3().

Here is the call graph for this function:

MC_matrix mesh_conv::MC_navigator_tool::current_cam1 (  )  const
MC_matrix mesh_conv::MC_navigator_tool::current_light1 (  )  const
double mesh_conv::MC_navigator_tool::delta_time (  )  [inline]

return current_time-old_time;

References current_time, and old_time.

Referenced by display_callback().

void mesh_conv::MC_navigator_tool::go_forward_trackball_cam1 ( const double &  d_L  ) 

References mesh_conv::MC_quaternion::conjugated(), mesh_conv::MC_trackball::quaternion(), tr_cam1, and trackball_cam1.

Referenced by keyboard_callback().

Here is the call graph for this function:

void mesh_conv::MC_navigator_tool::go_right_trackball_cam1 ( const double &  d_L  ) 

References mesh_conv::MC_quaternion::conjugated(), mesh_conv::MC_trackball::quaternion(), tr_cam1, and trackball_cam1.

Referenced by keyboard_callback().

Here is the call graph for this function:

void mesh_conv::MC_navigator_tool::go_up_trackball_cam1 ( const double &  d_L  ) 

References mesh_conv::MC_quaternion::conjugated(), mesh_conv::MC_trackball::quaternion(), tr_cam1, and trackball_cam1.

Referenced by keyboard_callback().

Here is the call graph for this function:

int mesh_conv::MC_navigator_tool::increase_frame_number (  )  [inline]

increase the frame drawn and return the number

References frame.

Referenced by display_callback().

MC_matrix mesh_conv::MC_navigator_tool::projection_matrix (  )  const

References projection_param(), zfar, and znear.

Here is the call graph for this function:

MC_double_vector mesh_conv::MC_navigator_tool::projection_param (  )  const
MC_v3d_vector mesh_conv::MC_navigator_tool::ray_world_space_cam1 ( const int &  x_screen,
const int &  y_screen 
) const

give the (x,y) coordinate in screen space and return the center and the ray pointed in world space

Returns:
center,ray

References current_cam1(), mesh_conv::MC_matrix::inverted(), mesh_conv::MC_v3d::normalized(), projection_param(), mesh_conv::MC_matrix::to_matrix3(), mesh_conv::MC_matrix::translation_part(), x_screen_size_1, y_screen_size_1, and znear.

Here is the call graph for this function:

MC_navigator_tool & mesh_conv::MC_navigator_tool::read_cam1 ( std::istream &  param  ) 

References dist_cam1, mesh_conv::MC_trackball::quaternion(), tr_cam1, and trackball_cam1.

Referenced by read_cam1_file().

Here is the call graph for this function:

MC_navigator_tool & mesh_conv::MC_navigator_tool::read_cam1_file ( const std::string &  filename  ) 

References read_cam1().

Here is the call graph for this function:

MC_navigator_tool & mesh_conv::MC_navigator_tool::read_light1 ( std::istream &  param  ) 

References dist_light1, mesh_conv::MC_trackball::quaternion(), tr_light1, and trackball_light1.

Referenced by read_light1_file().

Here is the call graph for this function:

MC_navigator_tool & mesh_conv::MC_navigator_tool::read_light1_file ( const std::string &  filename  ) 

References read_light1().

Here is the call graph for this function:

double mesh_conv::MC_navigator_tool::update_fps (  ) 

update the fps and return fps

References current_fps, current_time, frame, and old_time.

Referenced by display_callback().

std::ostream & mesh_conv::MC_navigator_tool::write_cam1 ( std::ostream &  stream  )  const

References dist_cam1, mesh_conv::MC_trackball::quaternion(), tr_cam1, and trackball_cam1.

Referenced by write_cam1_file().

Here is the call graph for this function:

const MC_navigator_tool & mesh_conv::MC_navigator_tool::write_cam1_file ( std::string &  filename  )  const

References write_cam1().

Here is the call graph for this function:

std::ostream & mesh_conv::MC_navigator_tool::write_light1 ( std::ostream &  stream  )  const

References dist_light1, mesh_conv::MC_trackball::quaternion(), tr_light1, and trackball_light1.

Referenced by write_light1_file().

Here is the call graph for this function:

const MC_navigator_tool & mesh_conv::MC_navigator_tool::write_light1_file ( std::string &  filename  )  const

References write_light1().

Here is the call graph for this function:


Member Data Documentation

Referenced by MC_navigator_tool().


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

Generated on Wed Nov 11 17:13:52 2009 by  doxygen 1.6.1