Render Mode Menu Related Functions | |
bool | menu_is_shown () |
void | show_menu () |
void | hide_menu () |
void | toggle_menu () |
static void | activate_button (Cstr_ptr &file) |
static void | update_button (Cstr_ptr &file) |
static void | toggle_button (Cstr_ptr &file) |
static void | deactivate_button () |
Hooks to be overriden/extended by subclasses | |
virtual void | clean_on_exit () |
virtual void | print_usage () const |
virtual void | init_top () |
virtual void | init_world () |
virtual void | init_view (WINDOW &window) |
virtual void | init_camera (CVIEWptr &v) |
virtual void | init_buttons (CVIEWptr &v) |
virtual void | load_scene () |
virtual bool | load_jot_file (Cstr_ptr &file) |
virtual bool | load_sm_file (Cstr_ptr &file) |
virtual bool | load_obj_file (Cstr_ptr &file) |
virtual BMESH * | new_mesh () const |
virtual GEOM * | new_geom (BMESH *mesh, Cstr_ptr &name) const |
bool | create_mesh (BMESH *mesh, Cstr_ptr &file) const |
virtual void | init_win_cb (WINDOW &win) |
virtual void | init_dev_cb (WINDOW &win) |
virtual void | init_interact_cb (WINDOW &win) |
virtual void | init_menu (WINDOW &win) |
virtual void | init_kbd (WINDOW &win) |
virtual void | init_kbd_nav (WINDOW &win) |
virtual void | init_pens (WINDOW &win) |
virtual void | init_cam_manip (WINDOW &win) |
virtual void | init_obj_manip (WINDOW &) |
Public Member Functions | |
SMVIEWapp (int argc, char **argv) | |
virtual void | init () |
virtual void | Run () |
Static Public Member Functions | |
static BaseJOTapp * | instance () |
static WINDOW * | window (int i=0) |
static void | Clean_On_Exit () |
Protected Member Functions | |
virtual WINDOW * | new_window (WINSYS *win) |
virtual void | init_scene () |
virtual void | init_interact_cb (WINDOW &base_window) |
virtual void | init_kbd (WINDOW &base_window) |
virtual void | init_fsa () |
Static Protected Member Functions | |
static void | splash_cb (void *j, void *jd, int, int) |
Protected Attributes | |
str_ptr | _prog_name |
char ** | _argv |
int | _argc |
int | _wins_to_map |
EaselManager | _easel_manager |
PenManager * | _pen_manager |
KeyMenu * | _key_menu |
WORLDptr | _world |
ARRAY< FD_EVENT * > | _events |
ARRAY< ICON2D * > | _buttons |
Static Protected Attributes | |
static BaseJOTapp * | _instance = 0 |
static ARRAY< WINDOW * > | _windows = 0 |
Classes | |
class | WINDOWjot |
Definition at line 130 of file smview.C.
|
|
|
Definition at line 536 of file base_jotapp.C. References BaseJOTapp::_buttons, BaseJOTapp::instance(), and ARRAY< T >::num(). Referenced by Cam_int_fp::down2(), and Cam_int_edit::down2(). |
|
Callback to toggle camera buttons.
Definition at line 968 of file base_jotapp.C. References BaseJOTapp::_buttons, BaseJOTapp::instance(), and ARRAY< T >::num(). Referenced by BaseJOTapp::init_kbd(), Cam_int_fp::toggle_buttons(), and Cam_int_edit::toggle_buttons(). |
|
Callback to switch cam mode.
Definition at line 914 of file base_jotapp.C. References BaseJOTapp::_buttons, BaseJOTapp::WINDOW::_cam1, BaseJOTapp::WINDOW::_cam2, BaseJOTapp::WINDOW::_cam3, BaseJOTapp::WINDOW::_start, BaseJOTapp::cam_num, Interactor< T, EVENT, STATE >::entry(), BaseJOTapp::instance(), ARRAY< T >::num(), and BaseJOTapp::window(). Referenced by Cam_int::down2(), Cam_int_fp::down2(), and Cam_int_edit::down2(). |
|
Definition at line 78 of file base_jotapp.C. References BaseJOTapp::_events, ARRAY< T >::empty(), Config::get_var_bool(), and ARRAY< T >::pop(). Referenced by BaseJOTapp::Clean_On_Exit(). |
|
Definition at line 84 of file base_jotapp.H. References BaseJOTapp::_instance, and BaseJOTapp::clean_on_exit(). Referenced by BaseJOTapp::BaseJOTapp(). |
|
Definition at line 449 of file base_jotapp.C. References BMESH::empty(), Config::get_var_bool(), BaseJOTapp::new_geom(), BMESH::recenter(), and BMESH::set_center_of_interest(). Referenced by BaseJOTapp::load_obj_file(), and BaseJOTapp::load_sm_file(). |
|
Definition at line 110 of file base_jotapp.H. References BaseJOTapp::_pen_manager, and PenManager::cur_pen(). |
|
Definition at line 562 of file base_jotapp.C. References BaseJOTapp::_buttons, BaseJOTapp::instance(), and ARRAY< T >::num(). Referenced by Cam_int_fp::down2(), and Cam_int_edit::down2(). |
|
Definition at line 103 of file base_jotapp.H. References BaseJOTapp::_easel_manager. |
|
Definition at line 889 of file base_jotapp.C. References BaseJOTapp::WINDOW::_menu, MoveMenu::hide(), and BaseJOTapp::window(). Referenced by BaseJOTapp::toggle_menu(). |
|
Implements MAPPED_CB. Definition at line 844 of file base_jotapp.C. References FD_MANAGER::mgr(), and FD_MANAGER::rem_timeout(). |
|
Reimplemented from BaseJOTapp. Definition at line 173 of file smview.C. References BaseJOTapp::init(), splash_cb(), and the_time(). Referenced by main(). |
|
Definition at line 235 of file base_jotapp.C. References BaseJOTapp::_buttons, NETWORK, ARRAY< T >::push(), and hashvar< T >::set(). Referenced by BaseJOTapp::init(). |
|
|
Definition at line 203 of file base_jotapp.C. References Config::get_var_bool(), and mlib::Wpt::Origin(). Referenced by BaseJOTapp::init(). |
|
Definition at line 598 of file base_jotapp.C. References BaseJOTapp::WINDOW::_mouse_map, BaseJOTapp::WINDOW::_win, Mouse::buttons(), WINSYS::mouse(), Mouse::pointer(), and ButtonMapper::set_devs(). Referenced by BaseJOTapp::init(). |
|
Reimplemented from BaseJOTapp. Definition at line 276 of file smview.C. References SMVIEWapp::WINDOWjot::_otherstart, BaseJOTapp::_windows, VIEWint_list::add(), BaseJOTapp::init_fsa(), and ARRAY< T >::num(). |
|
Definition at line 612 of file base_jotapp.C. References BaseJOTapp::WINDOW::_menu, BaseJOTapp::WINDOW::_view, BaseJOTapp::init_cam_manip(), BaseJOTapp::init_kbd(), BaseJOTapp::init_kbd_nav(), BaseJOTapp::init_menu(), BaseJOTapp::init_obj_manip(), and BaseJOTapp::init_pens(). Referenced by BaseJOTapp::init(), and init_interact_cb(). |
|
Definition at line 215 of file smview.C. References BaseJOTapp::init_interact_cb(). |
|
Definition at line 718 of file base_jotapp.C. References BaseJOTapp::_key_menu, BaseJOTapp::WINDOW::_start, KeyMenu::add_menu_item(), BaseJOTapp::button_toggle(), BaseJOTapp::keymenu_help_cb(), BaseJOTapp::keymenu_quit_cb(), BaseJOTapp::show_menu_cb(), and BaseJOTapp::viewall(). Referenced by BaseJOTapp::init_interact_cb(), TestSPSapp::init_kbd(), and init_kbd(). |
|
|
Definition at line 760 of file base_jotapp.C. References BaseJOTapp::WINDOW::_view. Referenced by BaseJOTapp::init_interact_cb(). |
|
Definition at line 654 of file base_jotapp.C. References BaseJOTapp::WINDOW::_menu, BaseJOTapp::WINDOW::_view, BaseJOTapp::WINDOW::_win, add_render_styles(), Config::get_var_bool(), MoveMenu::hide(), MoveMenu::menu(), WINSYS::menu(), MoveMenu::move_local(), and MoveMenu::show(). Referenced by BaseJOTapp::init_interact_cb(). |
|
Definition at line 224 of file base_jotapp.H. Referenced by BaseJOTapp::init_interact_cb(). |
|
Definition at line 742 of file base_jotapp.C. References BaseJOTapp::_pen_manager, and BaseJOTapp::WINDOW::_start. Referenced by BaseJOTapp::init_interact_cb(). |
|
Reimplemented from BaseJOTapp. Definition at line 195 of file smview.C. References BaseJOTapp::_windows, Config::get_var_str(), BaseJOTapp::init_scene(), ARRAY< T >::num(), and RSMOOTH_SHADE. |
|
Definition at line 136 of file base_jotapp.C. References BaseJOTapp::_argc, BaseJOTapp::_argv, BaseJOTapp::_windows, BaseJOTapp::_wins_to_map, WINSYS::create(), Config::get_var_int(), and BaseJOTapp::new_window(). Referenced by BaseJOTapp::init(). |
|
Definition at line 170 of file base_jotapp.C. References BaseJOTapp::WINDOW::_view, BaseJOTapp::WINDOW::_win, BaseJOTapp::_world, Config::get_var_bool(), Color::get_var_color(), BaseJOTapp::new_view(), and Color::tan(). Referenced by BaseJOTapp::init(). |
|
Definition at line 586 of file base_jotapp.C. References BaseJOTapp::WINDOW::_view, BaseJOTapp::WINDOW::_win, WINSYS::map_cb(), and WINSYS::setup(). Referenced by BaseJOTapp::init(). |
|
Definition at line 158 of file base_jotapp.C. References BaseJOTapp::_world. Referenced by BaseJOTapp::init(). |
|
Definition at line 82 of file base_jotapp.H. References BaseJOTapp::_instance. Referenced by BaseJOTapp::activate_button(), BaseJOTapp::button_toggle(), BaseJOTapp::cam_switch(), BaseJOTapp::deactivate_button(), BaseJOTapp::keymenu_help_cb(), set_pen(), BaseJOTapp::show_menu_cb(), BaseJOTapp::toggle_button(), and BaseJOTapp::update_button(). |
|
Callback to display KeyMenu help menu.
Definition at line 978 of file base_jotapp.C. References BaseJOTapp::_key_menu, KeyMenu::display_menu(), and BaseJOTapp::instance(). Referenced by BaseJOTapp::init_kbd(). |
|
Callback to quit application.
Definition at line 1005 of file base_jotapp.C. References err_msg(), Config::get_var_bool(), and STR::load_factor(). Referenced by BaseJOTapp::init_kbd(). |
|
Definition at line 521 of file base_jotapp.C. References NetStream::ascii_r, LOADobs::LOAD_ERROR_NONE, and LOADobs::notify_load_obs(). Referenced by BaseJOTapp::load_scene(). |
|
Definition at line 493 of file base_jotapp.C. References BaseJOTapp::create_mesh(), OBJReader::get_mesh(), BaseJOTapp::new_mesh(), and OBJReader::read(). Referenced by BaseJOTapp::load_scene(). |
|
Reimplemented in TestSPSapp. Definition at line 404 of file base_jotapp.C. References BaseJOTapp::_argc, BaseJOTapp::_argv, BaseJOTapp::_windows, GEOM::bbox(), DRAWN, BBOX::is_off_screen(), j, BaseJOTapp::load_jot_file(), BaseJOTapp::load_obj_file(), BaseJOTapp::load_sm_file(), ARRAY< T >::num(), VIEW::peek(), BaseJOTapp::pop_arg(), and BaseJOTapp::print_usage(). Referenced by BaseJOTapp::init(), and TestSPSapp::load_scene(). |
|
Definition at line 480 of file base_jotapp.C. References BaseJOTapp::create_mesh(), and BaseJOTapp::new_mesh(). Referenced by BaseJOTapp::load_scene(). |
|
Implements MAPPED_CB. Definition at line 830 of file base_jotapp.C. References BaseJOTapp::_wins_to_map, FD_MANAGER::add_timeout(), and FD_MANAGER::mgr(). |
|
Definition at line 855 of file base_jotapp.C. References BaseJOTapp::WINDOW::_menu, MoveMenu::is_shown(), and BaseJOTapp::window(). Referenced by BaseJOTapp::toggle_menu(). |
|
Definition at line 472 of file base_jotapp.C. Referenced by BaseJOTapp::create_mesh(). |
|
Definition at line 466 of file base_jotapp.C. Referenced by BaseJOTapp::load_obj_file(), and BaseJOTapp::load_sm_file(). |
|
Definition at line 189 of file base_jotapp.C. Referenced by BaseJOTapp::init_view(). |
|
Reimplemented from BaseJOTapp. |
|
Definition at line 111 of file base_jotapp.H. References BaseJOTapp::_pen_manager, and PenManager::next_pen(). Referenced by set_pen(). |
|
Definition at line 803 of file base_jotapp.C. References BaseJOTapp::_argc, and BaseJOTapp::_argv. Referenced by BaseJOTapp::load_scene(). |
|
Definition at line 113 of file base_jotapp.H. References BaseJOTapp::_pen_manager, and PenManager::prev_pen(). Referenced by set_pen(). |
|
Definition at line 387 of file base_jotapp.C. References BaseJOTapp::_prog_name. Referenced by BaseJOTapp::load_scene(). |
|
Definition at line 781 of file base_jotapp.C. References BaseJOTapp::_windows, VIEWint_list::get(), FD_MANAGER::loop(), FD_MANAGER::mgr(), and ARRAY< T >::num(). Referenced by main(). |
|
Definition at line 867 of file base_jotapp.C. References BaseJOTapp::WINDOW::_menu, MoveMenu::menu(), MoveMenu::move_local(), VIEW::peek(), MoveMenu::show(), and BaseJOTapp::window(). Referenced by BaseJOTapp::toggle_menu(). |
|
Callback to toggle showing render style menu.
Definition at line 989 of file base_jotapp.C. References BaseJOTapp::instance(), and BaseJOTapp::toggle_menu(). Referenced by BaseJOTapp::init_kbd(). |
|
Definition at line 150 of file smview.C. Referenced by init(). |
|
Implements FD_TIMEOUT. Definition at line 816 of file base_jotapp.C. References BaseJOTapp::_world. |
|
Definition at line 572 of file base_jotapp.C. References BaseJOTapp::_buttons, BaseJOTapp::instance(), and ARRAY< T >::num(). Referenced by Cam_int_fp::down2(), and Cam_int_fp::orbit(). |
|
Definition at line 902 of file base_jotapp.C. References BaseJOTapp::hide_menu(), BaseJOTapp::menu_is_shown(), and BaseJOTapp::show_menu(). Referenced by BaseJOTapp::show_menu_cb(). |
|
Definition at line 549 of file base_jotapp.C. References BaseJOTapp::_buttons, BaseJOTapp::instance(), and ARRAY< T >::num(). Referenced by Cam_int_fp::down2(). |
|
Callback to reset camera to fit whole scene in view:.
Definition at line 997 of file base_jotapp.C. References VIEW::peek(). Referenced by BaseJOTapp::init_kbd(). |
|
Definition at line 83 of file base_jotapp.H. References BaseJOTapp::_windows. Referenced by BaseJOTapp::cam_switch(), BaseJOTapp::hide_menu(), BaseJOTapp::menu_is_shown(), and BaseJOTapp::show_menu(). |
|
Definition at line 249 of file base_jotapp.H. Referenced by BaseJOTapp::init_top(), BaseJOTapp::load_scene(), and BaseJOTapp::pop_arg(). |
|
Definition at line 248 of file base_jotapp.H. Referenced by BaseJOTapp::init_top(), BaseJOTapp::load_scene(), and BaseJOTapp::pop_arg(). |
|
Definition at line 259 of file base_jotapp.H. Referenced by BaseJOTapp::activate_button(), BaseJOTapp::button_toggle(), BaseJOTapp::cam_switch(), BaseJOTapp::deactivate_button(), BaseJOTapp::init_buttons(), BaseJOTapp::toggle_button(), and BaseJOTapp::update_button(). |
|
Definition at line 254 of file base_jotapp.H. Referenced by BaseJOTapp::easels(). |
|
Definition at line 258 of file base_jotapp.H. Referenced by BaseJOTapp::clean_on_exit(). |
|
Reimplemented in TestSPSapp. Definition at line 244 of file base_jotapp.H. Referenced by BaseJOTapp::BaseJOTapp(), BaseJOTapp::Clean_On_Exit(), and BaseJOTapp::instance(). |
|
Definition at line 256 of file base_jotapp.H. Referenced by TestSPSapp::init_kbd(), init_kbd(), BaseJOTapp::init_kbd(), and BaseJOTapp::keymenu_help_cb(). |
|
Definition at line 255 of file base_jotapp.H. Referenced by BaseJOTapp::cur_pen(), BaseJOTapp::init_pens(), BaseJOTapp::next_pen(), and BaseJOTapp::prev_pen(). |
|
Definition at line 247 of file base_jotapp.H. Referenced by BaseJOTapp::print_usage(). |
|
Definition at line 245 of file base_jotapp.H. Referenced by BaseJOTapp::init(), init_fsa(), BaseJOTapp::init_fsa(), init_scene(), BaseJOTapp::init_top(), BaseJOTapp::load_scene(), BaseJOTapp::Run(), and BaseJOTapp::window(). |
|
Definition at line 250 of file base_jotapp.H. Referenced by BaseJOTapp::init_top(), and BaseJOTapp::mapped(). |
|
Definition at line 257 of file base_jotapp.H. Referenced by BaseJOTapp::init_view(), BaseJOTapp::init_world(), and BaseJOTapp::timeout(). |