[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

LayoutRemapper Class Reference

Draw undistored images, but with the correct centre position. More...

#include <LayoutRemapper.h>

Inheritance diagram for LayoutRemapper:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 LayoutRemapper (HuginBase::Panorama *m_pano, unsigned int image_number, ViewState *view_state)
virtual void UpdateAndResetIndex ()
virtual bool GetNextFaceCoordinates (Coords *result)
 Get the texture and vertex coordinates for the next face.
void setScale (double scale)
 Set the size to draw the images.

Detailed Description

Draw undistored images, but with the correct centre position.

Must be given a scale to draw with, using SetScale.


Constructor & Destructor Documentation

LayoutRemapper::LayoutRemapper HuginBase::Panorama m_pano,
unsigned int  image_number,
ViewState view_state
 


Member Function Documentation

bool LayoutRemapper::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.

void LayoutRemapper::setScale double  scale  ) 
 

Set the size to draw the images.

Specify the maximum dimension you would like the image to have. The actual size of the image will have this maximum dimension, and the same aspect ratio as the original image file.

void LayoutRemapper::UpdateAndResetIndex  )  [virtual]
 

Todo:
Offset the centre position for images in brackets, when showing all brackets together.
I think a good offset would be about scale * bracket number / 5, assuming bracket numbers are a sequence of consecutive integers starting at 0.

Reimplemented from MeshRemapper.


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

Generated on Mon Sep 20 01:01:34 2010 for Hugintrunk by doxygen 1.3.9.1