PanosphereOverviewToolHelper Class Reference

#include <ToolHelper.h>

Inheritance diagram for PanosphereOverviewToolHelper:

Inheritance graph
[legend]
List of all members.

Public Types

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

Member Enumeration Documentation

enum PanosphereOverviewToolHelper::PanosphereOverviewEvent
 

Enumeration values:
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::MouseMoved(), 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::PTools::Transform::createTransform(), HuginBase::Panorama::getActiveImages(), HuginBase::Panorama::getNrOfImages(), VisualizationState::GetOptions(), ViewState::GetSrcImage(), VisualizationState::GetSrcImage(), VisualizationState::getViewState(), HuginBase::SrcPanoImage::isInside(), ToolHelper::IsMouseOverPano(), and HuginBase::PTools::Transform::transformImgCoord().


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 Sat Apr 19 01:25:49 2014 for Hugintrunk by  doxygen 1.3.9.1