Hugin trunk
0.1
Loading...
Searching...
No Matches
hugin1
hugin
ProjectionGridTool.h
Go to the documentation of this file.
1
// -*- c-basic-offset: 4 -*-
22
#ifndef _PROJECTION_GRID_TOOL_H
23
#define _PROJECTION_GRID_TOOL_H
24
25
#include "
Tool.h
"
26
30
class
ProjectionGridTool
31
{
32
public
:
33
explicit
ProjectionGridTool
(
ToolHelper
* helper);
34
virtual
~ProjectionGridTool
();
35
36
protected
:
37
38
bool
createTexture
();
39
40
static
bool
texture_created
;
41
static
unsigned
int
texture_num
;
42
43
MeshManager::MeshInfo
*
mesh_info
;
44
45
ToolHelper
*
helper_g
;
46
47
};
48
49
class
PreviewProjectionGridTool
:
public
PreviewTool
,
public
ProjectionGridTool
50
{
51
public
:
52
void
Activate
();
53
explicit
PreviewProjectionGridTool
(
PreviewToolHelper
*
helper
) :
PreviewTool
(
helper
),
ProjectionGridTool
(
helper
) {}
54
55
void
createMesh
();
56
57
void
AfterDrawImagesEvent
();
58
void
BeforeDrawImagesEvent
();
59
protected
:
60
61
};
62
63
class
PanosphereOverviewProjectionGridTool
:
public
PanosphereOverviewTool
,
public
ProjectionGridTool
64
{
65
public
:
66
void
Activate
();
67
explicit
PanosphereOverviewProjectionGridTool
(
PanosphereOverviewToolHelper
*
helper
) :
PanosphereOverviewTool
(
helper
),
ProjectionGridTool
(
helper
) {}
68
69
void
AfterDrawImagesBackEvent
();
70
void
BeforeDrawImagesBackEvent
();
71
72
void
AfterDrawImagesFrontEvent
();
73
void
BeforeDrawImagesFrontEvent
();
74
protected
:
75
76
};
77
78
#endif
79
Tool.h
MeshManager::MeshInfo
Handles the remapper and a display list for a specific image.
Definition
MeshManager.h:65
PanosphereOverviewProjectionGridTool
Definition
ProjectionGridTool.h:64
PanosphereOverviewProjectionGridTool::BeforeDrawImagesFrontEvent
void BeforeDrawImagesFrontEvent()
Draw using opengl anything before drawing the back face culled images.
Definition
ProjectionGridTool.cpp:132
PanosphereOverviewProjectionGridTool::Activate
void Activate()
Switch on a tool.
Definition
ProjectionGridTool.cpp:120
PanosphereOverviewProjectionGridTool::AfterDrawImagesBackEvent
void AfterDrawImagesBackEvent()
Draw using opengl anything after drawing the front face culled images.
Definition
ProjectionGridTool.cpp:136
PanosphereOverviewProjectionGridTool::BeforeDrawImagesBackEvent
void BeforeDrawImagesBackEvent()
Draw using opengl anything before drawing the front face culled images.
Definition
ProjectionGridTool.cpp:128
PanosphereOverviewProjectionGridTool::PanosphereOverviewProjectionGridTool
PanosphereOverviewProjectionGridTool(PanosphereOverviewToolHelper *helper)
Definition
ProjectionGridTool.h:67
PanosphereOverviewProjectionGridTool::AfterDrawImagesFrontEvent
void AfterDrawImagesFrontEvent()
Draw using opengl anything after drawing the back face culled images.
Definition
ProjectionGridTool.cpp:186
PanosphereOverviewToolHelper
Definition
ToolHelper.h:206
PanosphereOverviewTool
Definition
Tool.h:131
PreviewProjectionGridTool
Definition
ProjectionGridTool.h:50
PreviewProjectionGridTool::PreviewProjectionGridTool
PreviewProjectionGridTool(PreviewToolHelper *helper)
Definition
ProjectionGridTool.h:53
PreviewProjectionGridTool::Activate
void Activate()
Switch on a tool.
Definition
ProjectionGridTool.cpp:69
PreviewProjectionGridTool::AfterDrawImagesEvent
void AfterDrawImagesEvent()
Draw (using OpenGL) images above the others.
Definition
ProjectionGridTool.cpp:79
PreviewProjectionGridTool::createMesh
void createMesh()
Definition
ProjectionGridTool.cpp:233
PreviewProjectionGridTool::BeforeDrawImagesEvent
void BeforeDrawImagesEvent()
Draw using OpenGL anything the tool requires underneath the images.
Definition
ProjectionGridTool.cpp:75
PreviewToolHelper
Definition
ToolHelper.h:184
PreviewTool
Definition
Tool.h:114
ProjectionGridTool
tool to draw a grid to create correspondence between the overview and the preview
Definition
ProjectionGridTool.h:31
ProjectionGridTool::~ProjectionGridTool
virtual ~ProjectionGridTool()
Definition
ProjectionGridTool.cpp:61
ProjectionGridTool::texture_created
static bool texture_created
Definition
ProjectionGridTool.h:40
ProjectionGridTool::helper_g
ToolHelper * helper_g
Definition
ProjectionGridTool.h:45
ProjectionGridTool::texture_num
static unsigned int texture_num
Definition
ProjectionGridTool.h:41
ProjectionGridTool::createTexture
bool createTexture()
create the texture by iterating through each pixela and checking how much each pixel should be filled
Definition
ProjectionGridTool.cpp:245
ProjectionGridTool::mesh_info
MeshManager::MeshInfo * mesh_info
Definition
ProjectionGridTool.h:43
ToolHelper
Definition
ToolHelper.h:77
Tool::helper
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition
Tool.h:109
Generated on Tue Sep 1 2026 20:52:05 for Hugin trunk by
1.9.8