VisualizationState Class Reference

#include <ViewState.h>

Inheritance diagram for VisualizationState:

Inheritance graph
[legend]
List of all members.

Public Member Functions

template<class M>
 VisualizationState (PT::Panorama *pano, ViewState *view_state, GLViewer *viewer, void(*RefreshFunction)(void *), void *arg, M *classArg)
virtual ~VisualizationState ()
virtual HuginBase::PanoramaOptionsGetOptions ()
virtual OutputProjectionInfoGetProjectionInfo ()
virtual HuginBase::SrcPanoImageGetSrcImage (unsigned int image_nr)
virtual void SetOptions (const HuginBase::PanoramaOptions *new_opts)
virtual void SetSrcImage (unsigned int image_nr, HuginBase::SrcPanoImage *new_img)
bool RequireRecalculateMesh (unsigned int image_nr)
bool RequireDraw ()
bool RequireRecalculateViewport ()
float GetScale ()
void SetScale (float scale)
unsigned int GetMeshDisplayList (unsigned int image_nr)
MeshManagerGetMeshManager ()
void FinishedDraw ()
void SetVisibleArea (vigra::Rect2D area)
vigra::Rect2D GetVisibleArea ()
ViewStategetViewState ()
void Redraw ()
void DoUpdates ()
void SetDirtyMesh (int image_nr)
void ForceRequireRedraw ()
void SetDirtyViewport ()
GLViewerGetViewer ()

Protected Attributes

PT::Panoramam_pano
std::map< unsigned int, fbooldirty_mesh
bool dirty_draw
bool dirty_viewport
float scale
float genscale
float gl_scale
vigra::Rect2D visible_area
void(* RefreshFunc )(void *)
void * refreshArg
MeshManagerm_mesh_manager
ViewStatem_view_state
GLViewerm_viewer

Constructor & Destructor Documentation

template<class M>
VisualizationState::VisualizationState PT::Panorama pano,
ViewState view_state,
GLViewer viewer,
void(*)(void *)  RefreshFunction,
void *  arg,
M *  classArg
[inline]
 

Definition at line 165 of file ViewState.h.

References ViewState::vis_states.

VisualizationState::~VisualizationState  )  [virtual]
 

Definition at line 366 of file ViewState.cpp.

References m_view_state, and ViewState::vis_states.


Member Function Documentation

void VisualizationState::DoUpdates  ) 
 

Definition at line 453 of file ViewState.cpp.

References MeshManager::CheckUpdate(), DEBUG_DEBUG, ViewState::DoUpdates(), m_mesh_manager, and m_view_state.

Referenced by GLViewer::Redraw().

void VisualizationState::FinishedDraw  ) 
 

Definition at line 444 of file ViewState.cpp.

References DEBUG_DEBUG, dirty_draw, dirty_mesh, dirty_viewport, ViewState::FinishedDraw(), and m_view_state.

Referenced by GLViewer::Redraw().

void VisualizationState::ForceRequireRedraw  ) 
 

Definition at line 439 of file ViewState.cpp.

References dirty_draw.

Referenced by PlaneOverviewCameraTool::ChangeZoomLevel(), PanosphereOverviewCameraTool::ChangeZoomLevel(), PreviewIdentifyTool::ForceRedraw(), PreviewDifferenceTool::ImagesUnderMouseChangedEvent(), PreviewLayoutLinesTool::MouseMoveEvent(), PreviewCropTool::MouseMoveEvent(), PlaneOverviewCameraTool::MouseMoveEvent(), GLPreviewFrame::OnDragChoice(), GLPreviewFrame::OnOverviewModeChoice(), and OverviewOutlinesTool::panoramaChanged().

unsigned int VisualizationState::GetMeshDisplayList unsigned int  image_nr  ) 
 

Definition at line 462 of file ViewState.cpp.

References MeshManager::GetDisplayList(), and m_mesh_manager.

Referenced by PreviewLayoutLinesTool::AfterDrawImagesEvent(), PreviewIdentifyTool::AfterDrawImagesEvent(), PreviewDifferenceTool::AfterDrawImagesEvent(), PreviewDifferenceTool::BeforeDrawImagesEvent(), and PreviewLayoutLinesTool::drawIdentificationBorder().

MeshManager* VisualizationState::GetMeshManager  )  [inline]
 

Definition at line 206 of file ViewState.h.

Referenced by MeshManager::MeshInfo::CompileList(), GreatCircleArc::LineSegment::doGL(), GreatCircleArc::LineSegment::doGLcross(), OverviewOutlinesTool::DrawRect(), GLOverview::SetLayoutMode(), GLViewer::SetLayoutMode(), GLOverview::SetLayoutScale(), GLViewer::SetLayoutScale(), GLOverview::setUp(), and GLPreview::setUp().

