Hugintrunk
0.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
hugin1
hugin
PreviewIdentifyTool.h
Go to the documentation of this file.
1
// -*- c-basic-offset: 4 -*-
22
#ifndef _PREVIEWIDENTIFYTOOL_H
23
#define _PREVIEWIDENTIFYTOOL_H
24
25
#include "
Tool.h
"
26
#include <set>
27
#include <vector>
28
29
class
GLPreviewFrame
;
30
43
class
PreviewIdentifyTool
:
public
Tool
44
{
45
public
:
53
PreviewIdentifyTool
(
ToolHelper
*
helper
,
GLPreviewFrame
*owner,
bool
showNumbers);
54
~PreviewIdentifyTool
();
55
void
Activate
();
56
void
ImagesUnderMouseChangedEvent
();
57
void
AfterDrawImagesEvent
();
58
bool
BeforeDrawImageEvent
(
unsigned
int
image);
62
void
ShowImageNumber
(
unsigned
int
image);
64
void
StopShowingImages
();
66
void
MouseButtonEvent
(wxMouseEvent & e);
67
68
void
MouseMoveEvent
(
double
x,
double
y, wxMouseEvent & e);
69
70
void
KeypressEvent
(
int
keycode,
int
modifiers,
int
pressed);
71
72
void
setConstantOn
(
bool
constant_on_in);
73
74
void
UpdateWithNewImageSet
(std::set<unsigned int> new_image_set);
75
void
ForceRedraw
();
76
private
:
78
void
HighlightColour
(
unsigned
int
index,
unsigned
int
count,
79
unsigned
char
&red,
unsigned
char
&green,
80
unsigned
char
&blue);
81
static
bool
texture_created
;
83
static
unsigned
int
circle_border_tex
;
85
static
unsigned
int
rectangle_border_tex
;
87
static
unsigned
int
font_tex
;
89
static
unsigned
int
font_list
;
91
static
std::vector<int>
m_glyphWidth
;
92
94
std::set<unsigned int>
m_image_set
;
95
GLPreviewFrame
*
m_preview_frame
;
97
unsigned
int
m_mouse_over_image
;
98
bool
m_mouse_is_over_button
;
99
100
void
StopUpdating
();
101
void
ContinueUpdating
();
102
103
bool
m_stopUpdating
;
104
//user has clicked and is holding left button while over panorama
105
bool
m_holdLeft
;
106
107
bool
m_holdControl
;
108
109
bool
m_constantOn
;
110
bool
m_showNumbers
;
111
};
112
113
#endif
114
PreviewIdentifyTool::setConstantOn
void setConstantOn(bool constant_on_in)
Definition:
PreviewIdentifyTool.cpp:361
ToolHelper
Definition:
ToolHelper.h:76
PreviewIdentifyTool::PreviewIdentifyTool
PreviewIdentifyTool(ToolHelper *helper, GLPreviewFrame *owner, bool showNumbers)
constructor
Definition:
PreviewIdentifyTool.cpp:95
PreviewIdentifyTool::m_mouse_over_image
unsigned int m_mouse_over_image
The image the user last placed their mouse over the button for.
Definition:
PreviewIdentifyTool.h:97
Tool.h
GLPreviewFrame
The OpenGL preview frame.
Definition:
GLPreviewFrame.h:187
PreviewIdentifyTool::m_preview_frame
GLPreviewFrame * m_preview_frame
Definition:
PreviewIdentifyTool.h:95
PreviewIdentifyTool::m_holdControl
bool m_holdControl
Definition:
PreviewIdentifyTool.h:107
PreviewIdentifyTool::StopShowingImages
void StopShowingImages()
Notification for when moving the mouse off an image button.
Definition:
PreviewIdentifyTool.cpp:571
PreviewIdentifyTool::Activate
void Activate()
Switch on a tool.
Definition:
PreviewIdentifyTool.cpp:262
PreviewIdentifyTool::rectangle_border_tex
static unsigned int rectangle_border_tex
OpenGL texture name for the rectangular border texture.
Definition:
PreviewIdentifyTool.h:85
PreviewIdentifyTool::ContinueUpdating
void ContinueUpdating()
Definition:
PreviewIdentifyTool.cpp:300
PreviewIdentifyTool::font_list
static unsigned int font_list
OpenGL call list id for font.
Definition:
PreviewIdentifyTool.h:89
PreviewIdentifyTool::MouseButtonEvent
void MouseButtonEvent(wxMouseEvent &e)
Show control point editor if mouse is over two images.
Definition:
PreviewIdentifyTool.cpp:629
PreviewIdentifyTool::AfterDrawImagesEvent
void AfterDrawImagesEvent()
Draw (using OpenGL) images above the others.
Definition:
PreviewIdentifyTool.cpp:400
PreviewIdentifyTool::m_image_set
std::set< unsigned int > m_image_set
Set of image numbers of the images we are displaying highlighted.
Definition:
PreviewIdentifyTool.h:94
PreviewIdentifyTool::ShowImageNumber
void ShowImageNumber(unsigned int image)
Notification for when moving the mouse on an image button.
Definition:
PreviewIdentifyTool.cpp:554
PreviewIdentifyTool::MouseMoveEvent
void MouseMoveEvent(double x, double y, wxMouseEvent &e)
Notify when the mouse pointer has moved over the panorama preview.
Definition:
PreviewIdentifyTool.cpp:305
Tool::helper
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition:
Tool.h:102
PreviewIdentifyTool::HighlightColour
void HighlightColour(unsigned int index, unsigned int count, unsigned char &red, unsigned char &green, unsigned char &blue)
Generate a colour given how many colours we need and an index.
Definition:
PreviewIdentifyTool.cpp:586
Tool
Definition:
Tool.h:42
PreviewIdentifyTool::~PreviewIdentifyTool
~PreviewIdentifyTool()
Definition:
PreviewIdentifyTool.cpp:249
PreviewIdentifyTool::circle_border_tex
static unsigned int circle_border_tex
OpenGL texture name for the circular border texture.
Definition:
PreviewIdentifyTool.h:83
PreviewIdentifyTool::m_stopUpdating
bool m_stopUpdating
Definition:
PreviewIdentifyTool.h:103
PreviewIdentifyTool::UpdateWithNewImageSet
void UpdateWithNewImageSet(std::set< unsigned int > new_image_set)
Definition:
PreviewIdentifyTool.cpp:671
PreviewIdentifyTool::m_holdLeft
bool m_holdLeft
Definition:
PreviewIdentifyTool.h:105
PreviewIdentifyTool::texture_created
static bool texture_created
Definition:
PreviewIdentifyTool.h:81
PreviewIdentifyTool::StopUpdating
void StopUpdating()
Definition:
PreviewIdentifyTool.cpp:282
PreviewIdentifyTool::KeypressEvent
void KeypressEvent(int keycode, int modifiers, int pressed)
Definition:
PreviewIdentifyTool.cpp:346
PreviewIdentifyTool::BeforeDrawImageEvent
bool BeforeDrawImageEvent(unsigned int image)
Draw what the tool requires just before a given image is drawn.
Definition:
PreviewIdentifyTool.cpp:546
PreviewIdentifyTool::ImagesUnderMouseChangedEvent
void ImagesUnderMouseChangedEvent()
Notify when the images directly underneath the mouse pointer have changed.
Definition:
PreviewIdentifyTool.cpp:375
PreviewIdentifyTool::m_constantOn
bool m_constantOn
Definition:
PreviewIdentifyTool.h:109
PreviewIdentifyTool::ForceRedraw
void ForceRedraw()
Definition:
PreviewIdentifyTool.cpp:721
PreviewIdentifyTool::m_mouse_is_over_button
bool m_mouse_is_over_button
Definition:
PreviewIdentifyTool.h:98
PreviewIdentifyTool
Visually connect the image numbers with the image on the preview.
Definition:
PreviewIdentifyTool.h:43
PreviewIdentifyTool::font_tex
static unsigned int font_tex
OpenGL texture name for the font texture.
Definition:
PreviewIdentifyTool.h:87
PreviewIdentifyTool::m_showNumbers
bool m_showNumbers
Definition:
PreviewIdentifyTool.h:110
PreviewIdentifyTool::m_glyphWidth
static std::vector< int > m_glyphWidth
glyph width for font
Definition:
PreviewIdentifyTool.h:91
Generated on Sun Nov 10 2024 01:25:37 for Hugintrunk by
1.8.5