Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
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

Public Member Functions

 PanosphereOverviewMeshInfo (HuginBase::Panorama *m_pano, HuginBase::SrcPanoImage *image, VisualizationState *visualization_state, bool layout_mode_on)
 
 PanosphereOverviewMeshInfo (const PanosphereOverviewMeshInfo &source)
 
- Public Member Functions inherited from MeshManager::MeshInfo
 MeshInfo (HuginBase::Panorama *m_pano, HuginBase::SrcPanoImage *image, VisualizationState *visualization_state, bool layout_mode_on)
 Constructor: Creates the mesh for a given image of a panorama.
 
 MeshInfo (const MeshInfo &source)
 copy constructor: makes a MeshInfo representing the same object but using a differrent display list, allowing the first one to be freed.
 
virtual ~MeshInfo ()
 
void CallList () const
 Draw the mesh.
 
void Update ()
 Recreate the mesh when the image or panorama it represents changes.
 
void SetScaleFactor (double scale)
 
void SetSrcImage (HuginBase::SrcPanoImage *image)
 

Static Public Member Functions

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

Static Public Attributes

static 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 Member Functions inherited from MeshManager::MeshInfo
void CompileList ()
 Use the remapper to create the display list.
 

Protected Attributes

double yaw
 
double pitch
 
- Protected Attributes inherited from MeshManager::MeshInfo
HuginBase::SrcPanoImage image
 
HuginBase::Panoramam_pano
 
double scale_factor
 
VisualizationStatem_visualization_state
 
MeshRemapperremap
 The ramapper we should use.
 
bool layout_mode_on
 

Additional Inherited Members

- Public Attributes inherited from MeshManager::MeshInfo
unsigned int display_list_number
 

Detailed Description

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

Definition at line 154 of file MeshManager.h.

Constructor & Destructor Documentation

◆ PanosphereOverviewMeshInfo() [1/2]

MeshManager::PanosphereOverviewMeshInfo::PanosphereOverviewMeshInfo ( HuginBase::Panorama m_pano,
HuginBase::SrcPanoImage image,
VisualizationState visualization_state,
bool  layout_mode_on 
)
inline

◆ PanosphereOverviewMeshInfo() [2/2]

MeshManager::PanosphereOverviewMeshInfo::PanosphereOverviewMeshInfo ( const PanosphereOverviewMeshInfo source)
inline

Definition at line 164 of file MeshManager.h.

References MeshManager::MeshInfo::Update().

Member Function Documentation

◆ AfterCompile()

void MeshManager::PanosphereOverviewMeshInfo::AfterCompile ( )
protectedvirtual

Reimplemented from MeshManager::MeshInfo.

Definition at line 326 of file MeshManager.cpp.

◆ BeforeCompile()

void MeshManager::PanosphereOverviewMeshInfo::BeforeCompile ( )
protectedvirtual

Reimplemented from MeshManager::MeshInfo.

Definition at line 309 of file MeshManager.cpp.

◆ Convert()

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 297 of file MeshManager.cpp.

References M_PI, and threshold().

◆ GetCoord3D()

MeshManager::MeshInfo::Coord3D MeshManager::PanosphereOverviewMeshInfo::GetCoord3D ( hugin_utils::FDiff2D coord,
VisualizationState state 
)
static

◆ GetMeshCoords3D()

MeshManager::MeshInfo::MeshCoords3D MeshManager::PanosphereOverviewMeshInfo::GetMeshCoords3D ( MeshRemapper::Coords coords,
VisualizationState state 
)
static

◆ Transform()

void MeshManager::PanosphereOverviewMeshInfo::Transform ( )
protectedvirtual

Reimplemented from MeshManager::MeshInfo.

Definition at line 318 of file MeshManager.cpp.

References threshold().

Member Data Documentation

◆ pitch

double MeshManager::PanosphereOverviewMeshInfo::pitch
protected

Definition at line 186 of file MeshManager.h.

◆ scale_diff

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 178 of file MeshManager.h.

Referenced by PanosphereOverviewMeshInfo(), and GLOverview::SetLayoutScale().

◆ yaw

double MeshManager::PanosphereOverviewMeshInfo::yaw
protected

Definition at line 186 of file MeshManager.h.


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