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:
00046     PreviewIdentifyTool(ToolHelper *helper, GLPreviewFrame *owner);
00047     ~PreviewIdentifyTool();
00048     void Activate();
00049     void ImagesUnderMouseChangedEvent();
00050     void AfterDrawImagesEvent();
00051     bool BeforeDrawImageEvent(unsigned int image);
00055     void ShowImageNumber(unsigned int image);
00057     void StopShowingImages();
00059     void MouseButtonEvent(wxMouseEvent & e);
00060 
00061     void MouseMoveEvent(double x, double y, wxMouseEvent & e);
00062     
00063     void KeypressEvent(int keycode, int modifiers, int pressed);
00064     
00065     void setConstantOn(bool constant_on_in);
00066     
00067     void UpdateWithNewImageSet(std::set<unsigned int> new_image_set);
00068     void ForceRedraw();
00069 private:
00071     void HighlightColour(unsigned int index, unsigned int count,
00072                         unsigned char &red, unsigned char &green,
00073                         unsigned char &blue);
00074     static bool texture_created;
00076     static unsigned int circle_border_tex;
00078     static unsigned int rectangle_border_tex;
00080     static unsigned int font_tex;
00082     static unsigned int font_list;
00084     static std::vector<int> m_glyphWidth;
00085 
00087     std::set<unsigned int> image_set;
00088     GLPreviewFrame *preview_frame;
00090     unsigned int mouse_over_image;
00091     bool mouse_is_over_button;
00092 
00093     void StopUpdating();
00094     void ContinueUpdating();
00095 
00096     bool stopUpdating;
00097     //user has clicked and is holding left button while over panorama
00098     bool holdLeft;
00099     
00100     bool holdControl;
00101 
00102     bool constantOn;
00103     
00104 };
00105 
00106 #endif
00107 

Generated on 4 Aug 2015 for Hugintrunk by  doxygen 1.4.7