Hugintrunk
0.1
|
#include <TexCoordRemapper.h>
Public Member Functions | |
TexCoordRemapper (HuginBase::Panorama *m_pano, HuginBase::SrcPanoImage *image, VisualizationState *visualization_state) | |
virtual void | UpdateAndResetIndex () |
virtual 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 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] |
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 |
Definition at line 38 of file TexCoordRemapper.h.
TexCoordRemapper::TexCoordRemapper | ( | HuginBase::Panorama * | m_pano, |
HuginBase::SrcPanoImage * | image, | ||
VisualizationState * | visualization_state | ||
) |
Definition at line 37 of file TexCoordRemapper.cpp.
|
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 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, MeshRemapper::Coords::tex_c, texture_coords, MeshRemapper::Coords::vertex_c, vertex_coords, and MeshRemapper::width.
|
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, MeshRemapper::scale, start_x, start_y, MeshRemapper::visualization_state, and MeshRemapper::width.
Referenced by 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.
|
private |
Definition at line 53 of file TexCoordRemapper.h.
Referenced by GetNextFaceCoordinates(), SetSize(), and UpdateAndResetIndex().
|
private |
Definition at line 53 of file TexCoordRemapper.h.
Referenced by SetSize(), and UpdateAndResetIndex().
|
private |
Definition at line 51 of file TexCoordRemapper.h.
Referenced by SetSize().
|
private |
Definition at line 51 of file TexCoordRemapper.h.
Referenced by SetSize().
|
private |
Definition at line 58 of file TexCoordRemapper.h.
Referenced by GetNextFaceCoordinates(), SetSize(), and UpdateAndResetIndex().
|
private |
Definition at line 60 of file TexCoordRemapper.h.
Referenced by GetNextFaceCoordinates(), and UpdateAndResetIndex().
|
private |
Definition at line 57 of file TexCoordRemapper.h.
Referenced by GetNextFaceCoordinates(), SetSize(), and UpdateAndResetIndex().
|
private |
Definition at line 49 of file TexCoordRemapper.h.
Referenced by GetNextFaceCoordinates(), SetSize(), and UpdateAndResetIndex().
|
private |
Definition at line 60 of file TexCoordRemapper.h.
Referenced by GetNextFaceCoordinates(), and SetSize().
|
private |
Definition at line 55 of file TexCoordRemapper.h.
Referenced by SetSize().
|
private |
Definition at line 55 of file TexCoordRemapper.h.
Referenced by SetSize().
|
private |
Definition at line 51 of file TexCoordRemapper.h.
Referenced by GetNextFaceCoordinates(), SetSize(), and UpdateAndResetIndex().
|
private |
Definition at line 51 of file TexCoordRemapper.h.
Referenced by GetNextFaceCoordinates(), SetSize(), and UpdateAndResetIndex().
|
private |
Definition at line 62 of file TexCoordRemapper.h.
Referenced by GetNextFaceCoordinates().
|
private |
Definition at line 61 of file TexCoordRemapper.h.
Referenced by GetNextFaceCoordinates().