VertexCoordRemapper.cpp File Reference

#include "VertexCoordRemapper.h"
#include <math.h>
#include <iostream>
#include "ViewState.h"
#include "panodata/SrcPanoImage.h"

Include dependency graph for VertexCoordRemapper.cpp:

Go to the source code of this file.

Functions

template<class T>
sqr (T val)

Variables

const unsigned short int split_flag_x = 1
const unsigned short int patch_flag_x = 2
const unsigned short int split_flag_y = 4
const unsigned short int patch_flag_y = 8
const unsigned short int vertex_side_flag_start = 16
const unsigned short int transform_fail_flag = 256
const unsigned int min_depth = 4
const unsigned int max_depth = 6
const double min_length = 14.0
const double min_angle = 0.06
const double min_length_difference = 3.0
const double offscreen_safety_margin = 10.0


Detailed Description

Author:
James Legg
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition in file VertexCoordRemapper.cpp.


Function Documentation

template<class T>
T sqr ( val  )  [inline]

Definition at line 100 of file VertexCoordRemapper.cpp.

Referenced by HuginBase::MaskPolygon::FindPointNearPos(), MaskImageCtrl::OnLeftMouseUp(), MaskImageCtrl::OnRightMouseUp(), VertexCoordRemapper::SetLengthAndAngle(), and MaskImageCtrl::UpdateCrop().


Variable Documentation

const unsigned int max_depth = 6

Definition at line 78 of file VertexCoordRemapper.cpp.

Referenced by VertexCoordRemapper::TestSubdivide().

const double min_angle = 0.06

Definition at line 86 of file VertexCoordRemapper.cpp.

Referenced by VertexCoordRemapper::TestSubdivide().

const unsigned int min_depth = 4

Definition at line 72 of file VertexCoordRemapper.cpp.

Referenced by VertexCoordRemapper::TestSubdivide().

const double min_length = 14.0

Definition at line 83 of file VertexCoordRemapper.cpp.

Referenced by VertexCoordRemapper::TestSubdivide().

const double min_length_difference = 3.0

Definition at line 91 of file VertexCoordRemapper.cpp.

Referenced by VertexCoordRemapper::TestSubdivide().

const double offscreen_safety_margin = 10.0

Definition at line 97 of file VertexCoordRemapper.cpp.

Referenced by VertexCoordRemapper::TestSubdivide().

const unsigned short int patch_flag_x = 2

Definition at line 44 of file VertexCoordRemapper.cpp.

Referenced by VertexCoordRemapper::TestSubdivide().

const unsigned short int patch_flag_y = 8

Definition at line 48 of file VertexCoordRemapper.cpp.

Referenced by VertexCoordRemapper::TestSubdivide().

const unsigned short int split_flag_x = 1

Definition at line 39 of file VertexCoordRemapper.cpp.

Referenced by VertexCoordRemapper::Tree::GetInputCoordinates(), VertexCoordRemapper::Tree::GetNext(), VertexCoordRemapper::Tree::GetTransform(), and VertexCoordRemapper::TestSubdivide().

const unsigned short int split_flag_y = 4

Definition at line 46 of file VertexCoordRemapper.cpp.

Referenced by VertexCoordRemapper::Tree::GetInputCoordinates(), VertexCoordRemapper::Tree::GetNext(), VertexCoordRemapper::Tree::GetTransform(), and VertexCoordRemapper::TestSubdivide().

const unsigned short int transform_fail_flag = 256

Definition at line 57 of file VertexCoordRemapper.cpp.

Referenced by VertexCoordRemapper::GetNextFaceCoordinates(), and VertexCoordRemapper::Tree::GetTransform().

const unsigned short int vertex_side_flag_start = 16

Definition at line 53 of file VertexCoordRemapper.cpp.

Referenced by VertexCoordRemapper::GetNextFaceCoordinates(), VertexCoordRemapper::Tree::GetTransform(), and VertexCoordRemapper::TestSubdivide().


Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7