Hugintrunk
0.1
|
a subclass for the panosphere it converts coordinates obtained from an equirectangular projection to 3D coordinates on the sphere More...
#include <MeshManager.h>
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::Panorama * | m_pano |
double | scale_factor |
VisualizationState * | m_visualization_state |
MeshRemapper * | remap |
The ramapper we should use. More... | |
bool | layout_mode_on |
Additional Inherited Members | |
Public Attributes inherited from MeshManager::MeshInfo | |
unsigned int | display_list_number |
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.
|
inline |
Definition at line 157 of file MeshManager.h.
References scale_diff, MeshManager::MeshInfo::scale_factor, and MeshManager::MeshInfo::Update().
|
inline |
Definition at line 164 of file MeshManager.h.
References MeshManager::MeshInfo::Update().
|
protectedvirtual |
Reimplemented from MeshManager::MeshInfo.
Definition at line 326 of file MeshManager.cpp.
|
protectedvirtual |
Reimplemented from MeshManager::MeshInfo.
Definition at line 309 of file MeshManager.cpp.
|
static |
convert from spherical to cartesian coordinates
Definition at line 297 of file MeshManager.cpp.
References M_PI.
|
static |
Definition at line 332 of file MeshManager.cpp.
References 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().
|
static |
Definition at line 358 of file MeshManager.cpp.
References HuginBase::PanoramaOptions::getHeight(), VisualizationState::GetOptions(), HuginBase::PanoramaOptions::getWidth(), MeshRemapper::Coords::tex_c, MeshManager::MeshInfo::MeshCoords3D::tex_coords, MeshRemapper::Coords::vertex_c, and MeshManager::MeshInfo::MeshCoords3D::vertex_coords.
Referenced by PanosphereOverviewMeshManager::GetMeshCoords3D().
|
protectedvirtual |
Reimplemented from MeshManager::MeshInfo.
Definition at line 318 of file MeshManager.cpp.
|
protected |
Definition at line 186 of file MeshManager.h.
|
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().
|
protected |
Definition at line 186 of file MeshManager.h.