PanosphereSphereTool Class Reference

tool to draw a whiteish transparent sphere for the panosphere More...

#include <PanosphereSphereTool.h>

Inheritance diagram for PanosphereSphereTool:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void Activate ()
 Switch on a tool.
 PanosphereSphereTool (PanosphereOverviewToolHelper *helper, const wxColour backgroundColour)
void BeforeDrawImagesBackEvent ()
 Draw using opengl anything before drawing the front face culled images.
void BeforeDrawImagesFrontEvent ()
 Draw using opengl anything before drawing the back face culled images.
void SetPreviewBackgroundColor (wxColour c)
 sets the sphere background color

Protected Attributes

wxColour m_background_color

Detailed Description

tool to draw a whiteish transparent sphere for the panosphere

Definition at line 30 of file PanosphereSphereTool.h.


Constructor & Destructor Documentation

PanosphereSphereTool::PanosphereSphereTool PanosphereOverviewToolHelper helper,
const wxColour  backgroundColour
 

Definition at line 41 of file PanosphereSphereTool.cpp.

References m_background_color.


Member Function Documentation

void PanosphereSphereTool::Activate  )  [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 46 of file PanosphereSphereTool.cpp.

void PanosphereSphereTool::BeforeDrawImagesBackEvent  )  [virtual]
 

Draw using opengl anything before drawing the front face culled images.

Reimplemented from PanosphereOverviewTool.

Definition at line 52 of file PanosphereSphereTool.cpp.

References TextureManager::DisableTexture(), ViewState::GetTextureManager(), ToolHelper::GetViewStatePtr(), and m_background_color.

void PanosphereSphereTool::BeforeDrawImagesFrontEvent  )  [virtual]
 

Draw using opengl anything before drawing the back face culled images.

Reimplemented from PanosphereOverviewTool.

Definition at line 70 of file PanosphereSphereTool.cpp.

void PanosphereSphereTool::SetPreviewBackgroundColor wxColour  c  ) 
 

sets the sphere background color

Definition at line 75 of file PanosphereSphereTool.cpp.

References m_background_color.

Referenced by GLPreviewFrame::OnPreviewBackgroundColorChanged().


Member Data Documentation

wxColour PanosphereSphereTool::m_background_color [protected]
 

Definition at line 42 of file PanosphereSphereTool.h.

Referenced by BeforeDrawImagesBackEvent(), PanosphereSphereTool(), and SetPreviewBackgroundColor().


The documentation for this class was generated from the following files:
Generated on Wed Aug 27 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1