| Hugintrunk
    0.1
    | 
A ChoosyRemapper combines the other MeshRemappers and picks which one it deems is best suited for each image. More...
#include <ChoosyRemapper.h>

| Public Member Functions | |
| ChoosyRemapper (HuginBase::Panorama *m_pano, HuginBase::SrcPanoImage *image, VisualizationState *visualization_state) | |
| ~ChoosyRemapper () | |
| void | UpdateAndResetIndex () | 
| bool | GetNextFaceCoordinates (Coords *result) | 
| Get the texture and vertex coordinates for the next face.  More... | |
|  Public Member Functions inherited from MeshRemapper | |
| MeshRemapper (HuginBase::Panorama *m_pano, HuginBase::SrcPanoImage *image, VisualizationState *visualization_state) | |
| virtual | ~MeshRemapper () | 
| Private Types | |
| enum | RemapperSelection { REMAP_NONE, REMAP_VERTEX, REMAP_TEX } | 
| Private Attributes | |
| RemapperSelection | selection | 
| MeshRemapper * | selected_remapper | 
| Additional Inherited Members | |
|  Protected Member Functions inherited from MeshRemapper | |
| void | SetCrop () | 
| Fill the crop values of the MeshRemapper from the source image.  More... | |
| void | ClipFace (Coords *face) | 
| Crop a face to the source image, return true if there is anything left.  More... | |
| bool | GiveClipFaceResult (Coords *result) | 
| Get a face that was produced by ClipFace.  More... | |
|  Protected Attributes inherited from MeshRemapper | |
| VisualizationState * | visualization_state | 
| HuginBase::Panorama * | m_pano | 
| HuginBase::SrcPanoImage * | image | 
| float | scale | 
| The number number of units between vertex coorinates that gives a pixel in the display.  More... | |
| double | height | 
| The sizes of the input images in pixels.  More... | |
| double | width | 
| HuginBase::PTools::Transform | transform | 
| A transform to use to remap the images.  More... | |
| HuginBase::SrcPanoImage::CropMode | crop_mode | 
| Crop mode of the source image.  More... | |
| double | crop_x1 | 
| double | crop_x2 | 
| double | crop_y1 | 
| double | crop_y2 | 
| double | circle_crop_centre_x | 
| double | circle_crop_centre_y | 
| double | circle_crop_radius_x | 
| double | circle_crop_radius_y | 
| bool | circle_crop | 
A ChoosyRemapper combines the other MeshRemappers and picks which one it deems is best suited for each image.
Definition at line 31 of file ChoosyRemapper.h.
| 
 | private | 
| Enumerator | |
|---|---|
| REMAP_NONE | |
| REMAP_VERTEX | |
| REMAP_TEX | |
Definition at line 40 of file ChoosyRemapper.h.
| ChoosyRemapper::ChoosyRemapper | ( | HuginBase::Panorama * | m_pano, | 
| HuginBase::SrcPanoImage * | image, | ||
| VisualizationState * | visualization_state | ||
| ) | 
Definition at line 31 of file ChoosyRemapper.cpp.
References REMAP_NONE, selected_remapper, and selection.
| ChoosyRemapper::~ChoosyRemapper | ( | ) | 
Definition at line 39 of file ChoosyRemapper.cpp.
References selected_remapper.
| 
 | virtual | 
Get the texture and vertex coordinates for the next face.
The coordinates are ordered [left / right][top / bottom][x coord / y coord].
Implements MeshRemapper.
Definition at line 158 of file ChoosyRemapper.cpp.
References MeshRemapper::GetNextFaceCoordinates(), and selected_remapper.
| 
 | virtual | 
Reimplemented from MeshRemapper.
Definition at line 44 of file ChoosyRemapper.cpp.
References HuginBase::PanoramaOptions::ALBERS_EQUAL_AREA_CONIC, HuginBase::PanoramaOptions::ARCHITECTURAL, HuginBase::PTools::Transform::createTransform(), HuginBase::PanoramaOptions::CYLINDRICAL, HuginBase::PanoramaOptions::EQUI_PANINI, HuginBase::PanoramaOptions::EQUIRECTANGULAR, HuginBase::PanoramaOptions::EQUISOLID, HuginBase::PanoramaOptions::FULL_FRAME_FISHEYE, HuginBase::PanoramaOptions::GENERAL_PANINI, OutputProjectionInfo::GetNorthPoleX(), OutputProjectionInfo::GetNorthPoleY(), VisualizationState::GetOptions(), HuginBase::PanoramaOptions::getProjection(), VisualizationState::GetProjectionInfo(), OutputProjectionInfo::GetSouthPoleX(), OutputProjectionInfo::GetSouthPoleY(), HuginBase::PanoramaOptions::HAMMER_AITOFF, MeshRemapper::height, MeshRemapper::image, celeste::info(), HuginBase::PanoramaOptions::LAMBERT, HuginBase::PanoramaOptions::LAMBERT_AZIMUTHAL, MeshRemapper::m_pano, HuginBase::PanoramaOptions::MERCATOR, HuginBase::PanoramaOptions::MILLER_CYLINDRICAL, HuginBase::PanoramaOptions::ORTHOGRAPHIC, HuginBase::PanoramaOptions::PANINI, REMAP_TEX, REMAP_VERTEX, selected_remapper, selection, HuginBase::PanoramaOptions::STEREOGRAPHIC, HuginBase::PanoramaOptions::THOBY_PROJECTION, MeshRemapper::transform, HuginBase::PTools::Transform::transformImgCoord(), HuginBase::PanoramaOptions::TRANSVERSE_MERCATOR, MeshRemapper::UpdateAndResetIndex(), MeshRemapper::visualization_state, and MeshRemapper::width.
| 
 | private | 
Definition at line 42 of file ChoosyRemapper.h.
Referenced by ChoosyRemapper(), GetNextFaceCoordinates(), UpdateAndResetIndex(), and ~ChoosyRemapper().
| 
 | private | 
Definition at line 41 of file ChoosyRemapper.h.
Referenced by ChoosyRemapper(), and UpdateAndResetIndex().
 1.8.5
 1.8.5