#include <vgui_viewer2D_tableau.h>
Inheritance diagram for vgui_viewer2D_tableau:

Definition at line 30 of file vgui_viewer2D_tableau.h.
Public Types | |
| enum | { normal_zoom, smooth_zoom } |
Public Member Functions | |
| vgui_viewer2D_tableau (vgui_tableau_sptr const &) | |
| Constructor - don't use this, use vgui_viewer2D_tableau_new. | |
| virtual bool | handle (const vgui_event &event) |
| Handle all events sent to this tableau. | |
| virtual vcl_string | type_name () const |
| Returns the type of this tableau ('vgui_viewer2D_tableau'). | |
| void | setup_gl_matrices () |
| Set the correct projection matrix for GL (take account of zoom, drag etc). | |
| void | zoomin (float zoom_factor, int x, int y) |
| Modify the token to zoom in by the given factor, about the given (x,y). | |
| void | zoomout (float zoom_factor, int x, int y) |
| Modify the token to zoom out by the given factor, about the given (x,y). | |
| void | center_image (int w, int h) |
| Centre the image with the given width and height inside the tableau. | |
| void | center_event () |
| Find the image (if it exists) and center it inside the tableau. | |
| bool | mouse_down (int x, int y, vgui_button button, vgui_modifier modifier) |
| Called when the user presses a mouse button in the rendering area. | |
| bool | mouse_drag (int x, int y, vgui_button button, vgui_modifier modifier) |
| Called when the user drags a mouse inside the rendering area. | |
| bool | mouse_up (int x, int y, vgui_button button, vgui_modifier modifier) |
| Called when the user releases a mouse button in the rendering area. | |
| bool | help () |
| Called when the user presses the '?' key. | |
| bool | key_press (int x, int y, vgui_key key, vgui_modifier) |
| Called when the user presses a key. | |
| bool | add_child (vgui_tableau_sptr const &) |
| Adds given tableau as child if none exists, else causes error. | |
| bool | remove_child (vgui_tableau_sptr const &) |
| The child tableau is removed if it is the same as the given tableau. | |
| vcl_string | file_name () const |
| Returns the child's file_name if it exists. | |
| vcl_string | pretty_name () const |
| Returns nice version of the name which also includes details of the child. | |
| bool | get_bounding_box (float low[3], float high[3]) const |
| Get the bounding box for this tableau. | |
| virtual vcl_string | name () const |
| Return the name of the tableau. | |
| void | get_parents (vcl_vector< vgui_tableau_sptr > *out) const |
| Get the parent tableaux for this tableau. | |
| void | get_children (vcl_vector< vgui_tableau_sptr > *out) const |
| Get the child tableaux for this tableau. | |
| vgui_tableau_sptr | get_child (unsigned i) const |
| Get the ith child or return 0. | |
| virtual bool | notify_replaced_child (vgui_tableau_sptr const &old_child, vgui_tableau_sptr const &new_child) |
| Called whenever a child of this tableau is about to be forcibly replaced. | |
| virtual void | add_popup (vgui_menu &) |
| Add the given menu to the popup menu for the tableau. | |
| virtual void | get_popup (vgui_popup_params const &, vgui_menu &) |
| Get the default popup menu for the tableau. | |
| virtual void | post_message (char const *, void const *) |
| Post a message event. | |
| virtual void | post_redraw () |
| Post a draw event. | |
| virtual void | post_overlay_redraw () |
| Post a overlay-redraw event. | |
| virtual void | post_idle_request () |
| Post an idle request event. | |
| virtual bool | draw () |
| Called by default handle when it receives a draw event. | |
| virtual bool | motion (int x, int y) |
| Called by handle when it receives a mouse motion event. | |
| virtual bool | idle () |
| Called when the application is otherwise idle. | |
| void | ref () const |
| Increase the reference count by one (for smart pointers). | |
| void | unref () const |
| Decrease the reference count by one (for smart pointers). | |
Static Public Member Functions | |
| static void | get_all (vcl_vector< vgui_tableau_sptr > *out) |
| Push all tableaux onto the given vector. | |
| static bool | exists (vgui_tableau_sptr const &) |
| Returns true if the given address points to a valid tableau. | |
Public Attributes | |
| vgui_viewer2D_tableau::token_t | token |
| Data on the current state of vgui_viewer2D_tableau (eg the amount we are zoomed). | |
| bool | nice_points |
| bool | nice_lines |
| enum vgui_viewer2D_tableau:: { ... } | zoom_type |
| bool | panning |
| bool | smooth_zooming |
| bool | sweep_zooming |
| bool | sweep_next |
| float | prev_x |
| float | prev_y |
| float | zoom_x |
| float | zoom_y |
| float | new_x |
| float | new_y |
| float | zoom_factor |
| int | npos_x |
| int | npos_y |
| vgui_parent_child_link | child |
| The single child of this tableau. | |
Static Public Attributes | |
| static vgui_DLLDATA const void *const | CENTER_EVENT = "x" |
Protected Member Functions | |
| bool | image_size (int &width, int &height) |
| get the image size. | |
| ~vgui_viewer2D_tableau () | |
| Destructor - called by vgui_viewer2D_tableau_sptr. | |
Classes | |
| struct | token_t |
| Data on the current state of vgui_viewer2D_tableau (eg the amount we are zoomed). More... | |
|
|
Definition at line 94 of file vgui_viewer2D_tableau.h. |
|
|
Constructor - don't use this, use vgui_viewer2D_tableau_new. Takes a child tableau as parameter. Definition at line 43 of file vgui_viewer2D_tableau.cxx. |
|
|
Destructor - called by vgui_viewer2D_tableau_sptr.
Definition at line 60 of file vgui_viewer2D_tableau.cxx. |
|
|
Adds given tableau as child if none exists, else causes error.
Reimplemented from vgui_tableau. Definition at line 42 of file vgui_wrapper_tableau.cxx. |
|
|
Add the given menu to the popup menu for the tableau. This method is for tableaux to implement if they want to _add_ some items to the popup menu. They can assign to or clear 'menu', but that is not recommended as it would remove what other tableaux put there. The recommended usage is to .add() items or to .include() another menu. ** This is an interface method. it abstracts a behaviour. ** Reimplemented in vgui_active_tableau, vgui_clear_tableau, and vgui_satellite_tableau_t< object, data >. Definition at line 315 of file vgui_tableau.cxx. |
|
|
Find the image (if it exists) and center it inside the tableau.
Definition at line 505 of file vgui_viewer2D_tableau.cxx. |
|
||||||||||||
|
Centre the image with the given width and height inside the tableau.
Definition at line 118 of file vgui_viewer2D_tableau.cxx. |
|
|
Called by default handle when it receives a draw event.
Reimplemented in vgui_function_tableau. Definition at line 175 of file vgui_tableau.cxx. |
|
|
Returns true if the given address points to a valid tableau.
Definition at line 384 of file vgui_tableau.cxx. |
|
|
Returns the child's file_name if it exists.
Reimplemented from vgui_tableau. Definition at line 37 of file vgui_wrapper_tableau.cxx. |
|
|
Push all tableaux onto the given vector.
Definition at line 375 of file vgui_tableau.cxx. |
|
||||||||||||
|
Get the bounding box for this tableau. Defaults to getting the bounding box of the child. Reimplemented from vgui_tableau. Definition at line 71 of file vgui_wrapper_tableau.cxx. |
|
|
Get the ith child or return 0.
Definition at line 273 of file vgui_tableau.cxx. |
|
|
Get the child tableaux for this tableau.
Definition at line 266 of file vgui_tableau.cxx. |
|
|
Get the parent tableaux for this tableau.
Definition at line 259 of file vgui_tableau.cxx. |
|
||||||||||||
|
Get the default popup menu for the tableau. If recurse is, true, recursively add the popup menus for children and children's children etc. ** this is a mixin method. it does some work for you. ** Reimplemented in vgui_deck_tableau, vgui_image_tableau, vgui_poly_tableau, vgui_shell_tableau, vgui_tview_launcher_tableau, and vgui_tview_tableau. Definition at line 326 of file vgui_tableau.cxx. |
|
|
Handle all events sent to this tableau. In particular, uses gestures from the user to zoom, drag and centre the display. Reimplemented from vgui_drag_mixin. Definition at line 146 of file vgui_viewer2D_tableau.cxx. |
|
|
Called when the user presses the '?' key.
Reimplemented from vgui_tableau. Definition at line 465 of file vgui_viewer2D_tableau.cxx. |
|
|
Called when the application is otherwise idle. Override if you want to do idle processing. Return false once your idle processing is complete, or if you have no need for more idle processing. Return true if you need more idle processing time. Definition at line 184 of file vgui_tableau.cxx. |
|
||||||||||||
|
get the image size.
Definition at line 485 of file vgui_viewer2D_tableau.cxx. |
|
||||||||||||||||||||
|
Called when the user presses a key.
Reimplemented from vgui_tableau. Definition at line 512 of file vgui_viewer2D_tableau.cxx. |
|
||||||||||||
|
Called by handle when it receives a mouse motion event.
Reimplemented in vgui_displaylist2D_tableau, vgui_function_tableau, and vgui_listmanager2D_tableau. Definition at line 145 of file vgui_tableau.cxx. |
|
||||||||||||||||||||
|
Called when the user presses a mouse button in the rendering area.
Reimplemented from vgui_tableau. Definition at line 240 of file vgui_viewer2D_tableau.cxx. |
|
||||||||||||||||||||
|
Called when the user drags a mouse inside the rendering area.
Reimplemented from vgui_drag_mixin. Definition at line 315 of file vgui_viewer2D_tableau.cxx. |
|
||||||||||||||||||||
|
Called when the user releases a mouse button in the rendering area.
Reimplemented from vgui_tableau. Definition at line 419 of file vgui_viewer2D_tableau.cxx. |
|
|
Return the name of the tableau.
Reimplemented in vgui_easy2D_tableau. Definition at line 89 of file vgui_tableau.h. |
|
||||||||||||
|
Called whenever a child of this tableau is about to be forcibly replaced. This method is called when some part of the program (typically the parent_child_link mechanism) is about to forcibly replace a child of this tableau. The canonical reason to override this is in order to invalidate caches. Definition at line 301 of file vgui_tableau.cxx. |
|
|
Post an idle request event. The fact that this is virtual does not imply that you should go and override it. Posting an idle event request means that your tableau has some idle processing that it'd like to do. This means that your tableau will continue to receive vgui_IDLE events until the event handler returns false (i.e. all idle processing is complete). The idle event handler should return false when it has no idle processing, or has completed its idle processing. It may return true if has only partially completed its idle processing; in this case, it will receive more idle event to allow it to complete processing. Reimplemented in vgui_adaptor_tableau. Definition at line 234 of file vgui_tableau.cxx. |
|
||||||||||||
|
Post a message event. The fact that this is virtual does not imply that you should go and override it. Reimplemented in vgui_adaptor_tableau. Definition at line 204 of file vgui_tableau.cxx. |
|
|
Post a overlay-redraw event. The fact that this is virtual does not imply that you should go and override it. Reimplemented in vgui_adaptor_tableau. Definition at line 224 of file vgui_tableau.cxx. |
|
|
Post a draw event. The fact that this is virtual does not imply that you should go and override it. Reimplemented in vgui_adaptor_tableau. Definition at line 214 of file vgui_tableau.cxx. |
|
|
Returns nice version of the name which also includes details of the child.
Reimplemented from vgui_tableau. Definition at line 32 of file vgui_wrapper_tableau.cxx. |
|
|
Increase the reference count by one (for smart pointers). "const" is for convenience, it is cast away internally. Definition at line 78 of file vgui_tableau.cxx. |
|
|
The child tableau is removed if it is the same as the given tableau.
Reimplemented from vgui_tableau. Definition at line 54 of file vgui_wrapper_tableau.cxx. |
|
|
Set the correct projection matrix for GL (take account of zoom, drag etc).
Definition at line 64 of file vgui_viewer2D_tableau.cxx. |
|
|
Returns the type of this tableau ('vgui_viewer2D_tableau').
Reimplemented from vgui_wrapper_tableau. Definition at line 131 of file vgui_viewer2D_tableau.cxx. |
|
|
Decrease the reference count by one (for smart pointers). "const" is for convenience, it is cast away internally. If the reference count reaches zero then delete the object. Definition at line 86 of file vgui_tableau.cxx. |
|
||||||||||||||||
|
Modify the token to zoom in by the given factor, about the given (x,y). (x, y) are in viewport coordinates. Definition at line 94 of file vgui_viewer2D_tableau.cxx. |
|
||||||||||||||||
|
Modify the token to zoom out by the given factor, about the given (x,y). (x, y) are in viewport coordinates. Definition at line 113 of file vgui_viewer2D_tableau.cxx. |
|
|
Definition at line 88 of file vgui_viewer2D_tableau.h. |
|
|
The single child of this tableau.
Definition at line 65 of file vgui_wrapper_tableau.h. |
|
|
Definition at line 102 of file vgui_viewer2D_tableau.h. |
|
|
Definition at line 102 of file vgui_viewer2D_tableau.h. |
|
|
Definition at line 92 of file vgui_viewer2D_tableau.h. |
|
|
Definition at line 91 of file vgui_viewer2D_tableau.h. |
|
|
Definition at line 104 of file vgui_viewer2D_tableau.h. |
|
|
Definition at line 105 of file vgui_viewer2D_tableau.h. |
|
|
Definition at line 96 of file vgui_viewer2D_tableau.h. |
|
|
Definition at line 100 of file vgui_viewer2D_tableau.h. |
|
|
Definition at line 100 of file vgui_viewer2D_tableau.h. |
|
|
Definition at line 97 of file vgui_viewer2D_tableau.h. |
|
|
Definition at line 99 of file vgui_viewer2D_tableau.h. |
|
|
Definition at line 98 of file vgui_viewer2D_tableau.h. |
|
|
Data on the current state of vgui_viewer2D_tableau (eg the amount we are zoomed).
|
|
|
Definition at line 103 of file vgui_viewer2D_tableau.h. |
|
|
|
|
|
Definition at line 101 of file vgui_viewer2D_tableau.h. |
|
|
Definition at line 101 of file vgui_viewer2D_tableau.h. |
1.4.4