#include <esve/viewers/dim3/Simple_Viewer.hxx>
Inheritance diagram for esve::viewers::dim3::Simple_Viewer:

Public Member Functions | |
| Simple_Viewer (int argc, char **argv, const std::string &label="simple3d") | |
| Constructor. Give the arguments from main(). | |
| int | takeover () |
| Hand off control to the viewer. | |
Protected Types | |
| typedef types::real | real |
| Real numbers. | |
| typedef types::complex | complex |
| Complex numbers. | |
| typedef types::pure | pure |
| Pure quaternions. | |
| typedef types::quat | quat |
| Quaternions. | |
|
typedef components::dimn::Valuator< real > | Valuator |
| Real valuator. | |
|
typedef components::dimn::Valuator< complex > | Complex_Valuator |
| Complex valuator. | |
|
typedef components::dimn::Valuator< pure > | Pure_Valuator |
| Pure quaternion valuator. | |
|
typedef components::dimn::Valuator< quat > | Quat_Valuator |
| Quaternion valuator. | |
| typedef ui::extra::Toggle | Toggle |
| typedef ui::extra::File_Selector | File_Selector |
| typedef ui::base::Keyboard | Keyboard |
| typedef ui::base::Keyboard::Key | Key |
| typedef ui::base::Mouse | Mouse |
| typedef ui::base::Mouse::Button | Button |
Protected Member Functions | |
| const std::string & | help_text () const |
| Some banal help text. | |
| void | initialize () |
| OpenGL initialization; called by the display. Override if you wish. | |
| void | add_geom (engine::dim3::Geom &) |
| Add a geometric object. | |
| void | remove_geom (engine::dim3::Geom &) |
| Remove a geometric object. | |
| void | create_label (const std::string &label) |
| Label for widgets which follow. | |
| Valuator & | create_valuator (real initial_value, const std::string &label="") |
| Create a valuator. | |
| Toggle & | create_toggle (bool initial_value, const std::string &label) |
| Create a toggle. | |
| File_Selector & | create_file_selector (const std::string &initial_value="", const std::string &label="file", const std::string &selector_label="select a file", const std::string &initial_directory=".", const std::string &filter="*") |
| Create a file selector. Just one file selector is allowed. | |
| void | create_help (const std::string &text, const std::string &label="help") |
| Create a help dialog. | |
| Valuator & | create_scaling_valuator (const std::string &label="scale") |
| Create a scaling valuator. | |
| Catch_Function | catch_function () const |
| Catch exceptions from system entry points. | |
| void | catch_function (Catch_Function) |
| Catch exceptions from system entry points. | |
| bool | handle_key_push (Key, const Keyboard &) |
| A key was pushed. | |
| bool | handle_key_release (Key, const Keyboard &) |
| A key was released. | |
| bool | handle_mouse_move (const Mouse &) |
| The mouse moved. | |
| bool | handle_mouse_push (Button, const Mouse &) |
| A mouse button was pushed. | |
| bool | handle_mouse_release (Button, const Mouse &) |
| A mouse button was released. | |
| bool | handle_toggle (const Toggle &) |
| The toggle has changed. | |
| bool | handle_file_selector (const File_Selector &) |
| The filename has changed. | |
| virtual bool | handle_valuator (const Valuator< T_Value > &)=0 |
| The valuator has changed. | |
| virtual Valuator< T_Value > & | create_valuator (const T_Value &initial_value, const std::string &label)=0 |
| Create a valuator. | |
| const Keyboard & | keyboard () const |
| The current state of keyboard keys. | |
| const Mouse & | mouse () const |
| The current state of the mouse. | |
| void | add_handler (kernel::Handler &) |
| Add/remove handlers. (Expert use only.). | |
| void | remove_handler (kernel::Handler &) |
| Add/remove handlers. (Expert use only.). | |
| void | add_handler (components::dimn::Motion_Handler &) |
| Add/remove handlers. (Expert use only.). | |
| void | remove_handler (components::dimn::Motion_Handler &) |
| Add/remove handlers. (Expert use only.). | |
Static Protected Attributes | |
| const real | PI |
| const real | TWO_PI |
| const real | PI_2 |
| const real | PI_4 |
| const real | SQRT2 |
| const real | SQRT1_2 |
| const real | E |
| const real | LOG2E |
| const real | LOG10E |
| const real | LN2 |
| const real | LN10 |
| const real | MAX_REAL |
| const real | MIN_REAL |
1.3.4