TexCoordRemapper Class Reference

#include <TexCoordRemapper.h>

Inheritance diagram for TexCoordRemapper:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 TexCoordRemapper (HuginBase::Panorama *m_pano, HuginBase::SrcPanoImage *image, VisualizationState *visualization_state)
virtual void UpdateAndResetIndex ()
virtual bool GetNextFaceCoordinates (Coords *result)

Private Member Functions

void SetSize ()

Private Attributes

std::vector< std::vector<
hugin_utils::FDiff2D > > 
map
double start_x
double start_y
double end_x
double end_y
unsigned int divisions_x
unsigned int divisions_y
double o_width
double o_height
double face_width
double face_height
unsigned int face_index
unsigned int number_of_faces
double vertex_coords [2][2][2]
double texture_coords [2][2][2]
std::vector< MeshRemapper::ArrayCoordsface_list
 List for results when clipping faces.

Detailed Description

Definition at line 38 of file TexCoordRemapper.h.


Constructor & Destructor Documentation

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

Definition at line 37 of file TexCoordRemapper.cpp.


Member Function Documentation

bool TexCoordRemapper::GetNextFaceCoordinates ( Coords *  result  )  [virtual]

Definition at line 72 of file TexCoordRemapper.cpp.

References MeshRemapper::ClipFace(), MeshRemapper::crop_x1, MeshRemapper::crop_x2, MeshRemapper::crop_y1, MeshRemapper::crop_y2, divisions_x, face_height, face_index, face_width, MeshRemapper::GiveClipFaceResult(), MeshRemapper::height, MeshRemapper::image, HuginBase::SrcPanoImage::isInside(), map, number_of_faces, start_x, start_y, texture_coords, vertex_coords, and MeshRemapper::width.

void TexCoordRemapper::SetSize (  )  [private]

Definition at line 153 of file TexCoordRemapper.cpp.

References divisions_x, divisions_y, end_x, end_y, face_height, face_width, VisualizationState::GetScale(), VisualizationState::GetVisibleArea(), MeshRemapper::height, MeshRemapper::image, map, mesh_frequency, number_of_faces, o_height, o_width, HuginBase::Nona::resize(), MeshRemapper::scale, start_x, start_y, MeshRemapper::visualization_state, and MeshRemapper::width.

Referenced by UpdateAndResetIndex().

void TexCoordRemapper::UpdateAndResetIndex (  )  [virtual]

Reimplemented from MeshRemapper.

Definition at line 45 of file TexCoordRemapper.cpp.

References HuginBase::PTools::Transform::createTransform(), divisions_x, divisions_y, face_height, face_index, face_width, VisualizationState::GetOptions(), MeshRemapper::height, MeshRemapper::image, map, MeshRemapper::SetCrop(), SetSize(), start_x, start_y, MeshRemapper::transform, HuginBase::PTools::Transform::transformImgCoord(), MeshRemapper::visualization_state, and MeshRemapper::width.


Member Data Documentation

unsigned int TexCoordRemapper::divisions_x [private]

Definition at line 53 of file TexCoordRemapper.h.

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

unsigned int TexCoordRemapper::divisions_y [private]

Definition at line 53 of file TexCoordRemapper.h.

Referenced by SetSize(), and UpdateAndResetIndex().

double TexCoordRemapper::end_x [private]

Definition at line 51 of file TexCoordRemapper.h.

Referenced by SetSize().

double TexCoordRemapper::end_y [private]

Definition at line 51 of file TexCoordRemapper.h.

Referenced by SetSize().

double TexCoordRemapper::face_height [private]

Definition at line 58 of file TexCoordRemapper.h.

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

unsigned int TexCoordRemapper::face_index [private]

Definition at line 60 of file TexCoordRemapper.h.

Referenced by GetNextFaceCoordinates(), and UpdateAndResetIndex().

std::vector<MeshRemapper::ArrayCoords> TexCoordRemapper::face_list [private]

List for results when clipping faces.

Reimplemented from MeshRemapper.

Definition at line 63 of file TexCoordRemapper.h.

double TexCoordRemapper::face_width [private]

Definition at line 57 of file TexCoordRemapper.h.

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

std::vector< std::vector<hugin_utils::FDiff2D> > TexCoordRemapper::map [private]

Definition at line 49 of file TexCoordRemapper.h.

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

unsigned int TexCoordRemapper::number_of_faces [private]

Definition at line 60 of file TexCoordRemapper.h.

Referenced by GetNextFaceCoordinates(), and SetSize().

double TexCoordRemapper::o_height [private]

Definition at line 55 of file TexCoordRemapper.h.

Referenced by SetSize().

double TexCoordRemapper::o_width [private]

Definition at line 55 of file TexCoordRemapper.h.

Referenced by SetSize().

double TexCoordRemapper::start_x [private]

Definition at line 51 of file TexCoordRemapper.h.

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

double TexCoordRemapper::start_y [private]

Definition at line 51 of file TexCoordRemapper.h.

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

double TexCoordRemapper::texture_coords[2][2][2] [private]

Definition at line 62 of file TexCoordRemapper.h.

Referenced by GetNextFaceCoordinates().

double TexCoordRemapper::vertex_coords[2][2][2] [private]

Definition at line 61 of file TexCoordRemapper.h.

Referenced by GetNextFaceCoordinates().


The documentation for this class was generated from the following files:
Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7