HuginBase::PanoramaOptions * VisualizationState::GetOptions  )  [virtual]
 

Reimplemented in PanosphereOverviewVisualizationState, and PlaneOverviewVisualizationState.

Definition at line 468 of file ViewState.cpp.

References ViewState::GetOptions(), and m_view_state.

Referenced by OverviewOutlinesTool::DrawRect(), MeshManager::PlaneOverviewMeshInfo::GetCoord3D(), MeshManager::PanosphereOverviewMeshInfo::GetCoord3D(), MeshManager::PlaneOverviewMeshInfo::GetMeshCoords3D(), MeshManager::PanosphereOverviewMeshInfo::GetMeshCoords3D(), GreatCircleArc::GreatCircleArc(), VertexCoordRemapper::UpdateAndResetIndex(), TexCoordRemapper::UpdateAndResetIndex(), LayoutRemapper::UpdateAndResetIndex(), ChoosyRemapper::UpdateAndResetIndex(), PlaneOverviewToolHelper::UpdateImagesUnderMouse(), PanosphereOverviewToolHelper::UpdateImagesUnderMouse(), and PreviewToolHelper::UpdateImagesUnderMouse().

OutputProjectionInfo * VisualizationState::GetProjectionInfo  )  [virtual]
 

Reimplemented in PanosphereOverviewVisualizationState, and PlaneOverviewVisualizationState.

Definition at line 473 of file ViewState.cpp.

References ViewState::GetProjectionInfo(), and m_view_state.

Referenced by VertexCoordRemapper::DiscontinuityFlip(), DragTool::MouseButtonEvent(), DragTool::MouseMoveEvent(), VertexCoordRemapper::TestSubdivide(), VertexCoordRemapper::UpdateAndResetIndex(), and ChoosyRemapper::UpdateAndResetIndex().

float VisualizationState::GetScale  ) 
 

Definition at line 373 of file ViewState.cpp.

Referenced by GreatCircleArc::LineSegment::doGL(), GreatCircleArc::GreatCircleArc(), PreviewToolHelper::MouseMoved(), PreviewLayoutLinesTool::MouseMoveEvent(), TexCoordRemapper::SetSize(), and MeshRemapper::UpdateAndResetIndex().

HuginBase::SrcPanoImage * VisualizationState::GetSrcImage unsigned int  image_nr  )  [virtual]
 

Definition at line 478 of file ViewState.cpp.

References ViewState::GetSrcImage(), and m_view_state.

Referenced by MeshManager::CheckUpdate(), PreviewControlPointTool::MakeTransforms(), PlaneOverviewToolHelper::UpdateImagesUnderMouse(), PanosphereOverviewToolHelper::UpdateImagesUnderMouse(), and PreviewToolHelper::UpdateImagesUnderMouse().

GLViewer* VisualizationState::GetViewer  )  [inline]
 

Definition at line 238 of file ViewState.h.

Referenced by PlaneOverviewToolHelper::MouseMoved(), PanosphereOverviewToolHelper::MouseMoved(), and PlaneOverviewCameraTool::MouseMoveEvent().

ViewState* VisualizationState::getViewState  )  [inline]
 

Definition at line 226 of file ViewState.h.

Referenced by MeshManager::MeshInfo::CompileList(), ToolHelper::GetViewStatePtr(), PreviewCropTool::MouseButtonEvent(), PreviewCropTool::MouseMoveEvent(), PreviewCropTool::ReallyAfterDrawImagesEvent(), GLPreviewRenderer::Redraw(), GLPlaneOverviewRenderer::Resize(), GLPreviewRenderer::Resize(), PlaneOverviewToolHelper::UpdateImagesUnderMouse(), PanosphereOverviewToolHelper::UpdateImagesUnderMouse(), and PreviewToolHelper::UpdateImagesUnderMouse().

vigra::Rect2D VisualizationState::GetVisibleArea  )  [inline]
 

Definition at line 221 of file ViewState.h.

Referenced by OverviewOutlinesTool::draw(), PreviewToolHelper::MouseMoved(), TexCoordRemapper::SetSize(), VertexCoordRemapper::TestSubdivide(), and MeshManager::MeshInfo::Update().

void VisualizationState::Redraw  ) 
 

Definition at line 405 of file ViewState.cpp.

References DEBUG_DEBUG, refreshArg, RefreshFunc, and RequireDraw().

