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
[legend]
List of all members.

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.

Private Types

enum  RemapperSelection { REMAP_NONE, REMAP_VERTEX, REMAP_TEX }

Private Attributes

RemapperSelection selection
MeshRemapperselected_remapper

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

enum ChoosyRemapper::RemapperSelection [private]
 

Enumeration values:
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 selected_remapper, and selection.

ChoosyRemapper::~ChoosyRemapper  ) 
 

Definition at line 41 of file ChoosyRemapper.cpp.


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 162 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::PTools::Transform::createTransform(), OutputProjectionInfo::GetNorthPoleX(), OutputProjectionInfo::GetNorthPoleY(), VisualizationState::GetOptions(), HuginBase::PanoramaOptions::getProjection(), VisualizationState::GetProjectionInfo(), OutputProjectionInfo::GetSouthPoleX(), OutputProjectionInfo::GetSouthPoleY(), selected_remapper, selection, HuginBase::PTools::Transform::transformImgCoord(), and MeshRemapper::UpdateAndResetIndex().


Member Data Documentation

MeshRemapper* ChoosyRemapper::selected_remapper [private]
 

Definition at line 42 of file ChoosyRemapper.h.

Referenced by ChoosyRemapper(), GetNextFaceCoordinates(), and UpdateAndResetIndex().

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:
Generated on Mon Apr 21 01:25:44 2014 for Hugintrunk by  doxygen 1.3.9.1