|
Hugin trunk 0.1
|
#include <VertexCoordRemapper.h>

Classes | |
| class | Tree |
| class | TreeNode |
Public Member Functions | |
| VertexCoordRemapper (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. | |
Public Member Functions inherited from MeshRemapper | |
| MeshRemapper (HuginBase::Panorama *m_pano, HuginBase::SrcPanoImage *image, VisualizationState *visualization_state) | |
| virtual | ~MeshRemapper () |
Private Member Functions | |
| void | RecursiveUpdate (unsigned int node_id, unsigned int stretch_x, unsigned int stretch_y) |
| void | TestSubdivide (unsigned int node_id) |
| void | DiscontinuityFlip (double vertex_c[2]) |
| void | SetLengthAndAngle (TreeNode *node) |
Additional Inherited Members | |
Protected Member Functions inherited from MeshRemapper | |
| void | SetCrop () |
| Fill the crop values of the MeshRemapper from the source image. | |
| void | ClipFace (Coords *face) |
| Crop a face to the source image, return true if there is anything left. | |
| bool | GiveClipFaceResult (Coords *result) |
| Get a face that was produced by ClipFace. | |
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. | |
| double | height |
| The sizes of the input images in pixels. | |
| double | width |
| HuginBase::PTools::Transform | transform |
| A transform to use to remap the images. | |
| HuginBase::SrcPanoImage::CropMode | crop_mode |
| Crop mode of the source image. | |
| 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 64 of file VertexCoordRemapper.h.
| VertexCoordRemapper::VertexCoordRemapper | ( | HuginBase::Panorama * | m_pano, |
| HuginBase::SrcPanoImage * | image, | ||
| VisualizationState * | visualization_state | ||
| ) |
Definition at line 103 of file VertexCoordRemapper.cpp.
viewer) is not drawn.
Definition at line 255 of file VertexCoordRemapper.cpp.
References HuginBase::PanoramaOptions::ALBERS_EQUAL_AREA_CONIC, HuginBase::PanoramaOptions::ARCHITECTURAL, HuginBase::PanoramaOptions::CYLINDRICAL, HuginBase::PanoramaOptions::EQUIRECTANGULAR, HuginBase::PanoramaOptions::EQUISOLID, HuginBase::PanoramaOptions::FULL_FRAME_FISHEYE, VisualizationState::GetProjectionInfo(), OutputProjectionInfo::GetXAdd360(), HuginBase::PanoramaOptions::HAMMER_AITOFF, HuginBase::PanoramaOptions::LAMBERT, HuginBase::PanoramaOptions::LAMBERT_AZIMUTHAL, HuginBase::PanoramaOptions::MERCATOR, HuginBase::PanoramaOptions::MILLER_CYLINDRICAL, HuginBase::PanoramaOptions::ORTHOGRAPHIC, output_projection, HuginBase::PanoramaOptions::RECTILINEAR, HuginBase::PanoramaOptions::SINUSOIDAL, HuginBase::PanoramaOptions::STEREOGRAPHIC, HuginBase::PanoramaOptions::THOBY_PROJECTION, HuginBase::PanoramaOptions::TRANSVERSE_MERCATOR, MeshRemapper::visualization_state, x_add_360, x_midpoint, y_add_360, and y_midpoint.
Referenced by GetNextFaceCoordinates().
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 155 of file VertexCoordRemapper.cpp.
References MeshRemapper::circle_crop, MeshRemapper::ClipFace(), discontinuity_flags, DiscontinuityFlip(), done_node, VertexCoordRemapper::TreeNode::flags, VertexCoordRemapper::Tree::GetInputCoordinates(), VertexCoordRemapper::Tree::GetNext(), GetNextFaceCoordinates(), MeshRemapper::GiveClipFaceResult(), MeshRemapper::height, MeshRemapper::image, HuginBase::SrcPanoImage::isInside(), VertexCoordRemapper::Tree::nodes, s_vertex_coords, MeshRemapper::Coords::tex_c, tex_coords, transform_fail_flag, tree, tree_node_id, MeshRemapper::Coords::vertex_c, vertex_side_flag_start, VertexCoordRemapper::TreeNode::verts, and MeshRemapper::width.
Referenced by GetNextFaceCoordinates().
|
private |
Definition at line 309 of file VertexCoordRemapper.cpp.
References VertexCoordRemapper::Tree::GetIndex(), VertexCoordRemapper::Tree::GetInputCoordinates(), VertexCoordRemapper::Tree::GetParentId(), VertexCoordRemapper::Tree::GetPosition(), VertexCoordRemapper::Tree::GetTransform(), MeshRemapper::height, VertexCoordRemapper::Tree::nodes, patch_flag_x, patch_flag_y, RecursiveUpdate(), split_flag_x, split_flag_y, TestSubdivide(), tex_coords, threshold(), MeshRemapper::transform, transform_fail_flag, HuginBase::PTools::Transform::transformImgCoord(), tree, vertex_side_flag_start, and MeshRemapper::width.
Referenced by RecursiveUpdate(), and UpdateAndResetIndex().
Definition at line 776 of file VertexCoordRemapper.cpp.
References sqr(), and threshold().
Referenced by TestSubdivide().
Definition at line 477 of file VertexCoordRemapper.cpp.
References HuginBase::PanoramaOptions::ALBERS_EQUAL_AREA_CONIC, HuginBase::PanoramaOptions::CYLINDRICAL, HuginBase::PanoramaOptions::EQUIRECTANGULAR, flags, VertexCoordRemapper::TreeNode::flags, HuginBase::PanoramaOptions::FULL_FRAME_FISHEYE, HuginBase::PanoramaOptions::GENERAL_PANINI, VertexCoordRemapper::Tree::GetParentId(), VertexCoordRemapper::Tree::GetPosition(), VisualizationState::GetProjectionInfo(), VertexCoordRemapper::Tree::GetTransform(), VisualizationState::GetVisibleArea(), HuginBase::PanoramaOptions::HAMMER_AITOFF, HuginBase::PanoramaOptions::LAMBERT, HuginBase::PanoramaOptions::LAMBERT_AZIMUTHAL, lower_bound, lower_bound_h, M_PI, max_depth, HuginBase::PanoramaOptions::MERCATOR, HuginBase::PanoramaOptions::MILLER_CYLINDRICAL, min_angle, min_depth, min_length, min_length_difference, VertexCoordRemapper::Tree::nodes, offscreen_safety_margin, output_projection, HuginBase::PanoramaOptions::PANINI, patch_flag_x, patch_flag_y, HuginBase::PanoramaOptions::RECTILINEAR, MeshRemapper::scale, SetLengthAndAngle(), HuginBase::PanoramaOptions::SINUSOIDAL, split_flag_x, split_flag_y, HuginBase::PanoramaOptions::STEREOGRAPHIC, threshold(), HuginBase::PanoramaOptions::TRANSVERSE_MERCATOR, tree, upper_bound, upper_bound_h, vertex_side_flag_start, MeshRemapper::visualization_state, x_midpoint, and y_midpoint.
Referenced by RecursiveUpdate().
|
virtual |
Reimplemented from MeshRemapper.
Definition at line 111 of file VertexCoordRemapper.cpp.
References HuginBase::PTools::Transform::createInvTransform(), MeshRemapper::crop_x1, MeshRemapper::crop_x2, MeshRemapper::crop_y1, MeshRemapper::crop_y2, DEBUG_DEBUG, done_node, HuginBase::PanoramaOptions::getHeight(), OutputProjectionInfo::GetLowerX(), OutputProjectionInfo::GetLowerY(), OutputProjectionInfo::GetMiddleX(), OutputProjectionInfo::GetMiddleY(), VisualizationState::GetOptions(), HuginBase::PanoramaOptions::getProjection(), VisualizationState::GetProjectionInfo(), OutputProjectionInfo::GetRadius(), OutputProjectionInfo::GetUpperX(), OutputProjectionInfo::GetUpperY(), HuginBase::PanoramaOptions::getWidth(), OutputProjectionInfo::GetXAdd360(), OutputProjectionInfo::GetYAdd360(), MeshRemapper::image, lower_bound, lower_bound_h, o_height, o_width, output_projection, radius, RecursiveUpdate(), VertexCoordRemapper::Tree::ResetIndex(), MeshRemapper::SetCrop(), MeshRemapper::transform, tree, MeshRemapper::UpdateAndResetIndex(), upper_bound, upper_bound_h, MeshRemapper::visualization_state, x_add_360, VertexCoordRemapper::Tree::x_crop_offs, VertexCoordRemapper::Tree::x_crop_scale, x_midpoint, y_add_360, VertexCoordRemapper::Tree::y_crop_offs, VertexCoordRemapper::Tree::y_crop_scale, and y_midpoint.
Definition at line 91 of file VertexCoordRemapper.h.
Referenced by GetNextFaceCoordinates().
|
private |
Definition at line 88 of file VertexCoordRemapper.h.
Referenced by GetNextFaceCoordinates(), and UpdateAndResetIndex().
|
private |
Definition at line 81 of file VertexCoordRemapper.h.
Referenced by TestSubdivide(), and UpdateAndResetIndex().
|
private |
Definition at line 81 of file VertexCoordRemapper.h.
Referenced by TestSubdivide(), and UpdateAndResetIndex().
|
private |
Definition at line 79 of file VertexCoordRemapper.h.
Referenced by UpdateAndResetIndex().
|
private |
Definition at line 79 of file VertexCoordRemapper.h.
Referenced by UpdateAndResetIndex().
|
private |
Definition at line 94 of file VertexCoordRemapper.h.
Referenced by DiscontinuityFlip(), TestSubdivide(), and UpdateAndResetIndex().
|
private |
Definition at line 81 of file VertexCoordRemapper.h.
Referenced by UpdateAndResetIndex().
|
private |
Definition at line 77 of file VertexCoordRemapper.h.
Referenced by GetNextFaceCoordinates().
|
private |
Definition at line 75 of file VertexCoordRemapper.h.
Referenced by GetNextFaceCoordinates(), and RecursiveUpdate().
|
private |
Definition at line 175 of file VertexCoordRemapper.h.
Referenced by GetNextFaceCoordinates(), RecursiveUpdate(), TestSubdivide(), and UpdateAndResetIndex().
Definition at line 89 of file VertexCoordRemapper.h.
Referenced by GetNextFaceCoordinates().
|
private |
Definition at line 81 of file VertexCoordRemapper.h.
Referenced by TestSubdivide(), and UpdateAndResetIndex().
|
private |
Definition at line 81 of file VertexCoordRemapper.h.
Referenced by TestSubdivide(), and UpdateAndResetIndex().
|
private |
Definition at line 84 of file VertexCoordRemapper.h.
Referenced by DiscontinuityFlip(), and UpdateAndResetIndex().
|
private |
Definition at line 82 of file VertexCoordRemapper.h.
Referenced by DiscontinuityFlip(), TestSubdivide(), and UpdateAndResetIndex().
|
private |
Definition at line 84 of file VertexCoordRemapper.h.
Referenced by DiscontinuityFlip(), and UpdateAndResetIndex().
|
private |
Definition at line 82 of file VertexCoordRemapper.h.
Referenced by DiscontinuityFlip(), TestSubdivide(), and UpdateAndResetIndex().