Classes | Public Member Functions | Protected Member Functions | Protected Attributes

RL_ViewGUI Class Reference

GUI code for RL_Reader application. More...

#include <RL_ViewGUI.hpp>

List of all members.

Classes

class  ModelColumns

Public Member Functions

 RL_ViewGUI ()
 RL_ViewGUI(): Default Constructor.
virtual ~RL_ViewGUI ()
 ~RL_ViewGUI(): Default Destructor

Protected Member Functions

void SetLogo (RL_ImageFrame *Frame, guint8 *log_buf)
 SetLogo: setting the logo on a given RL_ImageFrame with a buffered image.
void SetThreadStatus (bool runStatus)
 SetThreadStatus: set the thread status for frame grabbing.
bool GetThreadStatus ()
 GetThreadStatus: get the thread status for frame grabbing.
void SetFrameIndex (int i, int n)
 SetFrameIndex: update frame selections.
int GetFrameIndex (int i)
 GetFrameIndex: get frame selections.
void GrabFrames ()
 GrabFrames: thread routine for grabbing the frames from the sequence file.
void UpdateFrames ()
 UpdateFrames: starts frame grabbing thread.
void UpdateStereoParam ()
 UpdateStereoParam: updates stereo parameters for selected frames.
void SelectFolder ()
 SelectFolder: a callback function for the folder selection.
void SelectFrame (int i)
 SelectFrame: a callback function for the frame selection.
void OnPlay ()
 OnPlay: a callback function for the Play button.
void OnPause ()
 OnPause: a callback function for the Pause button.
void OnStop ()
 OnStop: a callback function for the Stop button.
int DisparityCheck ()
 DisparityCheck: used to fix the value of disparity values from the ScaleH widget for the disparity.
bool OnDestroy (GdkEventAny *event)
 OnDestroy: a callback function on delete signal.
bool OnIdle ()
 OnIdle: a callback function on idle signal.
bool OpenFile (int)
 OpenFile: opens nth RoadLab sequence.

Protected Attributes

int filenumber
char * filenameBuf
Glib::ustring folderPath
RL_SequenceReaderinputStream
RL_StereoProcessorstereoProcessor
RL_StereoParams stereoParams
Gtk::Window * window
Glib::Thread * grabLoop
Glib::Dispatcher stopEvent
Glib::Mutex runMutex
Glib::Mutex stereoMutex
Glib::Mutex playMutex
Glib::Mutex frameMutex
RL_ImageFrameimageFrame [2]
RL_ImageFramerectified [2]
RL_ImageFramestereoFrame
Gtk::SpinButton * windowSizeSpin
Gtk::SpinButton * uniqueSpin
Gtk::SpinButton * thresholdSpin
Gtk::SpinButton * speckleSpin
Gtk::SpinButton * speckleWindowSpin
Gtk::SpinButton * filterSizeSpin
Gtk::SpinButton * filterCapSpin
Gtk::HScale * disparityScale
Gtk::Button * stopButton
Gtk::Button * playButton
Gtk::Button * pauseButton
Gtk::FileChooserButton * folderChooser
Gtk::ComboBox * frameSelector [2]
Glib::RefPtr< Gnome::Glade::Xml > refBuilder
Glib::RefPtr< Gtk::ListStore > frameSelectionModel
guint8 logobuf [320 *240 *3]
guint8 callogobuf [320 *240 *3]
int camOnFrame [2]
unsigned int * serials
bool threadRun
bool flipStatus
bool playing
bool stopping
bool pausing
bool fileOpened
bool frameSelectionChanged
CvMat cameraMatrix
CvMat distCoeffs

Detailed Description

GUI code for RL_Reader application.


Member Function Documentation

int RL_ViewGUI::GetFrameIndex ( int  i ) [protected]

GetFrameIndex: get frame selections.

Parameters:
inti - RL_ImageFrame widget index
Returns:
int returns selected frame index for the RL_ImageFRame widget
bool RL_ViewGUI::GetThreadStatus (  ) [protected]

GetThreadStatus: get the thread status for frame grabbing.

Returns:
bool returns true if the frame grabbing thread is running
bool RL_ViewGUI::OpenFile ( int  n ) [protected]

OpenFile: opens nth RoadLab sequence.

Parameters:
intn - sequence file index
Returns:
bool - returns true if the file is opened successfully
void RL_ViewGUI::SelectFrame ( int  i ) [protected]

SelectFrame: a callback function for the frame selection.

Parameters:
inti - RL_ImageFrame widget index
void RL_ViewGUI::SetFrameIndex ( int  i,
int  n 
) [protected]

SetFrameIndex: update frame selections.

Parameters:
inti - RL_ImageFrame widget index
intn - selection
void RL_ViewGUI::SetLogo ( RL_ImageFrame Frame,
guint8 *  log_buf 
) [protected]

SetLogo: setting the logo on a given RL_ImageFrame with a buffered image.

Parameters:
RL_ImageFrame*Frame - a pointer to RL_ImageFrame widget for setting the logo
guint8*log_buf - a buffered logo
void RL_ViewGUI::SetThreadStatus ( bool  runStatus ) [protected]

SetThreadStatus: set the thread status for frame grabbing.

Parameters:
boolrunStatus - set false to stop the frame grabbing thread

Member Data Documentation

guint8 RL_ViewGUI::callogobuf[320 *240 *3] [protected]

Buffer for storing the logo image

guint8 RL_ViewGUI::logobuf[320 *240 *3] [protected]

Buffer for storing the logo image


The documentation for this class was generated from the following files:
 All Classes Functions Variables