Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
bgui_image_tableau Class Reference

#include <bgui_image_tableau.h>

Inheritance diagram for bgui_image_tableau:
Inheritance graph
[legend]

List of all members.

Public Types

typedef vgui_image_tableau base

Public Member Functions

 bgui_image_tableau ()
 The constructor takes a snapshot of the current viewport and scissor areas.
 bgui_image_tableau (vil_image_resource_sptr const &img, vgui_range_map_params_sptr const &rmp=0)
 bgui_image_tableau (vil_image_view_base const &img, vgui_range_map_params_sptr const &rmp=0)
 bgui_image_tableau (vil1_image const &img, vgui_range_map_params_sptr const &rmp=0)
 bgui_image_tableau (char const *filename, vgui_range_map_params_sptr const &rmp=0)
vcl_string type_name () const
vil1_image get_image () const
 Return the vil1_image.
vil_image_resource_sptr get_image_resource () const
 Return the vil_image_resource.
void image_line (const float col_start, const float row_start, const float col_end, const float row_end, vcl_vector< double > &line_pos, vcl_vector< double > &vals)
 Extract a line of pixel values (force to grey scale).
void image_line (const float col_start, const float row_start, const float col_end, const float row_end, vcl_vector< double > &line_pos, vcl_vector< vcl_vector< double > > &vals)
 Extract a line of pixel values return color if available.
void set_handle_motion ()
 set handle_motion true.
void unset_handle_motion ()
bool handle_motion () const
void lock_linenum (bool b)
void show_image_path (bool show)
vgui_text_tableau_sptr text_tab ()
vcl_string file_name () const
void set_file_name (const vcl_string &fn)
vcl_string pretty_name () const
virtual vil_image_view_base_sptr get_image_view () const
virtual void set_image (vil1_image const &img, vgui_range_map_params_sptr const &rmp)
virtual void set_image (vil1_image const &img)
virtual void set_image (char const *filename, vgui_range_map_params_sptr const &rmp=0)
virtual void set_image_view (vil_image_view_base const &img, vgui_range_map_params_sptr const &rmp)
virtual void set_image_view (vil_image_view_base const &img)
virtual void set_image_view (char const *filename, vgui_range_map_params_sptr const &rmp=0)
virtual void set_image_resource (vil_image_resource_sptr const &img, vgui_range_map_params_sptr const &rmp)
virtual void set_image_resource (vil_image_resource_sptr const &img)
virtual void reread_image ()
virtual unsigned width () const
virtual unsigned height () const
virtual bool get_bounding_box (float low[3], float high[3]) const
void center_pixels (bool v=true)
virtual void set_mapping (vgui_range_map_params_sptr const &rmp)
vgui_range_map_params_sptr map_params ()
virtual void get_popup (const vgui_popup_params &, vgui_menu &m)
virtual vcl_string name () 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 post_message (char const *, void const *)
virtual void post_redraw ()
virtual void post_overlay_redraw ()
virtual void post_idle_request ()
virtual bool draw ()
virtual bool mouse_down (int x, int y, vgui_button, vgui_modifier)
virtual bool mouse_up (int x, int y, vgui_button, vgui_modifier)
virtual bool motion (int x, int y)
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 &)

Protected Member Functions

bool handle (vgui_event const &e)
 Handle all events for this tableau.
double get_pixel_value (const unsigned c, const unsigned r)
 get the pixel value as a double. RGB converted to grey.
vcl_vector< double > get_color_pixel_value (const unsigned c, const unsigned r)
 get the pixel value as color.
void get_pixel_info_from_frame_buffer (const int x, const int y, vgui_event const &e, char *msg)
 Get pixel info from the frame buffer).
void get_pixel_info_from_image (const int x, const int y, vgui_event const &e, char *msg)
 Get pixel info from the image (rather than frame buffer).

Protected Attributes

bool handle_motion_
 If false this tableau stops handling motion.
bool locked_
bool show_path_
vgui_text_tableau_sptr tt_
vcl_string name_
bool pixels_centered_
vgui_range_map_params_sptr rmp_
vgui_image_rendererrenderer_
vgui_vil_image_renderervil_renderer_

Friends

friend struct vgui_image_tableau_new

Detailed Description

Definition at line 57 of file bgui_image_tableau.h.


Member Typedef Documentation

Definition at line 60 of file bgui_image_tableau.h.


Constructor & Destructor Documentation

bgui_image_tableau::bgui_image_tableau ( )

The constructor takes a snapshot of the current viewport and scissor areas.

The destructor restores that state.

Definition at line 23 of file bgui_image_tableau.cxx.

