#include <main_frame.h>
Collaboration diagram for MainFrame:

Definition at line 104 of file main_frame.h.
Public Member Functions | |
| MainFrame () | |
| Constructors. | |
| MainFrame (wxWindow *parent, wxWindowID id=SYMBOL_MAINFRAME_IDNAME, const wxString &caption=SYMBOL_MAINFRAME_TITLE, const wxPoint &pos=SYMBOL_MAINFRAME_POSITION, const wxSize &size=SYMBOL_MAINFRAME_SIZE, long style=SYMBOL_MAINFRAME_STYLE) | |
| ~MainFrame () | |
| bool | Create (wxWindow *parent, wxWindowID id=SYMBOL_MAINFRAME_IDNAME, const wxString &caption=SYMBOL_MAINFRAME_TITLE, const wxPoint &pos=SYMBOL_MAINFRAME_POSITION, const wxSize &size=SYMBOL_MAINFRAME_SIZE, long style=SYMBOL_MAINFRAME_STYLE) |
| void | CreateControls () |
| Creates the controls and sizers. | |
| void | OnCloseWindow (wxCloseEvent &event) |
| wxEVT_CLOSE_WINDOW event handler for ID_MAIN_FRAME | |
| void | OnMenuitemFileExitClick (wxCommandEvent &event) |
| wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENUITEM_FILE_EXIT | |
| void | OnMenuitemActionsStopServerClick (wxCommandEvent &event) |
| wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENUITEM_ACTIONS_STOP_SERVER | |
| void | OnMenuitemActionsStopReceivingClick (wxCommandEvent &event) |
| wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENUITEM_ACTIONS_STOP_RECEIVING | |
| void | OnMenuPreferencesClick (wxCommandEvent &event) |
| wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU_PREFERENCES | |
| void | OnMenuHelpAuthorsClick (wxCommandEvent &event) |
| wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU_HELP_AUTHORS | |
| void | OnMenuHelpVersionClick (wxCommandEvent &event) |
| wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU_HELP_VERSION | |
| void | OnWorkerEvent (wxCommandEvent &event) |
| void | OnImageReceivedFromNet (wxCommandEvent &event) |
| void | OnAudioFrameReceivedFromNet (wxCommandEvent &event) |
| void | OnStreamerCtrlThreadEnd () |
| void | OnReceiverCtrlThreadEnd () |
| void | reset_displayed_image_vector () |
| void | manage_garbage_collector_for_images (IplImage *image, int stream_id) |
| void | clear_garbage_collector_for_images () |
| void | destroy_garbage_collector_for_images () |
| void | PrintStatusBarMessage (const wxChar *message, int field=0) |
| void | SetFacetrackOptions (wxArrayString *cascade_array, int cascade_count, int radius_min, int radius_max, int center_x, int center_y, int freeze_frame_bound, double track_window_hitrate, bool gcard_use, bool flipped_mode, int num_streams=-1, bool algo_simple=true) |
| wxBitmap | GetBitmapResource (const wxString &name) |
| Retrieves bitmap resources. | |
| wxIcon | GetIconResource (const wxString &name) |
| Retrieves icon resources. | |
| int | GetMaxRadius () |
| int | GetMinRadius () |
| int | GetCenterX () |
| int | GetCenterY () |
| wxArrayString * | GetCascadeArray () |
| int | GetCascadeSize () |
| int | GetFreezeFrameBound () |
| double | GetTrackWindowHitrate () |
| bool | GetAlgoSimpleStatus () |
| bool | GetGCardUseStatus () |
| bool | GetFlippedModeStatus () |
| bool | is_face_detect_options_set () |
Static Public Member Functions | |
| static void | on_display_image_cb (IplImage *image, int track_id, char *window_id, void *callback_data) |
| static void | on_destroy_image_cb (char *window_id, void *callback_data) |
| static void | on_create_image_cb (char *window_id, void *callback_data) |
| static bool | ShowToolTips () |
| Should we show tooltips? | |
Public Attributes | |
| wxStatusBar * | m_status_bar |
Private Attributes | |
| StreamerCtrlThread * | m_streamer_thread |
| ReceiverCtrlThread * | m_receiver_thread |
| vector< class DisplayImageFrame * > * | _displayed_frames |
| vector< list< IplImage * > * > * | _gc_images |
| bool | face_detect |
| bool | ctrl_initialized |
| wxMutex * | _paint_mutex |
| wxArrayString * | cascade_array |
| int | cascade_size |
| int | radius_min |
| int | radius_max |
| int | center_x |
| int | center_y |
| double | track_window_hitrate |
| int | freeze_frame_bound |
| bool | gcard_use |
| bool | flipped_mode |
| bool | is_multi_stream |
| int | num_streams |
| bool | algo_simple |
| OmniAlgoSimpleDetection< OmniFastLookupTable, int, IplImage, CvPoint > * | ctrl_lookup |
| OmniAlgoSimpleDetection< OmniGCardConverter, double, IplImage, CvPoint > * | ctrl_gcard |
| OmniAlgoVRFilterDetection< OmniFastLookupTable, int, IplImage, CvPoint > * | ctrl_vr_lookup |
| OmniAlgoVRFilterDetection< OmniGCardConverter, double, IplImage, CvPoint > * | ctrl_vr_gcard |
| MainFrame::MainFrame | ( | ) |
MainFrame constructors
Definition at line 104 of file main_frame.cpp.
| MainFrame::MainFrame | ( | wxWindow * | parent, | |
| wxWindowID | id = SYMBOL_MAINFRAME_IDNAME, |
|||
| const wxString & | caption = SYMBOL_MAINFRAME_TITLE, |
|||
| const wxPoint & | pos = SYMBOL_MAINFRAME_POSITION, |
|||
| const wxSize & | size = SYMBOL_MAINFRAME_SIZE, |
|||
| long | style = SYMBOL_MAINFRAME_STYLE | |||
| ) |
Definition at line 109 of file main_frame.cpp.
References _displayed_frames, _gc_images, _paint_mutex, Create(), ctrl_gcard, ctrl_initialized, ctrl_lookup, ctrl_vr_gcard, ctrl_vr_lookup, face_detect, m_receiver_thread, m_streamer_thread, NULL, and num_streams.
Here is the call graph for this function:

