Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
PanosphereOverviewToolHelper Class Reference

#include <ToolHelper.h>

Inheritance diagram for PanosphereOverviewToolHelper:
Inheritance graph

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
}
 

Public Member Functions

 PanosphereOverviewToolHelper (HuginBase::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 BeforeDrawImagesBack ()
 
void BeforeDrawImagesFront ()
 
void AfterDrawImagesBack ()
 
void AfterDrawImagesFront ()
 
void DeactivateTool (Tool *tool)
 
- Public Member Functions inherited from OverviewToolHelper
 OverviewToolHelper (HuginBase::Panorama *pano, VisualizationState *visualization_state, GLPreviewFrame *frame)
 
 ~OverviewToolHelper ()
 
- Public Member Functions inherited from ToolHelper
 ToolHelper (HuginBase::Panorama *pano, VisualizationState *visualization_state, GLPreviewFrame *frame)
 
virtual ~ToolHelper ()
 
std::set< Tool * > ActivateTool (Tool *tool)
 
void MouseButtonEvent (wxMouseEvent &e)
 
void MouseWheelEvent (wxMouseEvent &e)
 
void KeypressEvent (int keycode, int modifiers, bool pressed)
 
void BeforeDrawImages ()
 
void AfterDrawImages ()
 
void MarkDirty ()
 
bool BeforeDrawImageNumber (unsigned int image)
 
void AfterDrawImageNumber (unsigned int image)
 
void MouseEnter (int x, int y, wxMouseEvent &e)
 
void MouseLeave ()
 
std::set< unsigned int > GetImageNumbersUnderMouse ()
 
hugin_utils::FDiff2D GetMouseScreenPosition ()
 
hugin_utils::FDiff2D GetMousePanoPosition ()
 
VisualizationStateGetVisualizationStatePtr ()
 
ViewStateGetViewStatePtr ()
 
HuginBase::PanoramaGetPanoramaPtr ()
 
void NotifyMe (Event event, Tool *tool)
 
void NotifyMeBeforeDrawing (unsigned int image_nr, Tool *tool)
 
void NotifyMeAfterDrawing (unsigned int image_nr, Tool *tool)
 
void DoNotNotifyMe (Event event, Tool *tool)
 
void DoNotNotifyMeBeforeDrawing (unsigned int image_nr, Tool *tool)
 
void DoNotNotifyMeAfterDrawing (unsigned int image_nr, Tool *tool)
 
void SetStatusMessage (wxString message)
 
bool IsMouseOverPano ()
 
HuginBase::UIntSet GetImagesUnderPos (const hugin_utils::FDiff2D &pos)
 
GLPreviewFrameGetPreviewFrame ()
 

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
 
- Protected Attributes inherited from ToolHelper
std::set< Tool * > tools_deactivated
 
HuginBase::Panoramapano
 
VisualizationStatevisualization_state
 
GLPreviewFrameframe
 
double mouse_screen_x
 
double mouse_screen_y
 
double mouse_pano_x
 
double mouse_pano_y
 
std::set< Tool * > mouse_move_notified_tools
 
std::set< Tool * > mouse_button_notified_tools
 
std::set< Tool * > keypress_notified_tools
 
std::set< Tool * > draw_under_notified_tools
 
std::set< Tool * > draw_over_notified_tools
 
std::set< Tool * > really_draw_over_notified_tools
 
std::set< Tool * > images_under_mouse_notified_tools
 
std::set< Tool * > mouse_wheel_notified_tools
 
std::set< Tool * > m_tools_need_dirty_flag
 
std::vector< std::set< Tool * > > image_draw_begin_tools
 
std::vector< std::set< Tool * > > image_draw_end_tools
 
bool images_under_mouse_current
 
bool mouse_over_pano
 
std::set< unsigned int > images_under_mouse
 

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 ()
 

Detailed Description

Definition at line 205 of file ToolHelper.h.

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

void PanosphereOverviewToolHelper::DeactivateTool ( Tool tool)
virtual
void PanosphereOverviewToolHelper::DoNotNotifyMe ( PanosphereOverviewEvent  event,
PanosphereOverviewTool tool 
)
void PanosphereOverviewToolHelper::MouseMoved ( int  x,
int  y,
wxMouseEvent &  e 
)
virtual
void PanosphereOverviewToolHelper::NotifyMe ( PanosphereOverviewEvent  event,
PanosphereOverviewTool tool 
)

Member Data Documentation

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

Definition at line 233 of file ToolHelper.h.

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

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

Definition at line 234 of file ToolHelper.h.

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

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

Definition at line 231 of file ToolHelper.h.

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

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

Definition at line 232 of file ToolHelper.h.

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


The documentation for this class was generated from the following files: