#include <bgui_vsol_camera_tableau.h>
Public Member Functions | |
bgui_vsol_camera_tableau (const char *n="unnamed") | |
bgui_vsol_camera_tableau (vgui_image_tableau_sptr const &it, const char *n="unnamed") | |
bgui_vsol_camera_tableau (vgui_tableau_sptr const &t, const char *n="unnamed") | |
~bgui_vsol_camera_tableau () | |
virtual bool | handle (vgui_event const &) |
virtual handle method for events. | |
void | set_camera (vgl_p_matrix< double > const &camera) |
the projection camera. | |
vgl_p_matrix< double > | get_camera () const |
bgui_vsol_soview2D_point * | add_vsol_point_3d (vsol_point_3d_sptr const &point) |
display for projected vsol_point_3d. | |
bgui_vsol_soview2D_line_seg * | add_vsol_line_3d (vsol_line_3d_sptr const &line) |
display for vsol_line_3d. | |
bgui_vsol_soview2D_polygon * | add_vsol_polygon_3d (vsol_polygon_3d_sptr const &poly) |
display for vsol_polygon_3d. | |
bgui_vsol_soview2D_polygon * | add_vsol_box_3d (vsol_box_3d_sptr const &box) |
display for a 3D box. | |
void | add_spatial_object_3d (vsol_spatial_object_3d_sptr const &sos) |
display for general spatial object. | |
void | add_spatial_objects_3d (vcl_vector< vsol_spatial_object_3d_sptr > const &sos) |
display methods for sets of objects. | |
void | add_points_3d (vcl_vector< vsol_point_3d_sptr > const &lines) |
void | add_lines_3d (vcl_vector< vsol_line_3d_sptr > const &lines) |
void | add_polygons_3d (vcl_vector< vsol_polygon_3d_sptr > const &lines) |
void | add_boxes_3d (vcl_vector< vsol_box_3d_sptr > const &lines) |
void | clear_all () |
clear the tableau including the highlight map. | |
void | enable_highlight () |
Methods for getting mapped objects. | |
void | disable_highlight () |
void | set_vsol_point_3d_style (const float r, const float g, const float b, const float point_radius) |
Methods for changing the default style of displayable objects. | |
void | set_vsol_line_3d_style (const float r, const float g, const float b, const float line_width) |
void | set_vsol_polygon_3d_style (const float r, const float g, const float b, const float line_width) |
void | set_vsol_box_3d_style (const float r, const float g, const float b, const float line_width) |
vcl_string | name () const |
vcl_string | file_name () const |
vcl_string | pretty_name () const |
vcl_string | type_name () const |
void | set_image (vcl_string const &image) |
void | set_child (vgui_tableau_sptr const &) |
void | set_foreground (float r, float g, float b, float a=1.0f) |
void | set_line_width (float w) |
void | set_point_radius (float r) |
void | add (vgui_soview2D *) |
virtual void | add (vgui_soview *) |
vgui_soview2D_point * | add_point (float x, float y) |
vgui_soview2D_lineseg * | add_line (float x0, float y0, float x1, float y1) |
vgui_soview2D_infinite_line * | add_infinite_line (float a, float b, float c) |
vgui_soview2D_circle * | add_circle (float x, float y, float r) |
vgui_soview2D_ellipse * | add_ellipse (float x, float y, float w, float h, float phi) |
vgui_soview2D_point * | add_point_3dv (double const p[3]) |
vgui_soview2D_lineseg * | add_line_3dv_3dv (double const p1[3], double const p2[3]) |
vgui_soview2D_infinite_line * | add_infinite_line_3dv (double const l[3]) |
vgui_soview2D_circle * | add_circle_3dv (double const point[3], float r) |
vgui_soview2D_linestrip * | add_linestrip (unsigned n, float const *x, float const *y) |
vgui_soview2D_polygon * | add_polygon (unsigned n, float const *x, float const *y) |
void | remove (vgui_soview *vso) |
virtual void | remove (vgui_soview *&) |
void | clear () |
vcl_vector< vgui_soview * > const & | get_all () const |
vgui_image_tableau_sptr | get_image_tableau () const |
void | print_psfile (vcl_string filename, int reduction_factor, bool print_geom_objs, int wd=-1, int ht=-1) |
vgui_soview2D_image * | add_image (float x, float y, vil_image_view_base const &img) |
vgui_soview2D_image * | add_image (float x, float y, vil1_image const &img) |
bool | motion (int x, int y) |
bool | mouse_down (int x, int y, vgui_button button, vgui_modifier modifier) |
void | draw_soviews_render () |
void | draw_soviews_select () |
bool | is_selected (unsigned iden) |
vcl_vector< unsigned > const & | get_selected () const |
vcl_vector< vgui_soview * > | get_selected_soviews () const |
bool | select (unsigned iden) |
bool | deselect (unsigned iden) |
bool | deselect_all () |
bool | is_highlighted (unsigned iden) const |
unsigned | get_highlighted () const |
vgui_soview * | get_highlighted_soview () |
bool | highlight (unsigned iden) |
void | set_current_grouping (vcl_string t_name) |
vcl_string | get_current_grouping () const |
vgui_displaybase_tableau_grouping * | get_grouping_ptr (vcl_string t_name) |
vcl_vector< vcl_string > | get_grouping_names () |
void | set_selection_callback (vgui_displaybase_tableau_selection_callback *cb) |
vcl_vector< unsigned > | get_all_ids () const |
vgui_soview * | contains_hit (vcl_vector< unsigned > hit) |
unsigned | get_id () const |
void | get_parents (vcl_vector< vgui_tableau_sptr > *out) const |
void | get_children (vcl_vector< vgui_tableau_sptr > *out) const |
vgui_tableau_sptr | get_child (unsigned i) const |
virtual bool | add_child (vgui_tableau_sptr const &) |
virtual bool | remove_child (vgui_tableau_sptr const &) |
virtual bool | notify_replaced_child (vgui_tableau_sptr const &old_child, vgui_tableau_sptr const &new_child) |
virtual void | add_popup (vgui_menu &) |
virtual void | get_popup (vgui_popup_params const &, vgui_menu &) |
virtual void | post_message (char const *, void const *) |
virtual void | post_redraw () |
virtual void | post_overlay_redraw () |
virtual void | post_idle_request () |
virtual bool | get_bounding_box (float low[3], float high[3]) const |
virtual bool | draw () |
virtual bool | mouse_up (int x, int y, vgui_button, vgui_modifier) |
virtual bool | key_press (int x, int y, vgui_key, vgui_modifier) |
virtual bool | help () |
virtual bool | idle () |
void | ref () const |
void | unref () const |
Static Public Member Functions | |
static void | get_all (vcl_vector< vgui_tableau_sptr > *out) |
static bool | exists (vgui_tableau_sptr const &) |
Public Attributes | |
GLenum | gl_mode |
Protected Member Functions | |
vgl_point_2d< double > | project (vsol_point_3d_sptr const &p3d) |
void | init () |
Protected Attributes | |
bool | highlight_ |
vcl_map< int, vsol_spatial_object_3d_sptr > | obj_map_ |
vcl_map< vcl_string, vgui_style_sptr > | style_map_ |
int | old_id_ |
vgui_style_sptr | highlight_style_ |
vgui_style_sptr | old_style_ |
vgl_p_matrix< double > | camera_ |
vgui_parent_child_link | image_slot |
vgui_image_tableau_sptr | image_image |
vcl_string | name_ |
vgui_style_sptr | style_ |
vcl_vector< vgui_soview * > | objects |
vcl_map< vcl_string, vgui_displaybase_tableau_grouping > | groupings |
vcl_string | current_grouping |
vcl_vector< unsigned > | selections |
unsigned | highlighted |
int | gl_display_list |
vgui_displaybase_tableau_selection_callback * | cb_ |
Definition at line 37 of file bgui_vsol_camera_tableau.h.
bgui_vsol_camera_tableau::bgui_vsol_camera_tableau | ( | const char * | n = "unnamed" | ) |
Definition at line 17 of file bgui_vsol_camera_tableau.cxx.
bgui_vsol_camera_tableau::bgui_vsol_camera_tableau | ( | vgui_image_tableau_sptr const & | it, |
const char * | n = "unnamed" |
||
) |
Definition at line 20 of file bgui_vsol_camera_tableau.cxx.
bgui_vsol_camera_tableau::bgui_vsol_camera_tableau | ( | vgui_tableau_sptr const & | t, |
const char * | n = "unnamed" |
||
) |
Definition at line 24 of file bgui_vsol_camera_tableau.cxx.
bgui_vsol_camera_tableau::~bgui_vsol_camera_tableau | ( | ) |
Definition at line 28 of file bgui_vsol_camera_tableau.cxx.
void bgui_vsol_camera_tableau::add_boxes_3d | ( | vcl_vector< vsol_box_3d_sptr > const & | lines | ) |
void bgui_vsol_camera_tableau::add_lines_3d | ( | vcl_vector< vsol_line_3d_sptr > const & | lines | ) |
Definition at line 255 of file bgui_vsol_camera_tableau.cxx.
void bgui_vsol_camera_tableau::add_points_3d | ( | vcl_vector< vsol_point_3d_sptr > const & | lines | ) |
Definition at line 247 of file bgui_vsol_camera_tableau.cxx.
void bgui_vsol_camera_tableau::add_polygons_3d | ( | vcl_vector< vsol_polygon_3d_sptr > const & | lines | ) |
Definition at line 263 of file bgui_vsol_camera_tableau.cxx.
void bgui_vsol_camera_tableau::add_spatial_object_3d | ( | vsol_spatial_object_3d_sptr const & | sos | ) |
display for general spatial object.
Definition at line 217 of file bgui_vsol_camera_tableau.cxx.
void bgui_vsol_camera_tableau::add_spatial_objects_3d | ( | vcl_vector< vsol_spatial_object_3d_sptr > const & | sos | ) |
display methods for sets of objects.
Definition at line 207 of file bgui_vsol_camera_tableau.cxx.
bgui_vsol_soview2D_polygon * bgui_vsol_camera_tableau::add_vsol_box_3d | ( | vsol_box_3d_sptr const & | box | ) |
display for a 3D box.
Definition at line 140 of file bgui_vsol_camera_tableau.cxx.
bgui_vsol_soview2D_line_seg * bgui_vsol_camera_tableau::add_vsol_line_3d | ( | vsol_line_3d_sptr const & | line | ) |
display for vsol_line_3d.
Definition at line 103 of file bgui_vsol_camera_tableau.cxx.
bgui_vsol_soview2D_point * bgui_vsol_camera_tableau::add_vsol_point_3d | ( | vsol_point_3d_sptr const & | point | ) |
display for projected vsol_point_3d.
Definition at line 89 of file bgui_vsol_camera_tableau.cxx.
bgui_vsol_soview2D_polygon * bgui_vsol_camera_tableau::add_vsol_polygon_3d | ( | vsol_polygon_3d_sptr const & | poly | ) |
display for vsol_polygon_3d.
Definition at line 119 of file bgui_vsol_camera_tableau.cxx.
void bgui_vsol_camera_tableau::clear_all | ( | ) |
clear the tableau including the highlight map.
Definition at line 270 of file bgui_vsol_camera_tableau.cxx.
void bgui_vsol_camera_tableau::disable_highlight | ( | ) | [inline] |
Definition at line 93 of file bgui_vsol_camera_tableau.h.
void bgui_vsol_camera_tableau::enable_highlight | ( | ) | [inline] |
Methods for getting mapped objects.
Definition at line 92 of file bgui_vsol_camera_tableau.h.
vgl_p_matrix<double> bgui_vsol_camera_tableau::get_camera | ( | ) | const [inline] |
Definition at line 55 of file bgui_vsol_camera_tableau.h.
bool bgui_vsol_camera_tableau::handle | ( | vgui_event const & | e | ) | [virtual] |
virtual handle method for events.
Provide roaming highlighting for soviews in the tableau.
As the mouse moves the soview closest to the mouse is changed to the highlighted style. vgui_displaylist2D_tableau::motion(..) has a mechanism for highlighting the nearest object but it doesn't work.
Reimplemented from vgui_easy2D_tableau.
Definition at line 63 of file bgui_vsol_camera_tableau.cxx.
void bgui_vsol_camera_tableau::init | ( | ) | [protected] |
Definition at line 41 of file bgui_vsol_camera_tableau.cxx.
vgl_point_2d< double > bgui_vsol_camera_tableau::project | ( | vsol_point_3d_sptr const & | p3d | ) | [protected] |
Definition at line 33 of file bgui_vsol_camera_tableau.cxx.
void bgui_vsol_camera_tableau::set_camera | ( | vgl_p_matrix< double > const & | camera | ) | [inline] |
the projection camera.
Definition at line 54 of file bgui_vsol_camera_tableau.h.
void bgui_vsol_camera_tableau::set_vsol_box_3d_style | ( | const float | r, |
const float | g, | ||
const float | b, | ||
const float | line_width | ||
) |
Definition at line 309 of file bgui_vsol_camera_tableau.cxx.
void bgui_vsol_camera_tableau::set_vsol_line_3d_style | ( | const float | r, |
const float | g, | ||
const float | b, | ||
const float | line_width | ||
) |
Definition at line 291 of file bgui_vsol_camera_tableau.cxx.
void bgui_vsol_camera_tableau::set_vsol_point_3d_style | ( | const float | r, |
const float | g, | ||
const float | b, | ||
const float | point_radius | ||
) |
Methods for changing the default style of displayable objects.
Definition at line 282 of file bgui_vsol_camera_tableau.cxx.
void bgui_vsol_camera_tableau::set_vsol_polygon_3d_style | ( | const float | r, |
const float | g, | ||
const float | b, | ||
const float | line_width | ||
) |
Definition at line 300 of file bgui_vsol_camera_tableau.cxx.
vgl_p_matrix<double> bgui_vsol_camera_tableau::camera_ [protected] |
Definition at line 120 of file bgui_vsol_camera_tableau.h.
bool bgui_vsol_camera_tableau::highlight_ [protected] |
Definition at line 113 of file bgui_vsol_camera_tableau.h.
Definition at line 118 of file bgui_vsol_camera_tableau.h.
vcl_map<int, vsol_spatial_object_3d_sptr> bgui_vsol_camera_tableau::obj_map_ [protected] |
Definition at line 115 of file bgui_vsol_camera_tableau.h.
int bgui_vsol_camera_tableau::old_id_ [protected] |
Definition at line 117 of file bgui_vsol_camera_tableau.h.
vgui_style_sptr bgui_vsol_camera_tableau::old_style_ [protected] |
Definition at line 119 of file bgui_vsol_camera_tableau.h.
vcl_map<vcl_string, vgui_style_sptr> bgui_vsol_camera_tableau::style_map_ [protected] |
Definition at line 116 of file bgui_vsol_camera_tableau.h.