Hugintrunk
0.1
|
#include <ViewState.h>
Public Member Functions | |
PanosphereOverviewVisualizationState (HuginBase::Panorama *pano, ViewState *view_state, GLViewer *viewer, void(*RefreshFunction)(void *), void *arg) | |
~PanosphereOverviewVisualizationState () | |
HuginBase::PanoramaOptions * | GetOptions () |
OutputProjectionInfo * | GetProjectionInfo () |
void | SetOptions (const HuginBase::PanoramaOptions *new_opts) |
double | getAngY () |
double | getAngX () |
double | getR () |
double | getFOV () |
bool | isInsideView () |
double | getSphereRadius () |
void | setAngX (double angx_in) |
void | setAngY (double angy_in) |
void | setR (double r) |
void | setFOV (double newFOV) |
void | setInsideView (bool insideView) |
Public Member Functions inherited from OverviewVisualizationState | |
template<class M > | |
OverviewVisualizationState (HuginBase::Panorama *pano, ViewState *view_state, GLViewer *viewer, void(*RefreshFunction)(void *), void *arg, M *classArg) | |
Public Member Functions inherited from VisualizationState | |
template<class M > | |
VisualizationState (HuginBase::Panorama *pano, ViewState *view_state, GLViewer *viewer, void(*RefreshFunction)(void *), void *arg, M *classArg) | |
virtual | ~VisualizationState () |
virtual HuginBase::SrcPanoImage * | GetSrcImage (unsigned int image_nr) |
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) |
MeshManager * | GetMeshManager () |
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 ¢er) |
void | SetCanvasSize (const vigra::Size2D &canvasSize) |
ViewState * | getViewState () |
void | Redraw () |
void | DoUpdates () |
void | SetDirtyMesh (int image_nr) |
void | ForceRequireRedraw () |
void | SetDirtyViewport () |
GLViewer * | GetViewer () |
Protected Attributes | |
double | angy |
double | angx |
double | R |
double | fov |
bool | m_insideView |
double | sphere_radius |
HuginBase::PanoramaOptions | opts |
OutputProjectionInfo * | projection_info |
Protected Attributes inherited from VisualizationState | |
HuginBase::Panorama * | m_pano |
std::map< unsigned int, fbool > | dirty_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 |
MeshManager * | m_mesh_manager |
ViewState * | m_view_state |
GLViewer * | m_viewer |
Definition at line 298 of file ViewState.h.
PanosphereOverviewVisualizationState::PanosphereOverviewVisualizationState | ( | HuginBase::Panorama * | pano, |
ViewState * | view_state, | ||
GLViewer * | viewer, | ||
void(*)(void *) | RefreshFunction, | ||
void * | arg | ||
) |
Definition at line 524 of file ViewState.cpp.
References angx, angy, HuginBase::PanoramaOptions::EQUIRECTANGULAR, fov, ViewState::GetOptions(), m_insideView, M_PI, VisualizationState::m_view_state, opts, projection_info, R, VisualizationState::scale, HuginBase::PanoramaOptions::setHFOV(), HuginBase::PanoramaOptions::setProjection(), HuginBase::PanoramaOptions::setVFOV(), and sphere_radius.
PanosphereOverviewVisualizationState::~PanosphereOverviewVisualizationState | ( | ) |
Definition at line 543 of file ViewState.cpp.
References projection_info.
|
inline |
Definition at line 315 of file ViewState.h.
References angx.
Referenced by PanosphereOverviewCameraTool::MouseButtonEvent(), PanosphereOverviewToolHelper::MouseMoved(), and GLPanosphereOverviewRenderer::Redraw().
|
inline |
Definition at line 314 of file ViewState.h.
References angy.
Referenced by PanosphereOverviewCameraTool::MouseButtonEvent(), PanosphereOverviewToolHelper::MouseMoved(), and GLPanosphereOverviewRenderer::Redraw().
|
inline |
Definition at line 317 of file ViewState.h.
References fov.
Referenced by PanosphereOverviewCameraTool::ChangeFOV(), PanosphereOverviewToolHelper::MouseMoved(), and GLPanosphereOverviewRenderer::Resize().
|
virtual |
Reimplemented from VisualizationState.
Definition at line 548 of file ViewState.cpp.
References opts.
Referenced by PanosphereOverviewToolHelper::MouseMoved(), and GLPanosphereOverviewRenderer::Resize().
|
virtual |
Reimplemented from VisualizationState.
Definition at line 553 of file ViewState.cpp.
References projection_info.
|
inline |
Definition at line 316 of file ViewState.h.
References R.
Referenced by PanosphereOverviewCameraTool::ChangeZoomLevel(), PanosphereOverviewToolHelper::MouseMoved(), PanosphereOverviewCameraTool::MouseMoveEvent(), GLPanosphereOverviewRenderer::Redraw(), and GLPanosphereOverviewRenderer::Resize().
|
inline |
Definition at line 320 of file ViewState.h.
References sphere_radius.
Referenced by PanosphereOverviewCameraTool::ChangeZoomLevel(), PanosphereOverviewToolHelper::MouseMoved(), PanosphereOverviewCameraTool::MouseMoveEvent(), and GLPanosphereOverviewRenderer::Resize().
|
inline |
Definition at line 318 of file ViewState.h.
References m_insideView.
Referenced by PanosphereOverviewCameraTool::MouseButtonEvent(), PanosphereOverviewToolHelper::MouseMoved(), PanosphereOverviewCameraTool::MouseMoveEvent(), GLPanosphereOverviewRenderer::Redraw(), and GLPanosphereOverviewRenderer::Resize().
void PanosphereOverviewVisualizationState::setAngX | ( | double | angx_in | ) |
Definition at line 568 of file ViewState.cpp.
References angx, and VisualizationState::dirty_draw.
Referenced by PanosphereOverviewCameraTool::MouseMoveEvent().
void PanosphereOverviewVisualizationState::setAngY | ( | double | angy_in | ) |
Definition at line 574 of file ViewState.cpp.
References angy, and VisualizationState::dirty_draw.
Referenced by PanosphereOverviewCameraTool::MouseMoveEvent().
void PanosphereOverviewVisualizationState::setFOV | ( | double | newFOV | ) |
Definition at line 580 of file ViewState.cpp.
References fov, celeste::max(), and celeste::min().
Referenced by PanosphereOverviewCameraTool::ChangeFOV(), and setInsideView().
void PanosphereOverviewVisualizationState::setInsideView | ( | bool | insideView | ) |
Definition at line 586 of file ViewState.cpp.
References m_insideView, and setFOV().
Referenced by GLOverview::SetMode(), and GLOverview::setUp().
|
virtual |
Reimplemented from VisualizationState.
Definition at line 558 of file ViewState.cpp.
References HuginBase::PanoramaOptions::EQUIRECTANGULAR, opts, projection_info, HuginBase::PanoramaOptions::setHFOV(), HuginBase::PanoramaOptions::setProjection(), and HuginBase::PanoramaOptions::setVFOV().
|
inline |
Definition at line 324 of file ViewState.h.
References R.
Referenced by PanosphereOverviewCameraTool::ChangeZoomLevel().
|
protected |
Definition at line 332 of file ViewState.h.
Referenced by getAngX(), PanosphereOverviewVisualizationState(), and setAngX().
|
protected |
Definition at line 331 of file ViewState.h.
Referenced by getAngY(), PanosphereOverviewVisualizationState(), and setAngY().
|
protected |
Definition at line 334 of file ViewState.h.
Referenced by getFOV(), PanosphereOverviewVisualizationState(), and setFOV().
|
protected |
Definition at line 335 of file ViewState.h.
Referenced by isInsideView(), PanosphereOverviewVisualizationState(), and setInsideView().
|
protected |
Definition at line 340 of file ViewState.h.
Referenced by GetOptions(), PanosphereOverviewVisualizationState(), and SetOptions().
|
protected |
Definition at line 341 of file ViewState.h.
Referenced by GetProjectionInfo(), PanosphereOverviewVisualizationState(), SetOptions(), and ~PanosphereOverviewVisualizationState().
|
protected |
Definition at line 333 of file ViewState.h.
Referenced by getR(), PanosphereOverviewVisualizationState(), and setR().
|
protected |
Definition at line 337 of file ViewState.h.
Referenced by getSphereRadius(), and PanosphereOverviewVisualizationState().