Hugintrunk
0.1
|
#include <ToolHelper.h>
Public Types | |
enum | PanosphereOverviewEvent { DRAW_UNDER_IMAGES_BACK, DRAW_UNDER_IMAGES_FRONT, DRAW_OVER_IMAGES_BACK, DRAW_OVER_IMAGES_FRONT } |
Public Types inherited from ToolHelper | |
enum | Event { MOUSE_MOVE, MOUSE_PRESS, KEY_PRESS, DRAW_UNDER_IMAGES, DRAW_OVER_IMAGES, IMAGES_UNDER_MOUSE_CHANGE, REALLY_DRAW_OVER_IMAGES, MOUSE_WHEEL, MARK_DIRTY } |
Additional Inherited Members | |
Protected Member Functions inherited from ToolHelper | |
void | RemoveTool (Tool *tool, Tool **single) |
void | RemoveTool (Tool *tool, std::set< Tool * > *set) |
void | RemoveTool (Tool *tool, std::vector< std::set< Tool * > > *vector) |
void | RemoveTool (Tool *tool, std::vector< std::set< Tool * > > *vector, unsigned int index) |
void | AddTool (Tool *tool, Tool **single) |
void | AddTool (Tool *tool, std::set< Tool * > *set) |
void | AddTool (Tool *tool, std::vector< std::set< Tool * > > *vector, unsigned int index) |
void | UpdateImagesUnderMouse () |
void | InvalidateImagesUnderMouse () |
Definition at line 205 of file ToolHelper.h.
Enumerator | |
---|---|
DRAW_UNDER_IMAGES_BACK | |
DRAW_UNDER_IMAGES_FRONT | |
DRAW_OVER_IMAGES_BACK | |
DRAW_OVER_IMAGES_FRONT |
Definition at line 213 of file ToolHelper.h.
PanosphereOverviewToolHelper::PanosphereOverviewToolHelper | ( | HuginBase::Panorama * | pano, |
VisualizationState * | visualization_state, | ||
GLPreviewFrame * | frame | ||
) |
Definition at line 631 of file ToolHelper.cpp.
PanosphereOverviewToolHelper::~PanosphereOverviewToolHelper | ( | ) |
Definition at line 635 of file ToolHelper.cpp.
void PanosphereOverviewToolHelper::AfterDrawImagesBack | ( | ) |
Definition at line 687 of file ToolHelper.cpp.
References draw_over_notified_tools_back.
void PanosphereOverviewToolHelper::AfterDrawImagesFront | ( | ) |
Definition at line 695 of file ToolHelper.cpp.
References draw_over_notified_tools_front.
void PanosphereOverviewToolHelper::BeforeDrawImagesBack | ( | ) |
Definition at line 671 of file ToolHelper.cpp.
References draw_under_notified_tools_back.
void PanosphereOverviewToolHelper::BeforeDrawImagesFront | ( | ) |
Definition at line 679 of file ToolHelper.cpp.
References draw_under_notified_tools_front.
|
virtual |
Reimplemented from ToolHelper.
Definition at line 703 of file ToolHelper.cpp.
References ToolHelper::DeactivateTool(), draw_over_notified_tools_back, draw_over_notified_tools_front, draw_under_notified_tools_back, draw_under_notified_tools_front, and ToolHelper::RemoveTool().
Referenced by GLPreviewFrame::OnControlPoint(), GLPreviewFrame::OnIdentify(), GLPreviewFrame::OnSwitchPreviewGrid(), GLPreviewFrame::SetMode(), GLPreviewFrame::updateBlendMode(), and GLPreviewFrame::~GLPreviewFrame().
void PanosphereOverviewToolHelper::DoNotNotifyMe | ( | PanosphereOverviewEvent | event, |
PanosphereOverviewTool * | tool | ||
) |
Definition at line 654 of file ToolHelper.cpp.
References DRAW_OVER_IMAGES_BACK, DRAW_OVER_IMAGES_FRONT, draw_over_notified_tools_back, draw_over_notified_tools_front, DRAW_UNDER_IMAGES_BACK, DRAW_UNDER_IMAGES_FRONT, draw_under_notified_tools_back, draw_under_notified_tools_front, and ToolHelper::RemoveTool().
|
virtual |
Reimplemented from ToolHelper.
Definition at line 510 of file ToolHelper.cpp.
References Vector3::Cross(), DEG_TO_RAD, PanosphereOverviewVisualizationState::getAngX(), PanosphereOverviewVisualizationState::getAngY(), PanosphereOverviewVisualizationState::getFOV(), HuginBase::PanoramaOptions::getHeight(), Vector3::GetNormalized(), PanosphereOverviewVisualizationState::GetOptions(), PanosphereOverviewVisualizationState::getR(), PanosphereOverviewVisualizationState::getSphereRadius(), VisualizationState::GetViewer(), HuginBase::PanoramaOptions::getWidth(), PanosphereOverviewVisualizationState::isInsideView(), M_PI, ToolHelper::mouse_over_pano, ToolHelper::mouse_pano_x, ToolHelper::mouse_pano_y, ToolHelper::MouseMoved(), ToolHelper::visualization_state, Vector3::x, Vector3::y, and Vector3::z.
void PanosphereOverviewToolHelper::NotifyMe | ( | PanosphereOverviewEvent | event, |
PanosphereOverviewTool * | tool | ||
) |
Definition at line 637 of file ToolHelper.cpp.
References ToolHelper::AddTool(), DRAW_OVER_IMAGES_BACK, DRAW_OVER_IMAGES_FRONT, draw_over_notified_tools_back, draw_over_notified_tools_front, DRAW_UNDER_IMAGES_BACK, DRAW_UNDER_IMAGES_FRONT, draw_under_notified_tools_back, and draw_under_notified_tools_front.
|
protected |
Definition at line 233 of file ToolHelper.h.
Referenced by AfterDrawImagesBack(), DeactivateTool(), DoNotNotifyMe(), and NotifyMe().
|
protected |
Definition at line 234 of file ToolHelper.h.
Referenced by AfterDrawImagesFront(), DeactivateTool(), DoNotNotifyMe(), and NotifyMe().
|
protected |
Definition at line 231 of file ToolHelper.h.
Referenced by BeforeDrawImagesBack(), DeactivateTool(), DoNotNotifyMe(), and NotifyMe().
|
protected |
Definition at line 232 of file ToolHelper.h.
Referenced by BeforeDrawImagesFront(), DeactivateTool(), DoNotNotifyMe(), and NotifyMe().