Referenced by PlaneOverviewCameraTool::ChangeZoomLevel(), PanosphereOverviewCameraTool::ChangeZoomLevel(), PreviewIdentifyTool::ForceRedraw(), PreviewDifferenceTool::ImagesUnderMouseChangedEvent(), PreviewLayoutLinesTool::MouseMoveEvent(), PreviewCropTool::MouseMoveEvent(), PlaneOverviewCameraTool::MouseMoveEvent(), PanosphereOverviewCameraTool::MouseMoveEvent(), and DragTool::MouseMoveEvent().

bool VisualizationState::RequireDraw  ) 
 

Definition at line 434 of file ViewState.cpp.

Referenced by Redraw().

bool VisualizationState::RequireRecalculateMesh unsigned int  image_nr  ) 
 

Definition at line 420 of file ViewState.cpp.

References dirty_mesh, HuginBase::Panorama::getNrOfImages(), and m_pano.

Referenced by MeshManager::CheckUpdate().

bool VisualizationState::RequireRecalculateViewport  ) 
 

Definition at line 415 of file ViewState.cpp.

Referenced by OverviewOutlinesTool::draw(), and GLViewer::Redraw().

void VisualizationState::SetDirtyMesh int  image_nr  )  [inline]
 

Definition at line 234 of file ViewState.h.

void VisualizationState::SetDirtyViewport  )  [inline]
 

Definition at line 236 of file ViewState.h.

Referenced by PlaneOverviewCameraTool::ChangeZoomLevel(), PanosphereOverviewCameraTool::ChangeZoomLevel(), GLPreviewFrame::OnDragChoice(), and GLPreviewFrame::OnOverviewModeChoice().

virtual void VisualizationState::SetOptions const HuginBase::PanoramaOptions new_opts  )  [inline, virtual]
 

Reimplemented in PanosphereOverviewVisualizationState, and PlaneOverviewVisualizationState.

Definition at line 190 of file ViewState.h.

void VisualizationState::SetScale float  scale  ) 
 

Definition at line 378 of file ViewState.cpp.

References dirty_mesh, genscale, HuginBase::Panorama::getNrOfImages(), m_pano, and scale.

Referenced by GLPlaneOverviewRenderer::Resize(), GLPanosphereOverviewRenderer::Resize(), and GLPreviewRenderer::Resize().

virtual void VisualizationState::SetSrcImage unsigned int  image_nr,
HuginBase::SrcPanoImage new_img
[inline, virtual]
 

Definition at line 191 of file ViewState.h.

Referenced by MeshManager::CheckUpdate().

void VisualizationState::SetVisibleArea vigra::Rect2D  area  )  [inline]
 

Definition at line 212 of file ViewState.h.

Referenced by GLPlaneOverviewRenderer::Resize(), GLPanosphereOverviewRenderer::Resize(), and GLPreviewRenderer::Resize().


Member Data Documentation

bool VisualizationState::dirty_draw [protected]
 

Definition at line 255 of file ViewState.h.

Referenced by FinishedDraw(), and ForceRequireRedraw().

std::map<unsigned int, fbool> VisualizationState::dirty_mesh [protected]
 

Definition at line 254 of file ViewState.h.

Referenced by FinishedDraw(), RequireRecalculateMesh(), and SetScale().

bool VisualizationState::dirty_viewport [protected]
 

Definition at line 255 of file ViewState.h.

Referenced by FinishedDraw().

float VisualizationState::genscale [protected]
 

Definition at line 257 of file ViewState.h.

Referenced by SetScale().

float VisualizationState::gl_scale [protected]
 

Definition at line 257 of file ViewState.h.

MeshManager* VisualizationState::m_mesh_manager [protected]
 

Definition at line 263 of file ViewState.h.

Referenced by DoUpdates(), and GetMeshDisplayList().

PT::Panorama* VisualizationState::m_pano [protected]
 

Definition at line 242 of file ViewState.h.

Referenced by RequireRecalculateMesh(), and SetScale().

ViewState* VisualizationState::m_view_state [protected]
 

Definition at line 264 of file ViewState.h.

Referenced by DoUpdates(), FinishedDraw(), GetOptions(), GetProjectionInfo(), GetSrcImage(), and ~VisualizationState().

GLViewer* VisualizationState::m_viewer [protected]
 

Definition at line 266 of file ViewState.h.

void* VisualizationState::refreshArg [protected]
 

Definition at line 260 of file ViewState.h.

Referenced by Redraw().

void(* VisualizationState::RefreshFunc)(void *) [protected]
 

Referenced by Redraw().

float VisualizationState::scale [protected]
 

Definition at line 257 of file ViewState.h.

Referenced by SetScale().

vigra::Rect2D VisualizationState::visible_area [protected]
 

Definition at line 258 of file ViewState.h.


The documentation for this class was generated from the following files:
Generated on Thu Oct 2 01:25:51 2014 for Hugintrunk by  doxygen 1.3.9.1