MeshManager::PanosphereOverviewMeshInfo Class Reference

a subclass for the panosphere it converts coordinates obtained from an equirectangular projection to 3D coordinates on the sphere More...

#include <MeshManager.h>

Inheritance diagram for MeshManager::PanosphereOverviewMeshInfo:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PanosphereOverviewMeshInfo (PT::Panorama *m_pano, HuginBase::SrcPanoImage *image, VisualizationState *visualization_state, bool layout_mode_on)
 PanosphereOverviewMeshInfo (const PanosphereOverviewMeshInfo &source)

Static Public Member Functions

void Convert (double &x, double &y, double &z, double th, double ph, double r)
 convert from spherical to cartesian coordinates
MeshCoords3D GetMeshCoords3D (MeshRemapper::Coords &coords, VisualizationState *state)
Coord3D GetCoord3D (hugin_utils::FDiff2D &coord, VisualizationState *state)

Static Public Attributes

const double scale_diff = 1.5
 scale factor to be used for the layout mode TODO: test this for more scenarios

Protected Member Functions

void BeforeCompile ()
void Transform ()
void AfterCompile ()

Protected Attributes

double yaw
double pitch

Detailed Description

a subclass for the panosphere it converts coordinates obtained from an equirectangular projection to 3D coordinates on the sphere

Definition at line 152 of file MeshManager.h.


Constructor & Destructor Documentation

MeshManager::PanosphereOverviewMeshInfo::PanosphereOverviewMeshInfo PT::Panorama m_pano,
HuginBase::SrcPanoImage image,
VisualizationState visualization_state,
bool  layout_mode_on
[inline]
 

Definition at line 155 of file MeshManager.h.

MeshManager::PanosphereOverviewMeshInfo::PanosphereOverviewMeshInfo const PanosphereOverviewMeshInfo source  )  [inline]
 

Definition at line 162 of file MeshManager.h.


Member Function Documentation

void MeshManager::PanosphereOverviewMeshInfo::AfterCompile  )  [protected, virtual]
 

Reimplemented from MeshManager::MeshInfo.

Definition at line 320 of file MeshManager.cpp.

References pitch, HuginBase::BaseSrcPanoImage::setPitch(), HuginBase::BaseSrcPanoImage::setYaw(), and yaw.

void MeshManager::PanosphereOverviewMeshInfo::BeforeCompile  )  [protected, virtual]
 

Reimplemented from MeshManager::MeshInfo.

Definition at line 303 of file MeshManager.cpp.

References pitch, HuginBase::BaseSrcPanoImage::setPitch(), HuginBase::BaseSrcPanoImage::setYaw(), and yaw.

void MeshManager::PanosphereOverviewMeshInfo::Convert double &  x,
double &  y,
double &  z,
double  th,
double  ph,
double  r
[static]
 

convert from spherical to cartesian coordinates

Definition at line 291 of file MeshManager.cpp.

Referenced by GetCoord3D(), and GetMeshCoords3D().

MeshManager::MeshInfo::Coord3D MeshManager::PanosphereOverviewMeshInfo::GetCoord3D hugin_utils::FDiff2D coord,
VisualizationState state
[static]
 

Definition at line 326 of file MeshManager.cpp.

References Convert(), hugin_utils::FDiff2D, HuginBase::PanoramaOptions::getHeight(), VisualizationState::GetOptions(), HuginBase::PanoramaOptions::getWidth(), MeshManager::MeshInfo::Coord3D::x, hugin_utils::TDiff2D< T >::x, MeshManager::MeshInfo::Coord3D::y, hugin_utils::TDiff2D< T >::y, and MeshManager::MeshInfo::Coord3D::z.

Referenced by PanosphereOverviewMeshManager::GetCoord3D().

MeshManager::MeshInfo::MeshCoords3D MeshManager::PanosphereOverviewMeshInfo::GetMeshCoords3D MeshRemapper::Coords coords,
VisualizationState state
[static]
 

Definition at line 352 of file MeshManager.cpp.

References Convert(), HuginBase::PanoramaOptions::getHeight(), VisualizationState::GetOptions(), HuginBase::PanoramaOptions::getWidth(), MeshRemapper::Coords::tex_c, and MeshRemapper::Coords::vertex_c.

Referenced by PanosphereOverviewMeshManager::GetMeshCoords3D().

void MeshManager::PanosphereOverviewMeshInfo::Transform  )  [protected, virtual]
 

Reimplemented from MeshManager::MeshInfo.

Definition at line 312 of file MeshManager.cpp.

References pitch, and yaw.


Member Data Documentation

double MeshManager::PanosphereOverviewMeshInfo::pitch [protected]
 

Definition at line 184 of file MeshManager.h.

Referenced by AfterCompile(), BeforeCompile(), and Transform().

const double MeshManager::PanosphereOverviewMeshInfo::scale_diff = 1.5 [static]
 

scale factor to be used for the layout mode TODO: test this for more scenarios

Definition at line 52 of file MeshManager.cpp.

double MeshManager::PanosphereOverviewMeshInfo::yaw [protected]
 

Definition at line 184 of file MeshManager.h.

Referenced by AfterCompile(), BeforeCompile(), and Transform().


The documentation for this class was generated from the following files:
Generated on Fri Aug 29 01:25:50 2014 for Hugintrunk by  doxygen 1.3.9.1