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

#include <ViewState.h>

Inheritance diagram for ViewState:
Inheritance graph

Classes

class  fbool
 

Public Member Functions

 ViewState (HuginBase::Panorama *pano, bool supportMultiTexture)
 
 ~ViewState ()
 
void panoramaChanged (HuginBase::Panorama &pano)
 Notification about a Panorama change. More...
 
void panoramaImagesChanged (HuginBase::Panorama &, const HuginBase::UIntSet &)
 notifies about changes to images More...
 
void SetOptions (const HuginBase::PanoramaOptions *new_opts)
 
void SetSrcImage (unsigned int image_nr, HuginBase::SrcPanoImage *new_img)
 
void SetLens (unsigned int lens_nr, HuginBase::Lens *new_lens)
 
void ForceRequireRedraw ()
 
HuginBase::PanoramaOptionsGetOptions ()
 
OutputProjectionInfoGetProjectionInfo ()
 
HuginBase::SrcPanoImageGetSrcImage (unsigned int image_nr)
 
TextureManagerGetTextureManager ()
 
bool GetSupportMultiTexture () const
 
bool RequireRecalculatePhotometric ()
 
bool RequireRecalculateImageSizes ()
 
bool RequireRecalculateMasks (unsigned int image_nr)
 
bool ImagesRemoved ()
 
void FinishedDraw ()
 
void DoUpdates ()
 
void Redraw ()
 
- Public Member Functions inherited from HuginBase::PanoramaObserver
virtual ~PanoramaObserver ()
 

Public Attributes

std::map< VisualizationState
*, bool > 
vis_states
 

Protected Member Functions

void Clean ()
 

Protected Attributes

HuginBase::Panoramam_pano
 
std::map< unsigned int,
HuginBase::SrcPanoImage
img_states
 
HuginBase::PanoramaOptions opts
 
OutputProjectionInfoprojection_info
 
unsigned int number_of_images
 
bool dirty_photometrics
 
std::map< unsigned int, bool > active
 
std::map< unsigned int, fbooldirty_mask
 
bool dirty_image_sizes
 
bool images_removed
 
TextureManagerm_tex_manager
 
bool m_multiTexture
 

Detailed Description

Definition at line 80 of file ViewState.h.

Constructor & Destructor Documentation

ViewState::ViewState ( HuginBase::Panorama pano,
bool  supportMultiTexture 
)
ViewState::~ViewState ( )

Member Function Documentation

void ViewState::Clean ( )
protected

Definition at line 330 of file ViewState.cpp.

References dirty_image_sizes, dirty_mask, dirty_photometrics, and images_removed.

Referenced by FinishedDraw().

void ViewState::DoUpdates ( )

Definition at line 338 of file ViewState.cpp.

References TextureManager::CheckUpdate(), DEBUG_DEBUG, and m_tex_manager.

Referenced by VisualizationState::DoUpdates().

void ViewState::FinishedDraw ( )
void ViewState::ForceRequireRedraw ( )

Definition at line 261 of file ViewState.cpp.

References vis_states.

HuginBase::PanoramaOptions * ViewState::GetOptions ( )
OutputProjectionInfo * ViewState::GetProjectionInfo ( )
HuginBase::SrcPanoImage * ViewState::GetSrcImage ( unsigned int  image_nr)
bool ViewState::GetSupportMultiTexture ( ) const
inline
TextureManager* ViewState::GetTextureManager ( )
inline
bool ViewState::ImagesRemoved ( )

Definition at line 299 of file ViewState.cpp.

References images_removed.

void ViewState::panoramaChanged ( HuginBase::Panorama pano)
virtual

Notification about a Panorama change.

This function will always be called, even when the change could be handled by panoramaImageAdded() or other notify functions.

This allows lazy observers to just listen to panoramaChanged().

Implements HuginBase::PanoramaObserver.

Definition at line 63 of file ViewState.cpp.

References active, DEBUG_DEBUG, dirty_image_sizes, HuginBase::Panorama::getImage(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptions(), HuginBase::Panorama::getSrcImage(), images_removed, m_pano, number_of_images, SetOptions(), SetSrcImage(), and vis_states.

void ViewState::panoramaImagesChanged ( HuginBase::Panorama pano,
const HuginBase::UIntSet changed 
)
virtual

notifies about changes to images

Images might have been added/removed. to find out how many images are still there, use Panorama::getNrOfImages.

Parameters
panothe panorama object that changed
changedset of changed images

Implements HuginBase::PanoramaObserver.

Definition at line 114 of file ViewState.cpp.

void ViewState::Redraw ( )

Definition at line 345 of file ViewState.cpp.

References vis_states.

Referenced by PreviewGuideTool::SetGuideStyle().

bool ViewState::RequireRecalculateImageSizes ( )

Definition at line 289 of file ViewState.cpp.

References dirty_image_sizes.

bool ViewState::RequireRecalculateMasks ( unsigned int  image_nr)

Definition at line 304 of file ViewState.cpp.

References dirty_mask, and number_of_images.

Referenced by TextureManager::CheckUpdate().

bool ViewState::RequireRecalculatePhotometric ( )

Definition at line 294 of file ViewState.cpp.

References dirty_photometrics.

Referenced by TextureManager::CheckUpdate().

void ViewState::SetLens ( unsigned int  lens_nr,
HuginBase::Lens new_lens 
)
void ViewState::SetOptions ( const HuginBase::PanoramaOptions new_opts)
void ViewState::SetSrcImage ( unsigned int  image_nr,
HuginBase::SrcPanoImage new_img 
)

Member Data Documentation

std::map<unsigned int, bool> ViewState::active
protected

Definition at line 148 of file ViewState.h.

Referenced by FinishedDraw(), and panoramaChanged().

bool ViewState::dirty_image_sizes
protected
std::map<unsigned int, fbool> ViewState::dirty_mask
protected

Definition at line 149 of file ViewState.h.

Referenced by Clean(), RequireRecalculateMasks(), SetSrcImage(), and ViewState().

bool ViewState::dirty_photometrics
protected

Definition at line 147 of file ViewState.h.

Referenced by Clean(), RequireRecalculatePhotometric(), SetOptions(), and ViewState().

bool ViewState::images_removed
protected

Definition at line 150 of file ViewState.h.

Referenced by Clean(), ImagesRemoved(), panoramaChanged(), SetSrcImage(), and ViewState().

std::map<unsigned int, HuginBase::SrcPanoImage> ViewState::img_states
protected

Definition at line 132 of file ViewState.h.

Referenced by FinishedDraw(), GetSrcImage(), SetSrcImage(), and ViewState().

bool ViewState::m_multiTexture
protected

Definition at line 156 of file ViewState.h.

Referenced by GetSupportMultiTexture(), and ViewState().

HuginBase::Panorama* ViewState::m_pano
protected

Definition at line 131 of file ViewState.h.

Referenced by FinishedDraw(), panoramaChanged(), SetOptions(), ViewState(), and ~ViewState().

TextureManager* ViewState::m_tex_manager
protected

Definition at line 155 of file ViewState.h.

Referenced by DoUpdates(), GetTextureManager(), ViewState(), and ~ViewState().

unsigned int ViewState::number_of_images
protected
HuginBase::PanoramaOptions ViewState::opts
protected

Definition at line 133 of file ViewState.h.

Referenced by FinishedDraw(), GetOptions(), SetOptions(), and ViewState().

OutputProjectionInfo* ViewState::projection_info
protected

Definition at line 134 of file ViewState.h.

Referenced by GetProjectionInfo(), SetOptions(), ViewState(), and ~ViewState().

std::map<VisualizationState*, bool> ViewState::vis_states

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