Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ViewCreatorDialog Class Reference

#include <View_Creator_Dialog.h>

Inheritance diagram for ViewCreatorDialog:
Inheritance graph
[legend]

Public Member Functions

 ViewCreatorDialog (wxWindow *parent, ViewParamsWrapper *params)
 The constructor of this class. More...
 
- Public Member Functions inherited from ViewCreatorDialogBase
 ViewCreatorDialogBase (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("Descriptor Surfaced Based Trainer - Create View"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(1000, 880), long style=wxDEFAULT_DIALOG_STYLE)
 
 ~ViewCreatorDialogBase ()
 

Protected Member Functions

void onButtonCancelClicked (wxCommandEvent &event)
 
void onButtonEndTestClicked (wxCommandEvent &event)
 
void onButtonSaveClicked (wxCommandEvent &event)
 
void onButtonStartTestClicked (wxCommandEvent &event)
 
void onCheckUpsideDown (wxCommandEvent &event)
 
void onCheckUseColor (wxCommandEvent &event)
 
void onCheckUseCurrentImage (wxCommandEvent &event)
 
void onChoiceImage (wxCommandEvent &event)
 
void onChoiceImageSource (wxCommandEvent &event)
 
void onChoiceTestImage (wxCommandEvent &event)
 
void onChoiceTestImageSource (wxCommandEvent &event)
 
void OnDialogClose (wxCloseEvent &event)
 
void onEditTextAxis1Angle (wxFocusEvent &event)
 
void onEditTextAxis1AngleEnter (wxCommandEvent &event)
 
void onEditTextAxis1X (wxFocusEvent &event)
 
void onEditTextAxis1XEnter (wxCommandEvent &event)
 
void onEditTextAxis1Y (wxFocusEvent &event)
 
void onEditTextAxis1YEnter (wxCommandEvent &event)
 
void onEditTextAxis1Z (wxFocusEvent &event)
 
void onEditTextAxis1ZEnter (wxCommandEvent &event)
 
void onEditTextAxis2Angle (wxFocusEvent &event)
 
void onEditTextAxis2AngleEnter (wxCommandEvent &event)
 
void onEditTextAxis2X (wxFocusEvent &event)
 
void onEditTextAxis2XEnter (wxCommandEvent &event)
 
void onEditTextAxis2Y (wxFocusEvent &event)
 
void onEditTextAxis2YEnter (wxCommandEvent &event)
 
void onEditTextAxis2Z (wxFocusEvent &event)
 
void onEditTextAxis2ZEnter (wxCommandEvent &event)
 
void onEditTextDepth (wxFocusEvent &event)
 
void onEditTextDepthEnter (wxCommandEvent &event)
 
void onEditTextFernNumber (wxFocusEvent &event)
 
void onEditTextFernNumberEnter (wxCommandEvent &event)
 
void onEditTextHorizontalOffset (wxFocusEvent &event)
 
void onEditTextHorizontalOffsetEnter (wxCommandEvent &event)
 
void onEditTextLowerRightColumn (wxFocusEvent &event)
 
void onEditTextLowerRightColumnEnter (wxCommandEvent &event)
 
void onEditTextLowerRightRow (wxFocusEvent &event)
 
void onEditTextLowerRightRowEnter (wxCommandEvent &event)
 
void onEditTextMaxScale (wxFocusEvent &event)
 
void onEditTextMaxScaleEnter (wxCommandEvent &event)
 
void onEditTextMinScale (wxFocusEvent &event)
 
void onEditTextMinScaleEnter (wxCommandEvent &event)
 
void onEditTextOrientationX (wxFocusEvent &event)
 
void onEditTextOrientationXEnter (wxCommandEvent &event)
 
void onEditTextOrientationY (wxFocusEvent &event)
 
void onEditTextOrientationYEnter (wxCommandEvent &event)
 
void onEditTextOrientationZ (wxFocusEvent &event)
 
void onEditTextOrientationZEnter (wxCommandEvent &event)
 
void onEditTextPatchSize (wxFocusEvent &event)
 
void onEditTextPatchSizeEnter (wxCommandEvent &event)
 
void onEditTextScore (wxFocusEvent &event)
 
void onEditTextScoreEnter (wxCommandEvent &event)
 
void onEditTextUpperLeftColumn (wxFocusEvent &event)
 
void onEditTextUpperLeftColumnEnter (wxCommandEvent &event)
 
void onEditTextUpperLeftRow (wxFocusEvent &event)
 
void onEditTextUpperLeftRowEnter (wxCommandEvent &event)
 
void onEditTextVerticalOffset (wxFocusEvent &event)
 
void onEditTextVerticalOffsetEnter (wxCommandEvent &event)
 
void onSlideLowerRightColumn (wxScrollEvent &event)
 
void onSlideLowerRightRow (wxScrollEvent &event)
 
void onSlideUpperLeftColumn (wxScrollEvent &event)
 
void onSlideUpperLeftRow (wxScrollEvent &event)
 

Private Member Functions

void enableGuiElements (bool enable=true)
 Enables/Disables the Gui-elements used for setting the parameters. More...
 
void enableGuiElementsTest (bool enable=true)
 Enables/Disables all Gui-elements which are not used during testing. More...
 
void onModelCameraImage (const sensor_msgs::Image::ConstPtr &msg)
 The callback function for the image-topic-subscriber. More...
 
void onTestCameraImage (const sensor_msgs::Image::ConstPtr &msg, bool use_file)
 The callback function for the test-image-topic-subscriber. More...
 
void onUpdate (wxTimerEvent &evt)
 The callback function for the update-timer. More...
 
void paint_test_image (HalconCpp::HImage img)
 Shows the given image on the right image panel. More...
 
void updateImageOnCrop ()
 Updates the shown image (left panel) after it was cropped with the sliders. More...
 

Private Attributes

HalconCpp::HDescriptorModel desc_model
 
bool desc_model_available
 
double feature_sum
 
bool fixed_image_available
 
HalconCpp::HImage fixedImage
 
int frame_counter
 
ros::Subscriber image_model_sub
 
ros::Subscriber image_test_sub
 
ros::NodeHandle nh
 
boost::thread paint_thread
 
ViewParamsWrapperparams
 
double score_sum
 
bool test_running
 
double time_sum
 
int update_counter
 
wxTimer * update_timer
 

Additional Inherited Members

- Protected Attributes inherited from ViewCreatorDialogBase
wxButton * button_cancel
 
wxButton * button_end_test
 
wxButton * button_save
 
wxButton * button_start_test
 
wxCheckBox * check_fix_current_image
 
wxCheckBox * check_invertable
 
wxCheckBox * check_use_color
 
wxChoice * choice_image
 
wxChoice * choice_image_source
 
wxChoice * choice_test_image
 
wxChoice * choice_test_image_source
 
wxTextCtrl * edit_axis_1_angle
 
wxTextCtrl * edit_axis_1_x
 
wxTextCtrl * edit_axis_1_y
 
wxTextCtrl * edit_axis_1_z
 
wxTextCtrl * edit_axis_2_angle
 
wxTextCtrl * edit_axis_2_x
 
wxTextCtrl * edit_axis_2_y
 
wxTextCtrl * edit_axis_2_z
 
wxTextCtrl * edit_depth
 
wxTextCtrl * edit_fern_number
 
wxTextCtrl * edit_horizontal_offset
 
wxTextCtrl * edit_lower_right_column
 
wxTextCtrl * edit_lower_right_row
 
wxTextCtrl * edit_max_scale
 
wxTextCtrl * edit_min_scale
 
wxTextCtrl * edit_orientation_x
 
wxTextCtrl * edit_orientation_y
 
wxTextCtrl * edit_orientation_z
 
wxTextCtrl * edit_patch_size
 
wxTextCtrl * edit_score_2D
 
wxTextCtrl * edit_upper_left_column
 
wxTextCtrl * edit_upper_left_row
 
wxTextCtrl * edit_vertical_offset
 
wxImagePanelimage_model
 
wxImagePanelimage_test
 
wxStaticText * label_average_matched_points
 
wxStaticText * label_average_matched_points_value
 
wxStaticText * label_average_score
 
wxStaticText * label_average_score_value
 
wxStaticText * label_average_time
 
wxStaticText * label_average_time_value
 
wxStaticText * label_axis_1
 
wxStaticText * label_axis_1_angle
 
wxStaticText * label_axis_1_x
 
wxStaticText * label_axis_1_y
 
wxStaticText * label_axis_1_z
 
wxStaticText * label_axis_2
 
wxStaticText * label_axis_2_angle
 
wxStaticText * label_axis_2_x
 
wxStaticText * label_axis_2_y
 
wxStaticText * label_axis_2_z
 
wxStaticText * label_depth
 
wxStaticText * label_frame_number
 
wxStaticText * label_frame_number_value
 
wxStaticText * label_horizontal_offset
 
wxStaticText * label_image
 
wxStaticText * label_image_source
 
wxStaticText * label_is_invertable
 
wxStaticText * label_lower_right_column
 
wxStaticText * label_lower_right_point
 
wxStaticText * label_lower_right_row
 
wxStaticText * label_matched_points
 
wxStaticText * label_matched_points_value
 
wxStaticText * label_max_scale
 
wxStaticText * label_min_scale
 
wxStaticText * label_model_available
 
wxStaticText * label_model_available_value
 
wxStaticText * label_model_points
 
wxStaticText * label_model_points_value
 
wxStaticText * label_number_ferns
 
wxStaticText * label_orientation
 
wxStaticText * label_orientation_x
 
wxStaticText * label_orientation_y
 
wxStaticText * label_orientation_z
 
wxStaticText * label_patch_size
 
wxStaticText * label_score
 
wxStaticText * label_score_2D
 
wxStaticText * label_score_value
 
wxStaticText * label_search_points
 
wxStaticText * label_search_points_value
 
wxStaticText * label_select_image
 
wxStaticText * label_test_image
 
wxStaticText * label_test_image_source
 
wxStaticText * label_time
 
wxStaticText * label_time_value
 
wxStaticText * label_upper_left
 
wxStaticText * label_upper_left_column
 
wxStaticText * label_upper_left_row
 
wxStaticText * label_use_color
 
wxStaticText * label_vertical_offset
 
wxStaticLine * m_staticline4
 
wxStaticLine * m_staticline5
 
wxStaticLine * m_staticline6
 
wxStaticLine * m_staticline61
 
wxPanel * panel_image
 
wxPanel * panel_test_image
 
wxSlider * slider_lower_right_column
 
wxSlider * slider_lower_right_row
 
wxSlider * slider_upper_left_column
 
wxSlider * slider_upper_left_row
 

Detailed Description

Copyright (C) 2016, Allgeyer Tobias, Hutmacher Robin, Meißner Pascal

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. This class represents the dialog which is used to create a new view used for 2D-recognition

Definition at line 35 of file View_Creator_Dialog.h.

Constructor & Destructor Documentation

ViewCreatorDialog::ViewCreatorDialog ( wxWindow *  parent,
ViewParamsWrapper params 
)

The constructor of this class.

Parameters
parentThe parent window of this dialog
paramsThe parameters used if this dialog was created after pushing the edit-button on DescModelDialog

Definition at line 111 of file View_Creator_Dialog.cpp.

Member Function Documentation

void ViewCreatorDialog::enableGuiElements ( bool  enable = true)
private

Enables/Disables the Gui-elements used for setting the parameters.

Parameters
enableIndicates whether the elements should be enabled or disabled

Copyright (C) 2016, Allgeyer Tobias, Hutmacher Robin, Meißner Pascal

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition at line 32 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::enableGuiElementsTest ( bool  enable = true)
private

Enables/Disables all Gui-elements which are not used during testing.

Parameters
enableIndicates whether the elements should be enabled or disabled

Definition at line 65 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onButtonCancelClicked ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 718 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onButtonEndTestClicked ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 710 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onButtonSaveClicked ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 733 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onButtonStartTestClicked ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 629 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onCheckUpsideDown ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1368 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onCheckUseColor ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1373 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onCheckUseCurrentImage ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 960 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onChoiceImage ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 440 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onChoiceImageSource ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 378 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onChoiceTestImage ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 605 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onChoiceTestImageSource ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 561 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::OnDialogClose ( wxCloseEvent &  event)
protectedvirtual

wxwidgets Gui-callback-functions

Reimplemented from ViewCreatorDialogBase.

Definition at line 364 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis1Angle ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1403 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis1AngleEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1539 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis1X ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1379 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis1XEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1521 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis1Y ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1387 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis1YEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1527 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis1Z ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1395 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis1ZEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1533 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis2Angle ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1440 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis2AngleEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1563 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis2X ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1416 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis2XEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1545 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis2Y ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1424 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis2YEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1551 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis2Z ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1432 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextAxis2ZEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1557 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextDepth ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1253 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextDepthEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1491 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextFernNumber ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1276 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextFernNumberEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1497 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextHorizontalOffset ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1245 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextHorizontalOffsetEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1485 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextLowerRightColumn ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1067 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextLowerRightColumnEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1200 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextLowerRightRow ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1036 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextLowerRightRowEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1195 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextMaxScale ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1345 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextMaxScaleEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1515 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextMinScale ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1322 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextMinScaleEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1509 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextOrientationX ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1205 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextOrientationXEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1455 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextOrientationY ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1213 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextOrientationYEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1461 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextOrientationZ ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1221 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextOrientationZEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1467 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextPatchSize ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1299 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextPatchSizeEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1503 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextScore ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1229 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextScoreEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1473 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextUpperLeftColumn ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1004 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextUpperLeftColumnEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1190 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextUpperLeftRow ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 973 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextUpperLeftRowEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1185 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextVerticalOffset ( wxFocusEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1237 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onEditTextVerticalOffsetEnter ( wxCommandEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1479 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onModelCameraImage ( const sensor_msgs::Image::ConstPtr &  msg)
private

The callback function for the image-topic-subscriber.

Parameters
msgThe input ros-image-message

Definition at line 206 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onSlideLowerRightColumn ( wxScrollEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1163 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onSlideLowerRightRow ( wxScrollEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1141 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onSlideUpperLeftColumn ( wxScrollEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1119 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onSlideUpperLeftRow ( wxScrollEvent &  event)
protectedvirtual

Reimplemented from ViewCreatorDialogBase.

Definition at line 1097 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onTestCameraImage ( const sensor_msgs::Image::ConstPtr &  msg,
bool  use_file 
)
private

The callback function for the test-image-topic-subscriber.

Parameters
msgThe input ros-image-message
use_fileIndicates whether the test image is read from a file

Definition at line 240 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::onUpdate ( wxTimerEvent &  evt)
private

The callback function for the update-timer.

Definition at line 342 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::paint_test_image ( HalconCpp::HImage  img)
private

Shows the given image on the right image panel.

Parameters
imgThe given image

Definition at line 101 of file View_Creator_Dialog.cpp.

void ViewCreatorDialog::updateImageOnCrop ( )
private

Updates the shown image (left panel) after it was cropped with the sliders.

Definition at line 82 of file View_Creator_Dialog.cpp.

Member Data Documentation

HalconCpp::HDescriptorModel ViewCreatorDialog::desc_model
private

The descriptor-model used for testing

Definition at line 80 of file View_Creator_Dialog.h.

bool ViewCreatorDialog::desc_model_available
private

Indicates whether a descriptor-model used for testing is already created

Definition at line 59 of file View_Creator_Dialog.h.

double ViewCreatorDialog::feature_sum
private

The sum of the feature-amounts of each frame of the current test

Definition at line 71 of file View_Creator_Dialog.h.

bool ViewCreatorDialog::fixed_image_available
private

Indicates whether an input camera image is fixed and can be used for the creation of the view

Definition at line 56 of file View_Creator_Dialog.h.

HalconCpp::HImage ViewCreatorDialog::fixedImage
private

The fixed image

Definition at line 50 of file View_Creator_Dialog.h.

int ViewCreatorDialog::frame_counter
private

The number of frames of the current test

Definition at line 65 of file View_Creator_Dialog.h.

ros::Subscriber ViewCreatorDialog::image_model_sub
private

Ros subscriber which manages the subscription callback on the image-topic

Definition at line 44 of file View_Creator_Dialog.h.

ros::Subscriber ViewCreatorDialog::image_test_sub
private

Ros subscriber which manages the subscription callback on the test-image-topic

Definition at line 47 of file View_Creator_Dialog.h.

ros::NodeHandle ViewCreatorDialog::nh
private

Ros' interface for creating subscribers, publishers, etc.

Definition at line 41 of file View_Creator_Dialog.h.

boost::thread ViewCreatorDialog::paint_thread
private

The thread used for painting the found features onto the input image during testing

Definition at line 87 of file View_Creator_Dialog.h.

ViewParamsWrapper* ViewCreatorDialog::params
private

A pointer to the parameters used for this view

Definition at line 53 of file View_Creator_Dialog.h.

double ViewCreatorDialog::score_sum
private

The sum of the scores of each frame of the current test

Definition at line 68 of file View_Creator_Dialog.h.

bool ViewCreatorDialog::test_running
private

Indicates whether a test is running

Definition at line 62 of file View_Creator_Dialog.h.

double ViewCreatorDialog::time_sum
private

The sum of the recognition-times of each frame of the current test

Definition at line 74 of file View_Creator_Dialog.h.

int ViewCreatorDialog::update_counter
private

The number of updates (see update_timer)

Definition at line 90 of file View_Creator_Dialog.h.

wxTimer* ViewCreatorDialog::update_timer
private

Timer used to update the shown camera images

Definition at line 77 of file View_Creator_Dialog.h.


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


asr_descriptor_surface_based_recognition
Author(s): Allgeyer Tobias, Hutmacher Robin, Meißner Pascal
autogenerated on Mon Dec 16 2019 03:31:16