Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Types | Private Attributes | List of all members
ChoosyRemapper Class Reference

A ChoosyRemapper combines the other MeshRemappers and picks which one it deems is best suited for each image. More...

#include <ChoosyRemapper.h>

Inheritance diagram for ChoosyRemapper:
Inheritance graph

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
 
MeshRemapperselected_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
VisualizationStatevisualization_state
 
HuginBase::Panoramam_pano
 
HuginBase::SrcPanoImageimage
 
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
 

Detailed Description

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.

Member Enumeration Documentation

Enumerator
REMAP_NONE 
REMAP_VERTEX 
REMAP_TEX 

Definition at line 40 of file ChoosyRemapper.h.

Constructor & Destructor Documentation

ChoosyRemapper::ChoosyRemapper ( HuginBase::Panorama m_pano,
HuginBase::SrcPanoImage image,
VisualizationState visualization_state 
)

Definition at line 33 of file ChoosyRemapper.cpp.

References REMAP_NONE, selected_remapper, and selection.

ChoosyRemapper::~ChoosyRemapper ( )

Definition at line 41 of file ChoosyRemapper.cpp.

References selected_remapper.

Member Function Documentation

bool ChoosyRemapper::GetNextFaceCoordinates ( Coords result)
virtual

Get the texture and vertex coordinates for the next face.

The coordinates are ordered [left / right][top / bottom][x coord / y coord].

Returns
false once specified all faces, true otherwise.

Implements MeshRemapper.

Definition at line 160 of file ChoosyRemapper.cpp.

References MeshRemapper::GetNextFaceCoordinates(), and selected_remapper.

void ChoosyRemapper::UpdateAndResetIndex ( )
virtual

Reimplemented from MeshRemapper.

Definition at line 46 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.

Member Data Documentation

MeshRemapper* ChoosyRemapper::selected_remapper
private
RemapperSelection ChoosyRemapper::selection
private

Definition at line 41 of file ChoosyRemapper.h.

Referenced by ChoosyRemapper(), and UpdateAndResetIndex().


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