|
Hugintrunk
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. More... | |
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) |
Private Attributes | |
| double | tex_coords [2][2][2] |
| double | s_vertex_coords [2][2][2] |
| double | o_width |
| double | o_height |
| double | radius |
| double | lower_bound |
| double | upper_bound |
| double | lower_bound_h |
| double | upper_bound_h |
| double | x_midpoint |
| double | y_midpoint |
| double | x_add_360 |
| double | y_add_360 |
| bool | done_node |
| unsigned int | tree_node_id |
| unsigned short int | discontinuity_flags |
| HuginBase::PanoramaOptions::ProjectionFormat | output_projection |
| Tree | tree |
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 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.
|
private |
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().
|
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 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(), 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.
|
private |
Definition at line 309 of file VertexCoordRemapper.cpp.
References VertexCoordRemapper::TreeNode::flags, 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, split_flag_x, split_flag_y, TestSubdivide(), tex_coords, MeshRemapper::transform, transform_fail_flag, HuginBase::PTools::Transform::transformImgCoord(), tree, vertex_side_flag_start, VertexCoordRemapper::TreeNode::verts, and MeshRemapper::width.
Referenced by UpdateAndResetIndex().
|
private |
Definition at line 776 of file VertexCoordRemapper.cpp.
References VertexCoordRemapper::TreeNode::angle_x, VertexCoordRemapper::TreeNode::angle_y, VertexCoordRemapper::TreeNode::length_x, VertexCoordRemapper::TreeNode::length_y, sqr(), and VertexCoordRemapper::TreeNode::verts.
Referenced by TestSubdivide().
|
private |
Definition at line 477 of file VertexCoordRemapper.cpp.
References HuginBase::PanoramaOptions::ALBERS_EQUAL_AREA_CONIC, VertexCoordRemapper::TreeNode::angle_x, VertexCoordRemapper::TreeNode::angle_y, HuginBase::PanoramaOptions::CYLINDRICAL, HuginBase::PanoramaOptions::EQUIRECTANGULAR, flags, VertexCoordRemapper::TreeNode::flags, HuginBase::PanoramaOptions::FULL_FRAME_FISHEYE, HuginBase::PanoramaOptions::GENERAL_PANINI, OutputProjectionInfo::GetLowerX(), VertexCoordRemapper::Tree::GetParentId(), VertexCoordRemapper::Tree::GetPosition(), VisualizationState::GetProjectionInfo(), VertexCoordRemapper::Tree::GetTransform(), OutputProjectionInfo::GetUpperX(), VisualizationState::GetVisibleArea(), HuginBase::PanoramaOptions::HAMMER_AITOFF, HuginBase::PanoramaOptions::LAMBERT, HuginBase::PanoramaOptions::LAMBERT_AZIMUTHAL, VertexCoordRemapper::TreeNode::length_x, VertexCoordRemapper::TreeNode::length_y, 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, HuginBase::PanoramaOptions::TRANSVERSE_MERCATOR, tree, upper_bound, upper_bound_h, vertex_side_flag_start, VertexCoordRemapper::TreeNode::verts, 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, celeste::info(), 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.
|
private |
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 75 of file VertexCoordRemapper.h.
Referenced by TestSubdivide(), and UpdateAndResetIndex().
|
private |
Definition at line 75 of file VertexCoordRemapper.h.
Referenced by TestSubdivide(), and UpdateAndResetIndex().
|
private |
Definition at line 75 of file VertexCoordRemapper.h.
Referenced by UpdateAndResetIndex().
|
private |
Definition at line 75 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 75 of file VertexCoordRemapper.h.
Referenced by UpdateAndResetIndex().
|
private |
Definition at line 75 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().
|
private |
Definition at line 89 of file VertexCoordRemapper.h.
Referenced by GetNextFaceCoordinates().
|
private |
Definition at line 75 of file VertexCoordRemapper.h.
Referenced by TestSubdivide(), and UpdateAndResetIndex().
|
private |
Definition at line 75 of file VertexCoordRemapper.h.
Referenced by TestSubdivide(), and UpdateAndResetIndex().
|
private |
Definition at line 75 of file VertexCoordRemapper.h.
Referenced by DiscontinuityFlip(), and UpdateAndResetIndex().
|
private |
Definition at line 75 of file VertexCoordRemapper.h.
Referenced by DiscontinuityFlip(), TestSubdivide(), and UpdateAndResetIndex().
|
private |
Definition at line 75 of file VertexCoordRemapper.h.
Referenced by DiscontinuityFlip(), and UpdateAndResetIndex().
|
private |
Definition at line 75 of file VertexCoordRemapper.h.
Referenced by DiscontinuityFlip(), TestSubdivide(), and UpdateAndResetIndex().
1.8.5