PanosphereOverviewToolHelper Class Reference

#include <ToolHelper.h>

Inheritance diagram for PanosphereOverviewToolHelper:

Inheritance graph
[legend]
List of all members.

Public Types

 DRAW_UNDER_IMAGES_BACK
 DRAW_UNDER_IMAGES_FRONT
 DRAW_OVER_IMAGES_BACK
 DRAW_OVER_IMAGES_FRONT
enum  PanosphereOverviewEvent { DRAW_UNDER_IMAGES_BACK, DRAW_UNDER_IMAGES_FRONT, DRAW_OVER_IMAGES_BACK, DRAW_OVER_IMAGES_FRONT }

Public Member Functions

 PanosphereOverviewToolHelper (PT::Panorama *pano, VisualizationState *visualization_state, GLPreviewFrame *frame)
 ~PanosphereOverviewToolHelper ()
void NotifyMe (PanosphereOverviewEvent event, PanosphereOverviewTool *tool)
void DoNotNotifyMe (PanosphereOverviewEvent event, PanosphereOverviewTool *tool)
void MouseMoved (int x, int y, wxMouseEvent &e)
void UpdateImagesUnderMouse ()
void BeforeDrawImagesBack ()
void BeforeDrawImagesFront ()
void AfterDrawImagesBack ()
void AfterDrawImagesFront ()
void DeactivateTool (Tool *tool)

Protected Attributes

std::set< Tool * > draw_under_notified_tools_back
std::set< Tool * > draw_under_notified_tools_front
std::set< Tool * > draw_over_notified_tools_back
std::set< Tool * > draw_over_notified_tools_front

Detailed Description

Definition at line 202 of file ToolHelper.h.


Member Enumeration Documentation

enum PanosphereOverviewToolHelper::PanosphereOverviewEvent

Enumerator:
DRAW_UNDER_IMAGES_BACK 
DRAW_UNDER_IMAGES_FRONT 
DRAW_OVER_IMAGES_BACK 
DRAW_OVER_IMAGES_FRONT 

Definition at line 210 of file ToolHelper.h.


Constructor & Destructor Documentation

PanosphereOverviewToolHelper::PanosphereOverviewToolHelper ( PT::Panorama pano,
VisualizationState visualization_state,
GLPreviewFrame frame 
)

Definition at line 640 of file ToolHelper.cpp.

PanosphereOverviewToolHelper::~PanosphereOverviewToolHelper (  ) 

Definition at line 644 of file ToolHelper.cpp.


Member Function Documentation

void PanosphereOverviewToolHelper::AfterDrawImagesBack (  ) 

Definition at line 700 of file ToolHelper.cpp.

References draw_over_notified_tools_back.

void PanosphereOverviewToolHelper::AfterDrawImagesFront (  ) 

Definition at line 710 of file ToolHelper.cpp.

References draw_over_notified_tools_front.

void PanosphereOverviewToolHelper::BeforeDrawImagesBack (  ) 

Definition at line 680 of file ToolHelper.cpp.

References draw_under_notified_tools_back.

void PanosphereOverviewToolHelper::BeforeDrawImagesFront (  ) 

Definition at line 690 of file ToolHelper.cpp.

References draw_under_notified_tools_front.

void PanosphereOverviewToolHelper::DeactivateTool ( Tool tool  )  [virtual]

Reimplemented from ToolHelper.

Definition at line 720 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 663 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().

void PanosphereOverviewToolHelper::MouseMoved ( int  x,
int  y,
wxMouseEvent &  e 
) [virtual]

Reimplemented from ToolHelper.

Definition at line 538 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(), 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 646 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.

void PanosphereOverviewToolHelper::UpdateImagesUnderMouse (  )  [virtual]

Implements ToolHelper.

Definition at line 509 of file ToolHelper.cpp.

References HuginBase::Panorama::getActiveImages(), HuginBase::Panorama::getNrOfImages(), VisualizationState::GetOptions(), ViewState::GetSrcImage(), VisualizationState::GetSrcImage(), VisualizationState::getViewState(), ToolHelper::images_under_mouse, ToolHelper::images_under_mouse_current, HuginBase::SrcPanoImage::isInside(), ToolHelper::IsMouseOverPano(), ToolHelper::mouse_pano_x, ToolHelper::mouse_pano_y, ToolHelper::pano, and ToolHelper::visualization_state.


Member Data Documentation

std::set<Tool *> PanosphereOverviewToolHelper::draw_over_notified_tools_back [protected]

Definition at line 231 of file ToolHelper.h.

Referenced by AfterDrawImagesBack(), DeactivateTool(), DoNotNotifyMe(), and NotifyMe().

std::set<Tool *> PanosphereOverviewToolHelper::draw_over_notified_tools_front [protected]

Definition at line 232 of file ToolHelper.h.

Referenced by AfterDrawImagesFront(), DeactivateTool(), DoNotNotifyMe(), and NotifyMe().

std::set<Tool *> PanosphereOverviewToolHelper::draw_under_notified_tools_back [protected]

Definition at line 229 of file ToolHelper.h.

Referenced by BeforeDrawImagesBack(), DeactivateTool(), DoNotNotifyMe(), and NotifyMe().

std::set<Tool *> PanosphereOverviewToolHelper::draw_under_notified_tools_front [protected]

Definition at line 230 of file ToolHelper.h.

Referenced by BeforeDrawImagesFront(), DeactivateTool(), DoNotNotifyMe(), and NotifyMe().


The documentation for this class was generated from the following files:
Generated on 23 Nov 2014 for Hugintrunk by  doxygen 1.4.7