| MainFrame::~MainFrame | ( | ) |
Definition at line 137 of file main_frame.cpp.
References _displayed_frames, ReceiverCtrlThread::isReceiving(), StreamerCtrlThread::isStreaming(), m_receiver_thread, m_streamer_thread, NULL, reset_displayed_image_vector(), ReceiverCtrlThread::StopReceiving(), and StreamerCtrlThread::stopStreaming().
Here is the call graph for this function:

| void MainFrame::clear_garbage_collector_for_images | ( | ) |
Definition at line 487 of file main_frame.cpp.
References _gc_images.
Referenced by destroy_garbage_collector_for_images(), and OnReceiverCtrlThreadEnd().
Here is the caller graph for this function:

| bool MainFrame::Create | ( | wxWindow * | parent, | |
| wxWindowID | id = SYMBOL_MAINFRAME_IDNAME, |
|||
| const wxString & | caption = SYMBOL_MAINFRAME_TITLE, |
|||
| const wxPoint & | pos = SYMBOL_MAINFRAME_POSITION, |
|||
| const wxSize & | size = SYMBOL_MAINFRAME_SIZE, |
|||
| long | style = SYMBOL_MAINFRAME_STYLE | |||
| ) |
MyFrame creator
Definition at line 168 of file main_frame.cpp.
References CreateControls(), m_status_bar, and NULL.
Referenced by MainFrame().
Here is the call graph for this function:

Here is the caller graph for this function:

| void MainFrame::CreateControls | ( | ) |
Control creation for MyFrame
Definition at line 187 of file main_frame.cpp.
References ID_MENU_HELP_AUTHORS, ID_MENU_HELP_VERSION, ID_MENU_PREFERENCES, ID_MENUITEM_ACTIONS_STOP_RECEIVING, ID_MENUITEM_ACTIONS_STOP_SERVER, ID_MENUITEM_FILE_EXIT, ID_STATUSBAR, and m_status_bar.
Referenced by Create().
Here is the caller graph for this function:

| void MainFrame::destroy_garbage_collector_for_images | ( | ) |
Definition at line 464 of file main_frame.cpp.
References _gc_images, clear_garbage_collector_for_images(), and NULL.
Referenced by OnCloseWindow().
Here is the call graph for this function:

Here is the caller graph for this function:

| bool MainFrame::GetAlgoSimpleStatus | ( | ) |
Definition at line 774 of file main_frame.cpp.
References algo_simple.
Referenced by ReceiverCtrlThread::doOmniStuffParsing(), StreamerCtrlThread::initializeOmniStuff(), ReceiverCtrlThread::initializeOmniStuff(), and StreamerCtrlThread::onParsableImage().
Here is the caller graph for this function:

| wxBitmap MainFrame::GetBitmapResource | ( | const wxString & | name | ) |
Get bitmap resources
Definition at line 254 of file main_frame.cpp.
| wxArrayString * MainFrame::GetCascadeArray | ( | ) |
Definition at line 754 of file main_frame.cpp.
References cascade_array.
Referenced by StreamerCtrlThread::initializeOmniStuff(), and ReceiverCtrlThread::initializeOmniStuff().
Here is the caller graph for this function:

| int MainFrame::GetCascadeSize | ( | ) |
Definition at line 769 of file main_frame.cpp.
References cascade_size.
Referenced by StreamerCtrlThread::initializeOmniStuff(), and ReceiverCtrlThread::initializeOmniStuff().
Here is the caller graph for this function:

| int MainFrame::GetCenterX | ( | ) |
Definition at line 744 of file main_frame.cpp.
References center_x.
Referenced by StreamerCtrlThread::initializeOmniStuff(), and ReceiverCtrlThread::initializeOmniStuff().
Here is the caller graph for this function:

| int MainFrame::GetCenterY | ( | ) |
Definition at line 749 of file main_frame.cpp.
References center_y.
Referenced by StreamerCtrlThread::initializeOmniStuff(), and ReceiverCtrlThread::initializeOmniStuff().
Here is the caller graph for this function:

| bool MainFrame::GetFlippedModeStatus | ( | ) |
Definition at line 789 of file main_frame.cpp.
References flipped_mode.
Referenced by StreamerCtrlThread::initializeOmniStuff(), and ReceiverCtrlThread::initializeOmniStuff().
Here is the caller graph for this function:

| int MainFrame::GetFreezeFrameBound | ( | ) |
Definition at line 759 of file main_frame.cpp.
References freeze_frame_bound.
Referenced by StreamerCtrlThread::initializeOmniStuff(), and ReceiverCtrlThread::initializeOmniStuff().
Here is the caller graph for this function:

| bool MainFrame::GetGCardUseStatus | ( | ) |
Definition at line 784 of file main_frame.cpp.
References gcard_use.
Referenced by ReceiverCtrlThread::Create().
Here is the caller graph for this function:

| wxIcon MainFrame::GetIconResource | ( | const wxString & | name | ) |
Get icon resources
Definition at line 266 of file main_frame.cpp.
| int MainFrame::GetMaxRadius | ( | ) |
Definition at line 734 of file main_frame.cpp.
References radius_max.
Referenced by StreamerCtrlThread::initializeOmniStuff(), and ReceiverCtrlThread::initializeOmniStuff().
Here is the caller graph for this function:

| int MainFrame::GetMinRadius | ( | ) |
Definition at line 739 of file main_frame.cpp.
References radius_min.
Referenced by StreamerCtrlThread::initializeOmniStuff(), and ReceiverCtrlThread::initializeOmniStuff().
Here is the caller graph for this function:

| double MainFrame::GetTrackWindowHitrate | ( | ) |
Definition at line 764 of file main_frame.cpp.
References track_window_hitrate.
Referenced by StreamerCtrlThread::initializeOmniStuff(), and ReceiverCtrlThread::initializeOmniStuff().
Here is the caller graph for this function:

| bool MainFrame::is_face_detect_options_set | ( | ) |
Definition at line 779 of file main_frame.cpp.
References face_detect.
Referenced by StreamerCtrlThread::initializeOmniStuff(), ReceiverCtrlThread::initializeOmniStuff(), and ReceiverCtrlThread::onImageReceivedFromNet().
Here is the caller graph for this function:

| void MainFrame::manage_garbage_collector_for_images | ( | IplImage * | image, | |
| int | stream_id | |||
| ) |
Definition at line 504 of file main_frame.cpp.
References _gc_images.
Referenced by on_display_image_cb(), and OnImageReceivedFromNet().
Here is the caller graph for this function:

| void MainFrame::on_create_image_cb | ( | char * | window_id, | |
| void * | callback_data | |||
| ) | [static] |
Definition at line 566 of file main_frame.cpp.
| void MainFrame::on_destroy_image_cb | ( | char * | window_id, | |
| void * | callback_data | |||
| ) | [static] |
Definition at line 562 of file main_frame.cpp.
| void MainFrame::on_display_image_cb | ( | IplImage * | image, | |
| int | track_id, | |||
| char * | window_id, | |||
| void * | callback_data | |||
| ) | [static] |
Definition at line 537 of file main_frame.cpp.
References _displayed_frames, manage_garbage_collector_for_images(), and NULL.
Here is the call graph for this function:

