PreviewIdentifyTool.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00022 #ifndef _PREVIEWIDENTIFYTOOL_H
00023 #define _PREVIEWIDENTIFYTOOL_H
00024 
00025 #include "Tool.h"
00026 #include <set>
00027 #include <vector>
00028 
00029 class GLPreviewFrame;
00030 
00043 class PreviewIdentifyTool : public Tool
00044 {
00045 public:
00053     PreviewIdentifyTool(ToolHelper *helper, GLPreviewFrame *owner, bool showNumbers);
00054     ~PreviewIdentifyTool();
00055     void Activate();
00056     void ImagesUnderMouseChangedEvent();
00057     void AfterDrawImagesEvent();
00058     bool BeforeDrawImageEvent(unsigned int image);
00062     void ShowImageNumber(unsigned int image);
00064     void StopShowingImages();
00066     void MouseButtonEvent(wxMouseEvent & e);
00067 
00068     void MouseMoveEvent(double x, double y, wxMouseEvent & e);
00069     
00070     void KeypressEvent(int keycode, int modifiers, int pressed);
00071     
00072     void setConstantOn(bool constant_on_in);
00073     
00074     void UpdateWithNewImageSet(std::set<unsigned int> new_image_set);
00075     void ForceRedraw();
00076 private:
00078     void HighlightColour(unsigned int index, unsigned int count,
00079                         unsigned char &red, unsigned char &green,
00080                         unsigned char &blue);
00081     static bool texture_created;
00083     static unsigned int circle_border_tex;
00085     static unsigned int rectangle_border_tex;
00087     static unsigned int font_tex;
00089     static unsigned int font_list;
00091     static std::vector<int> m_glyphWidth;
00092 
00094     std::set<unsigned int> m_image_set;
00095     GLPreviewFrame *m_preview_frame;
00097     unsigned int m_mouse_over_image;
00098     bool m_mouse_is_over_button;
00099 
00100     void StopUpdating();
00101     void ContinueUpdating();
00102 
00103     bool m_stopUpdating;
00104     //user has clicked and is holding left button while over panorama
00105     bool m_holdLeft;
00106     
00107     bool m_holdControl;
00108 
00109     bool m_constantOn;
00110     bool m_showNumbers;
00111 };
00112 
00113 #endif
00114 

Generated on 24 Sep 2016 for Hugintrunk by  doxygen 1.4.7