#include <test_app.H>
Inheritance diagram for TestSPSapp:
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 () |
Public Member Functions | |
TestSPSapp (int argc, char **argv) | |
~TestSPSapp () | |
virtual void | init () |
virtual void | Run () |
EaselManager Related Functions | |
EaselManager & | easels () |
PenManager Related Functions | |
Pen * | cur_pen () |
void | next_pen () |
void | prev_pen () |
EaselManager Related Functions | |
EaselManager & | easels () |
PenManager Related Functions | |
Pen * | cur_pen () |
void | next_pen () |
void | prev_pen () |
EaselManager Related Functions | |
EaselManager & | easels () |
PenManager Related Functions | |
Pen * | cur_pen () |
void | next_pen () |
void | prev_pen () |
Static Public Member Functions | |
static int | toggle_sample_cb (const Event &, State *&) |
static int | toggle_grid_cb (const Event &, State *&) |
static BaseJOTapp * | instance () |
static WINDOW * | window (int i=0) |
static void | Clean_On_Exit () |
KeyMenu Callback Functions | |
static int | cam_switch (const Event &, State *&) |
Callback to switch cam mode. | |
static int | button_toggle (const Event &, State *&) |
Callback to toggle camera buttons. | |
static int | keymenu_help_cb (const Event &, State *&) |
Callback to display KeyMenu help menu. | |
static int | keymenu_quit_cb (const Event &, State *&) |
Callback to quit application. | |
static int | show_menu_cb (const Event &, State *&) |
Callback to toggle showing render style menu. | |
static int | viewall (const Event &, State *&) |
Callback to reset camera to fit whole scene in view:. | |
KeyMenu Callback Functions | |
static int | cam_switch (const Event &, State *&) |
Callback to switch cam mode. | |
static int | button_toggle (const Event &, State *&) |
Callback to toggle camera buttons. | |
static int | keymenu_help_cb (const Event &, State *&) |
Callback to display KeyMenu help menu. | |
static int | keymenu_quit_cb (const Event &, State *&) |
Callback to quit application. | |
static int | show_menu_cb (const Event &, State *&) |
Callback to toggle showing render style menu. | |
static int | viewall (const Event &, State *&) |
Callback to reset camera to fit whole scene in view:. | |
KeyMenu Callback Functions | |
static int | cam_switch (const Event &, State *&) |
Callback to switch cam mode. | |
static int | button_toggle (const Event &, State *&) |
Callback to toggle camera buttons. | |
static int | keymenu_help_cb (const Event &, State *&) |
Callback to display KeyMenu help menu. | |
static int | keymenu_quit_cb (const Event &, State *&) |
Callback to quit application. | |
static int | show_menu_cb (const Event &, State *&) |
Callback to toggle showing render style menu. | |
static int | viewall (const Event &, State *&) |
Callback to reset camera to fit whole scene in view:. | |
Protected Member Functions | |
virtual void | load_scene () |
virtual void | init_kbd (WINDOW &base_window) |
void | create_grid (Wtransf ff) |
void | visit (OctreeNode *node) |
Utility Functions for Subclasses | |
void | pop_arg () |
Creation functions to be overriden by subclasses | |
virtual WINDOW * | new_window (WINSYS *win) |
virtual VIEWptr | new_view (WINSYS *win) |
FD_TIMEOUT Methods | |
virtual void | timeout () |
MAPPED_CB Methods | |
virtual void | mapped () |
virtual void | icon () |
Utility Functions for Subclasses | |
void | pop_arg () |
Creation functions to be overriden by subclasses | |
virtual VIEWptr | new_view (WINSYS *win) |
FD_TIMEOUT Methods | |
virtual void | timeout () |
MAPPED_CB Methods | |
virtual void | mapped () |
virtual void | icon () |
Utility Functions for Subclasses | |
void | pop_arg () |
Creation functions to be overriden by subclasses | |
virtual WINDOW * | new_window (WINSYS *win) |
virtual VIEWptr | new_view (WINSYS *win) |
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 | init_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 &) |
virtual void | init_fsa () |
FD_TIMEOUT Methods | |
virtual void | timeout () |
MAPPED_CB Methods | |
virtual void | mapped () |
virtual void | icon () |
Protected Attributes | |
ARRAY< Bvert_list > | _pts |
LIST< GEOMptr > | _balls |
LIST< GEOMptr > | _boxes |
ARRAY< OctreeNode * > | _nodes |
bool | _show_sample |
bool | _show_grid |
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 TestSPSapp * | _instance = 0 |
static ARRAY< WINDOW * > | _windows = 0 |
Definition at line 5 of file test_app.H.
|
Definition at line 9 of file test_app.H. References _instance, _show_grid, and _show_sample. |
|
Definition at line 17 of file test_app.H. References _balls, _boxes, _nodes, _pts, and ARRAY< T >::clear(). |
|
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 93 of file test_app.C. References _boxes, CONSTRAINT, ARRAY< T >::last(), NETWORK, GEOM::SCREEN_WIDGET, hashenum< T >::set(), and hashvar< T >::set(). Referenced by visit(). |
|
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 in SMVIEWapp. Definition at line 92 of file base_jotapp.C. References BaseJOTapp::_windows, Config::get_var_bool(), BaseJOTapp::init_buttons(), BaseJOTapp::init_camera(), BaseJOTapp::init_dev_cb(), BaseJOTapp::init_fsa(), BaseJOTapp::init_interact_cb(), BaseJOTapp::init_scene(), BaseJOTapp::init_top(), BaseJOTapp::init_view(), BaseJOTapp::init_win_cb(), BaseJOTapp::init_world(), j, BaseJOTapp::load_scene(), ARRAY< T >::num(), VIEW::push(), IDRefImage::setup_bits(), the_time(), and VIEWS. Referenced by SMVIEWapp::init(), and 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 in SMVIEWapp. Definition at line 769 of file base_jotapp.C. References BaseJOTapp::_windows, VIEWint_list::add(), and ARRAY< T >::num(). Referenced by BaseJOTapp::init(), and SMVIEWapp::init_fsa(). |
|
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 SMVIEWapp::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(), init_kbd(), and SMVIEWapp::init_kbd(). |
|
Definition at line 157 of file test_app.C. References BaseJOTapp::_key_menu, KeyMenu::add_menu_item(), BaseJOTapp::init_kbd(), toggle_grid_cb(), and toggle_sample_cb(). |
|
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 in SMVIEWapp. Definition at line 380 of file base_jotapp.C. References IOManager::init(). Referenced by BaseJOTapp::init(), and SMVIEWapp::init_scene(). |
|
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 from BaseJOTapp. Definition at line 119 of file test_app.C. References _balls, _nodes, _pts, CONSTRAINT, EXIST, HEIGHT, j, ARRAY< T >::last(), BaseJOTapp::load_scene(), MIN_DIST, NETWORK, ARRAY< T >::num(), REGULARITY, GEOM::SCREEN_WIDGET, hashenum< T >::set(), hashvar< T >::set(), sps(), and visit(). |
|
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 in SMVIEWapp. Definition at line 170 of file base_jotapp.H. Referenced by BaseJOTapp::init_top(). |
|
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(). |
|
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 196 of file test_app.C. References _boxes, _instance, _show_grid, err_msg(), and ARRAY< T >::num(). Referenced by init_kbd(). |
|
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 169 of file test_app.C. References _balls, _instance, _pts, _show_sample, err_msg(), j, mlib::Vec3< V >::length(), and ARRAY< T >::num(). Referenced by init_kbd(). |
|
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 105 of file test_app.C. References create_grid(), BBOX::dim(), OctreeNode::get_children(), OctreeNode::get_disp(), OctreeNode::get_leaf(), and BBOX::min(). Referenced by load_scene(). |
|
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 40 of file test_app.H. Referenced by load_scene(), toggle_sample_cb(), and ~TestSPSapp(). |
|
Definition at line 41 of file test_app.H. Referenced by create_grid(), toggle_grid_cb(), and ~TestSPSapp(). |
|
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 from BaseJOTapp. Definition at line 38 of file test_app.H. Referenced by TestSPSapp(), toggle_grid_cb(), and toggle_sample_cb(). |
|
Definition at line 256 of file base_jotapp.H. Referenced by init_kbd(), SMVIEWapp::init_kbd(), BaseJOTapp::init_kbd(), and BaseJOTapp::keymenu_help_cb(). |
|
Definition at line 42 of file test_app.H. Referenced by load_scene(), and ~TestSPSapp(). |
|
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 39 of file test_app.H. Referenced by load_scene(), toggle_sample_cb(), and ~TestSPSapp(). |
|
Definition at line 44 of file test_app.H. Referenced by TestSPSapp(), and toggle_grid_cb(). |
|
Definition at line 43 of file test_app.H. Referenced by TestSPSapp(), and toggle_sample_cb(). |
|
Definition at line 245 of file base_jotapp.H. Referenced by BaseJOTapp::init(), SMVIEWapp::init_fsa(), BaseJOTapp::init_fsa(), SMVIEWapp::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(). |