| void MainFrame::OnAudioFrameReceivedFromNet | ( | wxCommandEvent & | event | ) |
Definition at line 460 of file main_frame.cpp.
| void MainFrame::OnCloseWindow | ( | wxCloseEvent & | event | ) |
wxEVT_CLOSE_WINDOW event handler for ID_MAIN_FRAME
Definition at line 277 of file main_frame.cpp.
References destroy_garbage_collector_for_images(), ReceiverCtrlThread::isReceiving(), StreamerCtrlThread::isStreaming(), m_receiver_thread, and m_streamer_thread.
Here is the call graph for this function:

| void MainFrame::OnImageReceivedFromNet | ( | wxCommandEvent & | event | ) |
Definition at line 574 of file main_frame.cpp.
References _displayed_frames, DEBUG_PRINT, face_detect, _image_received_data::image, manage_garbage_collector_for_images(), NULL, _image_received_data::stream_id, Update(), and video_received_window.
Here is the call graph for this function:

| void MainFrame::OnMenuHelpAuthorsClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU_HELP_AUTHORS
Definition at line 699 of file main_frame.cpp.
References ID_AUTHORS_DIALOG, and NULL.
| void MainFrame::OnMenuHelpVersionClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU_HELP_VERSION
Definition at line 713 of file main_frame.cpp.
References ID_VERSION_DIALOG, and NULL.
| void MainFrame::OnMenuitemActionsStopReceivingClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENUITEM_ACTIONS_STOP_RECEIVING
Definition at line 352 of file main_frame.cpp.
References ReceiverCtrlThread::isReceiving(), m_receiver_thread, NULL, PrintStatusBarMessage(), and ReceiverCtrlThread::StopReceiving().
Here is the call graph for this function:

| void MainFrame::OnMenuitemActionsStopServerClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENUITEM_ACTIONS_STOP_SERVER
Definition at line 320 of file main_frame.cpp.
References StreamerCtrlThread::isStreaming(), m_streamer_thread, NULL, PrintStatusBarMessage(), and StreamerCtrlThread::stopStreaming().
Here is the call graph for this function:

| void MainFrame::OnMenuitemFileExitClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENUITEM_FILE_EXIT
Definition at line 307 of file main_frame.cpp.
| void MainFrame::OnMenuPreferencesClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU_PREFERENCES
Definition at line 222 of file main_frame.cpp.
References ID_OPTIONS, m_receiver_thread, m_streamer_thread, and NULL.
| void MainFrame::OnReceiverCtrlThreadEnd | ( | ) |
Definition at line 410 of file main_frame.cpp.
References clear_garbage_collector_for_images(), ctrl_gcard, ctrl_initialized, ctrl_lookup, ctrl_vr_gcard, ctrl_vr_lookup, face_detect, gcard_use, OmniAlgoSimpleDetection< ConverterT, AngleT, ImageT, PointT >::loop_stop(), OmniAlgoVRFilterDetection< ConverterT, AngleT, ImageT, PointT >::loop_stop(), m_receiver_thread, NULL, reset_displayed_image_vector(), and video_received_window.
Referenced by ReceiverCtrlThread::Entry().
Here is the call graph for this function:

Here is the caller graph for this function:

| void MainFrame::OnStreamerCtrlThreadEnd | ( | ) |
Definition at line 386 of file main_frame.cpp.
References m_streamer_thread, NULL, and PrintStatusBarMessage().
Referenced by StreamerCtrlThread::Entry().
Here is the call graph for this function:

Here is the caller graph for this function:

| void MainFrame::OnWorkerEvent | ( | wxCommandEvent & | event | ) |
Definition at line 723 of file main_frame.cpp.
| void MainFrame::PrintStatusBarMessage | ( | const wxChar * | message, | |
| int | field = 0 | |||
| ) |
Definition at line 378 of file main_frame.cpp.
References m_status_bar.
Referenced by OnMenuitemActionsStopReceivingClick(), OnMenuitemActionsStopServerClick(), DialogOptions::OnOptionsButtonOkClick(), and OnStreamerCtrlThreadEnd().
Here is the caller graph for this function:

| void MainFrame::reset_displayed_image_vector | ( | ) |
Definition at line 395 of file main_frame.cpp.
References _displayed_frames.
Referenced by OnReceiverCtrlThreadEnd(), and ~MainFrame().
Here is the caller graph for this function:

| void MainFrame::SetFacetrackOptions | ( | wxArrayString * | cascade_array, | |
| int | cascade_count, | |||
| int | radius_min, | |||
| int | radius_max, | |||
| int | center_x, | |||
| int | center_y, | |||
| int | freeze_frame_bound, | |||
| double | track_window_hitrate, | |||
| bool | gcard_use, | |||
| bool | flipped_mode, | |||
| int | num_streams = -1, |
|||
| bool | algo_simple = true | |||
| ) |
Definition at line 671 of file main_frame.cpp.
References cascade_size, and face_detect.
Referenced by DialogOptions::OnOptionsButtonOkClick().
Here is the caller graph for this function:

| bool MainFrame::ShowToolTips | ( | ) | [static] |
Should we show tooltips?
Definition at line 245 of file main_frame.cpp.
vector<class DisplayImageFrame *>* MainFrame::_displayed_frames [private] |
Definition at line 205 of file main_frame.h.
Referenced by MainFrame(), on_display_image_cb(), OnImageReceivedFromNet(), reset_displayed_image_vector(), and ~MainFrame().
vector<list<IplImage *> *>* MainFrame::_gc_images [private] |
Definition at line 206 of file main_frame.h.
Referenced by clear_garbage_collector_for_images(), destroy_garbage_collector_for_images(), MainFrame(), and manage_garbage_collector_for_images().
wxMutex* MainFrame::_paint_mutex [private] |
bool MainFrame::algo_simple [private] |
wxArrayString* MainFrame::cascade_array [private] |
int MainFrame::cascade_size [private] |
Definition at line 213 of file main_frame.h.
Referenced by GetCascadeSize(), and SetFacetrackOptions().
int MainFrame::center_x [private] |
int MainFrame::center_y [private] |
OmniAlgoSimpleDetection<OmniGCardConverter, double, IplImage, CvPoint>* MainFrame::ctrl_gcard [private] |
Definition at line 227 of file main_frame.h.
Referenced by MainFrame(), and OnReceiverCtrlThreadEnd().
bool MainFrame::ctrl_initialized [private] |
Definition at line 209 of file main_frame.h.
Referenced by MainFrame(), and OnReceiverCtrlThreadEnd().
OmniAlgoSimpleDetection<OmniFastLookupTable, int, IplImage, CvPoint>* MainFrame::ctrl_lookup [private] |
Definition at line 226 of file main_frame.h.
Referenced by MainFrame(), and OnReceiverCtrlThreadEnd().
OmniAlgoVRFilterDetection<OmniGCardConverter, double, IplImage, CvPoint>* MainFrame::ctrl_vr_gcard [private] |
Definition at line 230 of file main_frame.h.
Referenced by MainFrame(), and OnReceiverCtrlThreadEnd().
OmniAlgoVRFilterDetection<OmniFastLookupTable, int, IplImage, CvPoint>* MainFrame::ctrl_vr_lookup [private] |
Definition at line 229 of file main_frame.h.
Referenced by MainFrame(), and OnReceiverCtrlThreadEnd().
bool MainFrame::face_detect [private] |
Definition at line 208 of file main_frame.h.
Referenced by is_face_detect_options_set(), MainFrame(), OnImageReceivedFromNet(), OnReceiverCtrlThreadEnd(), and SetFacetrackOptions().
bool MainFrame::flipped_mode [private] |
int MainFrame::freeze_frame_bound [private] |
bool MainFrame::gcard_use [private] |
Definition at line 220 of file main_frame.h.
Referenced by GetGCardUseStatus(), and OnReceiverCtrlThreadEnd().
bool MainFrame::is_multi_stream [private] |
Definition at line 222 of file main_frame.h.
class ReceiverCtrlThread* MainFrame::m_receiver_thread [private] |
Definition at line 204 of file main_frame.h.
Referenced by MainFrame(), OnCloseWindow(), OnMenuitemActionsStopReceivingClick(), OnMenuPreferencesClick(), OnReceiverCtrlThreadEnd(), and ~MainFrame().
| wxStatusBar* MainFrame::m_status_bar |
Definition at line 185 of file main_frame.h.
Referenced by Create(), CreateControls(), and PrintStatusBarMessage().
class StreamerCtrlThread* MainFrame::m_streamer_thread [private] |
Definition at line 203 of file main_frame.h.
Referenced by MainFrame(), OnCloseWindow(), OnMenuitemActionsStopServerClick(), OnMenuPreferencesClick(), OnStreamerCtrlThreadEnd(), and ~MainFrame().
int MainFrame::num_streams [private] |
int MainFrame::radius_max [private] |
int MainFrame::radius_min [private] |
double MainFrame::track_window_hitrate [private] |
1.4.7