Hugintrunk
0.1
|
#include <ProjectionGridTool.h>
Public Member Functions | |
void | Activate () |
Switch on a tool. More... | |
PreviewProjectionGridTool (PreviewToolHelper *helper) | |
void | createMesh () |
void | AfterDrawImagesEvent () |
Draw (using OpenGL) images above the others. More... | |
void | BeforeDrawImagesEvent () |
Draw using OpenGL anything the tool requires underneath the images. More... | |
Public Member Functions inherited from PreviewTool | |
PreviewTool (PreviewToolHelper *helper) | |
virtual | ~PreviewTool () |
Public Member Functions inherited from Tool | |
Tool (ToolHelper *helper) | |
Construct keeping a pointer to a PreviewToolHelper. More... | |
virtual | ~Tool () |
virtual void | MouseMoveEvent (double x, double y, wxMouseEvent &e) |
Notify when the mouse pointer has moved over the panorama preview. More... | |
virtual void | MouseButtonEvent (wxMouseEvent &e) |
Notify of a mouse button press on the panorama preview. More... | |
virtual void | MouseWheelEvent (wxMouseEvent &e) |
Notify of a mouse wheel event on the panorama preview. More... | |
virtual void | ImagesUnderMouseChangedEvent () |
Notify when the images directly underneath the mouse pointer have changed. More... | |
virtual void | KeypressEvent (int keycode, int modifiers, bool pressed) |
Notify of a Keypress event. More... | |
virtual void | ReallyAfterDrawImagesEvent () |
Draw (using OpenGL) the overlays, e.g. crop highlights, guides. More... | |
virtual bool | BeforeDrawImageEvent (unsigned int image) |
Draw what the tool requires just before a given image is drawn. More... | |
virtual void | AfterDrawImageEvent (unsigned int image) |
Notification called just after the image was drawn normally. More... | |
virtual void | MarkDirty () |
Public Member Functions inherited from ProjectionGridTool | |
ProjectionGridTool (ToolHelper *helper) | |
virtual | ~ProjectionGridTool () |
Additional Inherited Members | |
Protected Member Functions inherited from ProjectionGridTool | |
bool | createTexture () |
create the texture by iterating through each pixela and checking how much each pixel should be filled More... | |
Protected Attributes inherited from Tool | |
ToolHelper * | helper |
The PreviewToolHelper that uses the same preview window and panorama as the tool should. More... | |
Protected Attributes inherited from ProjectionGridTool | |
MeshManager::MeshInfo * | mesh_info |
ToolHelper * | helper_g |
Static Protected Attributes inherited from ProjectionGridTool | |
static bool | texture_created = false |
static unsigned int | texture_num = 0 |
Definition at line 49 of file ProjectionGridTool.h.
|
inlineexplicit |
Definition at line 53 of file ProjectionGridTool.h.
|
virtual |
Switch on a tool.
Inherited classes also register events they want to respond to with the PreviewToolHelper. As events are lost when the tool is deactivated without notification to the PreviewTool, things from the last activation can be cleaned up here too.
Implements Tool.
Definition at line 69 of file ProjectionGridTool.cpp.
References ToolHelper::DRAW_OVER_IMAGES, ToolHelper::DRAW_UNDER_IMAGES, Tool::helper, and ToolHelper::NotifyMe().
|
virtual |
Draw (using OpenGL) images above the others.
Reimplemented from Tool.
Definition at line 79 of file ProjectionGridTool.cpp.
References MeshManager::MeshInfo::CallList(), createMesh(), ProjectionGridTool::createTexture(), DEBUG_DEBUG, ViewState::GetSupportMultiTexture(), ToolHelper::GetViewStatePtr(), Tool::helper, ProjectionGridTool::mesh_info, ProjectionGridTool::texture_created, ProjectionGridTool::texture_num, and MeshManager::MeshInfo::Update().
|
virtual |
Draw using OpenGL anything the tool requires underneath the images.
Reimplemented from Tool.
Definition at line 75 of file ProjectionGridTool.cpp.
void PreviewProjectionGridTool::createMesh | ( | ) |
Definition at line 233 of file ProjectionGridTool.cpp.
References HuginBase::BaseSrcPanoImage::EQUIRECTANGULAR, ToolHelper::GetPanoramaPtr(), ToolHelper::GetVisualizationStatePtr(), Tool::helper, ProjectionGridTool::mesh_info, and HuginBase::SrcPanoImage::setSize().
Referenced by AfterDrawImagesEvent().