bgui_image_tableau::bgui_image_tableau ( vil_image_resource_sptr const &  img,
vgui_range_map_params_sptr const &  rmp = 0 
)

Definition at line 29 of file bgui_image_tableau.cxx.

bgui_image_tableau::bgui_image_tableau ( vil_image_view_base const &  img,
vgui_range_map_params_sptr const &  rmp = 0 
)

Definition at line 34 of file bgui_image_tableau.cxx.

bgui_image_tableau::bgui_image_tableau ( vil1_image const &  img,
vgui_range_map_params_sptr const &  rmp = 0 
)

Definition at line 39 of file bgui_image_tableau.cxx.

bgui_image_tableau::bgui_image_tableau ( char const *  filename,
vgui_range_map_params_sptr const &  rmp = 0 
)

Definition at line 44 of file bgui_image_tableau.cxx.


Member Function Documentation

vcl_vector< double > bgui_image_tableau::get_color_pixel_value ( const unsigned  c,
const unsigned  r 
) [protected]

get the pixel value as color.

Definition at line 444 of file bgui_image_tableau.cxx.

vil1_image bgui_image_tableau::get_image ( ) const [virtual]

Return the vil1_image.

Reimplemented from vgui_image_tableau.

Definition at line 51 of file bgui_image_tableau.cxx.

vil_image_resource_sptr bgui_image_tableau::get_image_resource ( ) const [virtual]

Return the vil_image_resource.

Reimplemented from vgui_image_tableau.

Definition at line 56 of file bgui_image_tableau.cxx.

void bgui_image_tableau::get_pixel_info_from_frame_buffer ( const int  x,
const int  y,
vgui_event const &  e,
char *  msg 
) [protected]

Get pixel info from the frame buffer).

Definition at line 61 of file bgui_image_tableau.cxx.

void bgui_image_tableau::get_pixel_info_from_image ( const int  x,
const int  y,
vgui_event const &  e,
char *  msg 
) [protected]

Get pixel info from the image (rather than frame buffer).

Definition at line 86 of file bgui_image_tableau.cxx.

double bgui_image_tableau::get_pixel_value ( const unsigned  c,
const unsigned  r 
) [protected]

get the pixel value as a double. RGB converted to grey.

Definition at line 351 of file bgui_image_tableau.cxx.

bool bgui_image_tableau::handle ( vgui_event const &  e) [protected, virtual]

Handle all events for this tableau.

Reimplemented from vgui_image_tableau.

Definition at line 571 of file bgui_image_tableau.cxx.

bool bgui_image_tableau::handle_motion ( ) const [inline]

Definition at line 105 of file bgui_image_tableau.h.

void bgui_image_tableau::image_line ( const float  col_start,
const float  row_start,
const float  col_end,
const float  row_end,
vcl_vector< double > &  line_pos,
vcl_vector< double > &  vals 
)

Extract a line of pixel values (force to grey scale).

Definition at line 482 of file bgui_image_tableau.cxx.

void bgui_image_tableau::image_line ( const float  col_start,
const float  row_start,
const float  col_end,
const float  row_end,
vcl_vector< double > &  line_pos,
vcl_vector< vcl_vector< double > > &  vals 
)

Extract a line of pixel values return color if available.

Definition at line 522 of file bgui_image_tableau.cxx.

void bgui_image_tableau::lock_linenum ( bool  b) [inline]

Definition at line 108 of file bgui_image_tableau.h.

void bgui_image_tableau::set_handle_motion ( ) [inline]

set handle_motion true.

Definition at line 102 of file bgui_image_tableau.h.

void bgui_image_tableau::show_image_path ( bool  show) [inline]

Definition at line 109 of file bgui_image_tableau.h.

vgui_text_tableau_sptr bgui_image_tableau::text_tab ( ) [inline]

Definition at line 110 of file bgui_image_tableau.h.

vcl_string bgui_image_tableau::type_name ( ) const [inline, virtual]

Reimplemented from vgui_image_tableau.

Definition at line 77 of file bgui_image_tableau.h.

void bgui_image_tableau::unset_handle_motion ( ) [inline]

Definition at line 103 of file bgui_image_tableau.h.


Member Data Documentation

If false this tableau stops handling motion.

Definition at line 130 of file bgui_image_tableau.h.

bool bgui_image_tableau::locked_ [protected]

Definition at line 132 of file bgui_image_tableau.h.

Definition at line 133 of file bgui_image_tableau.h.

Definition at line 134 of file bgui_image_tableau.h.


The documentation for this class was generated from the following files: