vvid_live_video_tableau Class Reference

#include <vvid_live_video_tableau.h>

Inheritance diagram for vvid_live_video_tableau:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 22 of file vvid_live_video_tableau.h.


Public Types

typedef vgui_image_tableau base

Public Member Functions

 vvid_live_video_tableau ()
 vvid_live_video_tableau (int node, int pixel_sample_interval, const cmu_1394_camera_params &cp)
 ~vvid_live_video_tableau ()
vcl_string type_name () const
void set_camera_params (const cmu_1394_camera_params &cp)
 video camera properties.
cmu_1394_camera_params get_camera_params ()
bool video_capabilities (int format, int mode, int frame_rate)
int get_current () const
void set_current (int current)
vcl_string current_capability_desc () const
vcl_vector< vcl_string > get_capability_descriptions () const
bool attach_live_video ()
 live video processing.
bool start_live_video ()
void update_frame ()
void stop_live_video ()
void start_capture (vcl_string const &video_file_name)
 live capture methods.
bool stop_capture ()
bool get_video_live () const
 collection state, i.e. is live and capturing frames.
void set_pixel_sample_interval (int pix_sample_itvl)
 pixel sample interval for display.
void get_camera_rgb_image (vil1_memory_image_of< vil1_rgb< unsigned char > > &im, int pix_sample_interval=1)
 Access to next live camera frames. Causes the camera to take a new frame.
void get_camera_mono_image (vil1_memory_image_of< unsigned char > &im, int pix_sample_interval=1)
vil1_memory_image_of< vil1_rgb
< unsigned char > > 
get_rgb_frame ()
vil1_memory_image_of< unsigned
char > 
get_mono_frame ()
vil1_memory_image_of< vil1_rgb
< unsigned char > > 
get_current_rgb_image (int pix_sample_interval)
 Access to current cached camera frames.
bool get_current_rgb_image (int pix_sample_interval, vil1_memory_image_of< vil1_rgb< unsigned char > > &im)
 User supplies the pointer to the image.
vil1_memory_image_of< unsigned
char > 
get_current_mono_image (int pix_sample_interval)
bool get_current_mono_image (int pix_sample_interval, vil1_memory_image_of< unsigned char > &im)
vcl_string file_name () const
void set_file_name (const vcl_string &fn)
vcl_string pretty_name () const
virtual vil1_image get_image () const
virtual vil_image_view_base_sptr get_image_view () const
virtual vil_image_resource_sptr get_image_resource () 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.

Protected Attributes

vcl_string name_
bool pixels_centered_
vgui_range_map_params_sptr rmp_
vgui_image_rendererrenderer_
vgui_vil_image_renderervil_renderer_

Private Attributes

bool live_
int node_
cmu_1394_camera cam_
int pixel_sample_interval_
vil1_memory_image_of< vil1_rgb
< unsigned char > > 
rgb_frame_
vil1_memory_image_of< unsigned
char > 
mono_frame_

Friends

friend struct vgui_image_tableau_new

Member Typedef Documentation

Definition at line 25 of file vvid_live_video_tableau.h.


Constructor & Destructor Documentation

vvid_live_video_tableau::vvid_live_video_tableau (  ) 

Definition at line 11 of file vvid_live_video_tableau.cxx.

vvid_live_video_tableau::vvid_live_video_tableau ( int  node,
int  pixel_sample_interval,
const cmu_1394_camera_params cp 
)

Definition at line 16 of file vvid_live_video_tableau.cxx.

vvid_live_video_tableau::~vvid_live_video_tableau (  ) 

Definition at line 26 of file vvid_live_video_tableau.cxx.


Member Function Documentation

vcl_string vvid_live_video_tableau::type_name (  )  const [virtual]

Reimplemented from vgui_image_tableau.

Definition at line 33 of file vvid_live_video_tableau.cxx.

void vvid_live_video_tableau::set_camera_params ( const cmu_1394_camera_params cp  ) 

video camera properties.

Definition at line 47 of file vvid_live_video_tableau.cxx.

cmu_1394_camera_params vvid_live_video_tableau::get_camera_params (  )  [inline]

Definition at line 35 of file vvid_live_video_tableau.h.

bool vvid_live_video_tableau::video_capabilities ( int  format,
int  mode,
int  frame_rate 
) [inline]

Definition at line 36 of file vvid_live_video_tableau.h.

int vvid_live_video_tableau::get_current (  )  const [inline]

Definition at line 38 of file vvid_live_video_tableau.h.

void vvid_live_video_tableau::set_current ( int  current  )  [inline]

Definition at line 39 of file vvid_live_video_tableau.h.

vcl_string vvid_live_video_tableau::current_capability_desc (  )  const [inline]

Definition at line 40 of file vvid_live_video_tableau.h.

vcl_vector<vcl_string> vvid_live_video_tableau::get_capability_descriptions (  )  const [inline]

Definition at line 41 of file vvid_live_video_tableau.h.

bool vvid_live_video_tableau::attach_live_video (  ) 

live video processing.

Definition at line 65 of file vvid_live_video_tableau.cxx.

bool vvid_live_video_tableau::start_live_video (  ) 

Definition at line 79 of file vvid_live_video_tableau.cxx.

void vvid_live_video_tableau::update_frame (  ) 

Definition at line 113 of file vvid_live_video_tableau.cxx.

void vvid_live_video_tableau::stop_live_video (  ) 

Definition at line 125 of file vvid_live_video_tableau.cxx.

void vvid_live_video_tableau::start_capture ( vcl_string const &  video_file_name  )  [inline]

live capture methods.

Definition at line 50 of file vvid_live_video_tableau.h.

bool vvid_live_video_tableau::stop_capture (  )  [inline]

Definition at line 51 of file vvid_live_video_tableau.h.

bool vvid_live_video_tableau::get_video_live (  )  const [inline]

collection state, i.e. is live and capturing frames.

Definition at line 53 of file vvid_live_video_tableau.h.

void vvid_live_video_tableau::set_pixel_sample_interval ( int  pix_sample_itvl  )  [inline]

pixel sample interval for display.

Definition at line 56 of file vvid_live_video_tableau.h.

void vvid_live_video_tableau::get_camera_rgb_image ( vil1_memory_image_of< vil1_rgb< unsigned char > > &  im,
int  pix_sample_interval = 1 
)

Access to next live camera frames. Causes the camera to take a new frame.

Definition at line 138 of file vvid_live_video_tableau.cxx.

void vvid_live_video_tableau::get_camera_mono_image ( vil1_memory_image_of< unsigned char > &  im,
int  pix_sample_interval = 1 
)

vil1_memory_image_of< vil1_rgb<unsigned char> > vvid_live_video_tableau::get_rgb_frame (  )  [inline]

Definition at line 64 of file vvid_live_video_tableau.h.

vil1_memory_image_of<unsigned char> vvid_live_video_tableau::get_mono_frame (  )  [inline]

Definition at line 65 of file vvid_live_video_tableau.h.

vil1_memory_image_of< vil1_rgb< unsigned char > > vvid_live_video_tableau::get_current_rgb_image ( int  pix_sample_interval  ) 

Access to current cached camera frames.

Both styles of image access are supported New pointer to the image.

Definition at line 145 of file vvid_live_video_tableau.cxx.

bool vvid_live_video_tableau::get_current_rgb_image ( int  pix_sample_interval,
vil1_memory_image_of< vil1_rgb< unsigned char > > &  im 
)

User supplies the pointer to the image.

Definition at line 153 of file vvid_live_video_tableau.cxx.

vil1_memory_image_of< unsigned char > vvid_live_video_tableau::get_current_mono_image ( int  pix_sample_interval  ) 

Definition at line 160 of file vvid_live_video_tableau.cxx.

bool vvid_live_video_tableau::get_current_mono_image ( int  pix_sample_interval,
vil1_memory_image_of< unsigned char > &  im 
)

Definition at line 168 of file vvid_live_video_tableau.cxx.

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

Handle all events for this tableau.

Reimplemented from vgui_image_tableau.

Definition at line 42 of file vvid_live_video_tableau.cxx.


Member Data Documentation

Definition at line 88 of file vvid_live_video_tableau.h.

Definition at line 90 of file vvid_live_video_tableau.h.

Definition at line 91 of file vvid_live_video_tableau.h.

Definition at line 92 of file vvid_live_video_tableau.h.

Definition at line 93 of file vvid_live_video_tableau.h.

Definition at line 94 of file vvid_live_video_tableau.h.


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

Generated on Sun Nov 22 06:40:12 2009 for contrib/brl/vvid by  doxygen 1.5.5