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

#include <ViewState.h>

Inheritance diagram for VisualizationState:
Inheritance graph

Classes

class  fbool
 

Public Member Functions

template<class M >
 VisualizationState (HuginBase::Panorama *pano, ViewState *view_state, GLViewer *viewer, void(*RefreshFunction)(void *), void *arg, M *classArg)
 
virtual ~VisualizationState ()
 
virtual
HuginBase::PanoramaOptions
GetOptions ()
 
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 ()
 
double GetZoomLevel () const
 
void SetZoomLevel (const float new_zoom)
 
hugin_utils::FDiff2D GetViewingCenter () const
 
void SetViewingCenter (const hugin_utils::FDiff2D &center)
 
void SetCanvasSize (const vigra::Size2D &canvasSize)
 
ViewStategetViewState ()
 
void Redraw ()
 
void DoUpdates ()
 
void SetDirtyMesh (int image_nr)
 
void ForceRequireRedraw ()
 
void SetDirtyViewport ()
 
GLViewerGetViewer ()
 

Protected Attributes

HuginBase::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
 
hugin_utils::FDiff2D m_lookAt
 
float m_zoom
 
vigra::Size2D m_canvasSize
 
void(* RefreshFunc )(void *)
 
void * refreshArg
 
MeshManagerm_mesh_manager
 
ViewStatem_view_state
 
GLViewerm_viewer
 

Private Member Functions

 VisualizationState (const VisualizationState &other)
 
VisualizationStateoperator= (const VisualizationState &other)
 

Detailed Description

Definition at line 159 of file ViewState.h.

Constructor & Destructor Documentation

template<class M >
VisualizationState::VisualizationState ( HuginBase::Panorama pano,
ViewState view_state,
GLViewer viewer,
void(*)(void *)  RefreshFunction,
void *  arg,
M *  classArg 
)
inline
VisualizationState::~VisualizationState ( )
virtual

Definition at line 366 of file ViewState.cpp.

References m_mesh_manager, m_view_state, and ViewState::vis_states.

VisualizationState::VisualizationState ( const VisualizationState other)
private

Member Function Documentation

void VisualizationState::DoUpdates ( )
void VisualizationState::FinishedDraw ( )
void VisualizationState::ForceRequireRedraw ( )
unsigned int VisualizationState::GetMeshDisplayList ( unsigned int  image_nr)
MeshManager* VisualizationState::GetMeshManager ( )
inline
HuginBase::PanoramaOptions * VisualizationState::GetOptions ( )
virtual
OutputProjectionInfo * VisualizationState::GetProjectionInfo ( )
virtual
float VisualizationState::GetScale ( )
HuginBase::SrcPanoImage * VisualizationState::GetSrcImage ( unsigned int  image_nr)
virtual
GLViewer* VisualizationState::GetViewer ( )
inline
hugin_utils::FDiff2D VisualizationState::GetViewingCenter ( ) const
inline

Definition at line 232 of file ViewState.h.

References m_lookAt.

Referenced by GLPreviewRenderer::Resize(), and PreviewCameraTool::UpdateCenter().

ViewState* VisualizationState::getViewState ( )
inline
vigra::Rect2D VisualizationState::GetVisibleArea ( )
inline
double VisualizationState::GetZoomLevel ( ) const
inline

Definition at line 227 of file ViewState.h.

References m_zoom.

Referenced by PreviewCameraTool::ChangeZoomLevel(), and GLPreviewRenderer::Resize().

VisualizationState& VisualizationState::operator= ( const VisualizationState other)
private
void VisualizationState::Redraw ( )
bool VisualizationState::RequireDraw ( )

Definition at line 434 of file ViewState.cpp.

References dirty_draw.

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.

References dirty_viewport.

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

void VisualizationState::SetCanvasSize ( const vigra::Size2D &  canvasSize)

Definition at line 517 of file ViewState.cpp.

References m_canvasSize, m_lookAt, and SetViewingCenter().

Referenced by GLPreviewRenderer::Resize().

void VisualizationState::SetDirtyMesh ( int  image_nr)
inline

Definition at line 247 of file ViewState.h.

References dirty_mesh.

void VisualizationState::SetDirtyViewport ( )
inline
virtual void VisualizationState::SetOptions ( const HuginBase::PanoramaOptions new_opts)
inlinevirtual

Reimplemented in PlaneOverviewVisualizationState, and PanosphereOverviewVisualizationState.

Definition at line 191 of file ViewState.h.

void VisualizationState::SetScale ( float  scale)
virtual void VisualizationState::SetSrcImage ( unsigned int  image_nr,
HuginBase::SrcPanoImage new_img 
)
inlinevirtual

Definition at line 192 of file ViewState.h.

void VisualizationState::SetViewingCenter ( const hugin_utils::FDiff2D center)
void VisualizationState::SetVisibleArea ( vigra::Rect2D  area)
inline
void VisualizationState::SetZoomLevel ( const float  new_zoom)

Member Data Documentation

bool VisualizationState::dirty_draw
protected
std::map<unsigned int, fbool> VisualizationState::dirty_mesh
protected
bool VisualizationState::dirty_viewport
protected
float VisualizationState::genscale
protected

Definition at line 270 of file ViewState.h.

Referenced by SetScale(), and VisualizationState().

float VisualizationState::gl_scale
protected

Definition at line 270 of file ViewState.h.

vigra::Size2D VisualizationState::m_canvasSize
protected

Definition at line 274 of file ViewState.h.

Referenced by SetCanvasSize(), and SetViewingCenter().

hugin_utils::FDiff2D VisualizationState::m_lookAt
protected
MeshManager* VisualizationState::m_mesh_manager
protected
HuginBase::Panorama* VisualizationState::m_pano
protected

Definition at line 255 of file ViewState.h.

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

ViewState* VisualizationState::m_view_state
protected
GLViewer* VisualizationState::m_viewer
protected

Definition at line 282 of file ViewState.h.

Referenced by GetViewer(), and VisualizationState().

float VisualizationState::m_zoom
protected

Definition at line 273 of file ViewState.h.

Referenced by GetZoomLevel(), SetViewingCenter(), SetZoomLevel(), and VisualizationState().

void* VisualizationState::refreshArg
protected

Definition at line 276 of file ViewState.h.

Referenced by Redraw(), and VisualizationState().

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

Definition at line 275 of file ViewState.h.

Referenced by Redraw(), and VisualizationState().

float VisualizationState::scale
protected
vigra::Rect2D VisualizationState::visible_area
protected

Definition at line 271 of file ViewState.h.

Referenced by GetVisibleArea(), and SetVisibleArea().


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