Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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. More...
 
 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. More...
 
virtual ~MeshInfo ()
 
void CallList () const
 Draw the mesh. More...
 
void Update ()
 Recreate the mesh when the image or panorama it represents changes. More...
 
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 More...
 
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 More...
 

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. More...
 

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. More...
 
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

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

Definition at line 164 of file MeshManager.h.

References MeshManager::MeshInfo::Update().

Member Function Documentation

void MeshManager::PanosphereOverviewMeshInfo::AfterCompile ( )
protectedvirtual

Reimplemented from MeshManager::MeshInfo.

Definition at line 326 of file MeshManager.cpp.

void MeshManager::PanosphereOverviewMeshInfo::BeforeCompile ( )
protectedvirtual

Reimplemented from MeshManager::MeshInfo.

Definition at line 309 of file MeshManager.cpp.

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.

MeshManager::MeshInfo::Coord3D MeshManager::PanosphereOverviewMeshInfo::GetCoord3D ( hugin_utils::FDiff2D coord,
VisualizationState state 
)
static
MeshManager::MeshInfo::MeshCoords3D MeshManager::PanosphereOverviewMeshInfo::GetMeshCoords3D ( MeshRemapper::Coords coords,
VisualizationState state 
)
static
void MeshManager::PanosphereOverviewMeshInfo::Transform ( )
protectedvirtual

Reimplemented from MeshManager::MeshInfo.

Definition at line 318 of file MeshManager.cpp.

Member Data Documentation

double MeshManager::PanosphereOverviewMeshInfo::pitch
protected

Definition at line 186 of file MeshManager.h.

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().

double MeshManager::PanosphereOverviewMeshInfo::yaw
protected

Definition at line 186 of file MeshManager.h.


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