Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

RWArcVector.C File Reference


Detailed Description

Implementation of class qgar::RWArcVector.

See file RWArcVector.H for the interface.

Author:
Christian Ah-Soon
Date:
July 3, 2001 16:29
Since:
Qgar 1.0

Definition in file RWArcVector.C.

Go to the source code of this file.

Namespaces

namespace  qgar

Functions

double RWARCVECTOR_squareError (Point &aCenter, vector< Point > &thePoints, int firstIdx, int lastIdx)
double RWARCVECTOR_maxDeviation (Point &aCenter, vector< Point > &thePoints, int firstIdx, int lastIdx, int dir)
QgarArcRWARCVECTOR_bestAttributes (vector< Point > &thePoints, int firstIdx, int lastIdx, double &dev, int potRadius)
int RWARCVECTOR_thirdPoint (vector< Point > &thePoints, int firstIdx, int lastIdx, Point &firstPoint, Point &lastPoint, Point &third)
int RWARCVECTOR_meanRadius (vector< Point > &thePoints, int firstIdx, int lastIdx, int threshold)
void RWARCVECTOR_arcs3 (RWArcVector *aRWvector, vector< Point > &thePoints, int firstIdx, int lastIdx, int thres)
void RWARCVECTOR_arcsInLoop (RWArcVector *aRWvector, vector< Point > &thePoints, int firstIdx, int lastIdx, int thres)
void RWARCVECTOR_arcs3 (RWArcVector *aRWvector, vector< Point > &thePoints, int firstIdx, int lastIdx, int thres)


Function Documentation

void @0::RWARCVECTOR_arcs3 RWArcVector aRWvector,
vector< Point > &  thePoints,
int  firstIdx,
int  lastIdx,
int  thres
[static]
 

Definition at line 662 of file RWArcVector.C.

References RWARCVECTOR_arcs3(), RWARCVECTOR_arcsInLoop(), RWARCVECTOR_bestAttributes(), and RWARCVECTOR_meanRadius().

void @0::RWARCVECTOR_arcs3 RWArcVector aRWvector,
vector< Point > &  thePoints,
int  firstIdx,
int  lastIdx,
int  thres
[static]
 

Referenced by qgar::RWArcVector::RWArcVector(), RWARCVECTOR_arcs3(), and RWARCVECTOR_arcsInLoop().

void @0::RWARCVECTOR_arcsInLoop RWArcVector aRWvector,
vector< Point > &  thePoints,
int  firstIdx,
int  lastIdx,
int  thres
[static]
 

Definition at line 627 of file RWArcVector.C.

References qgar::GenQgarArc< T >::center(), RWARCVECTOR_arcs3(), qgar::AbstractGenQgarPrimitive< T >::source(), and qgar::AbstractGenQgarPrimitive< T >::target().

Referenced by RWARCVECTOR_arcs3().

QgarArc* @0::RWARCVECTOR_bestAttributes vector< Point > &  thePoints,
int  firstIdx,
int  lastIdx,
double &  dev,
int  potRadius
[static]
 

double toto1 = 1 / alphaX; double toto2 = 1 / alphaY; double toto = max (toto1, toto2) + 1; Point center (xIntersection + int (alphaX * toto), yIntersection + int (alphaY * toto));

center.setXY(xIntersection - int (alphaX * toto), yIntersection - int (alphaY * toto));

power2 = int(log(maxAbs) / log(2)); power2 = int(log(maxAbs) / log(2)) + 1; if (power2 > 14) power2 = 14;

power2 = 14;

else // if large arc power2 = power2Large; // static

cout << "center " << center.x() <<" " << center.y() <<"\n"; cout << "errorMid " << errorMid << "devMid " << devMid << "it " << iteration << "\n";

cout << "\n je save inf " << saveDevInf << "mil " << saveDevMid << "sup " << saveDevSup << "it " << saveIteration << "\n";

if ((directionIter != 0) && (saveIteration == 0)) double min_error;

Definition at line 130 of file RWArcVector.C.

References qgar::Math::QG_2PI, qgar::Math::QG_PI_2, qgar::qgDist(), RWARCVECTOR_maxDeviation(), RWARCVECTOR_squareError(), qgar::GenPoint< T >::setXY(), qgar::GenPoint< T >::x(), and qgar::GenPoint< T >::y().

Referenced by RWARCVECTOR_arcs3().

double @0::RWARCVECTOR_maxDeviation Point aCenter,
vector< Point > &  thePoints,
int  firstIdx,
int  lastIdx,
int  dir
[static]
 

Definition at line 89 of file RWArcVector.C.

References qgar::qgDist().

Referenced by RWARCVECTOR_bestAttributes().

int @0::RWARCVECTOR_meanRadius vector< Point > &  thePoints,
int  firstIdx,
int  lastIdx,
int  threshold
[static]
 

Definition at line 558 of file RWArcVector.C.

References qgar::qgCircleCenter(), qgar::qgDist(), and RWARCVECTOR_thirdPoint().

Referenced by RWARCVECTOR_arcs3().

double @0::RWARCVECTOR_squareError Point aCenter,
vector< Point > &  thePoints,
int  firstIdx,
int  lastIdx
[static]
 

Definition at line 68 of file RWArcVector.C.

References qgar::qgDist().

Referenced by RWARCVECTOR_bestAttributes().

int @0::RWARCVECTOR_thirdPoint vector< Point > &  thePoints,
int  firstIdx,
int  lastIdx,
Point firstPoint,
Point lastPoint,
Point third
[static]
 

Definition at line 508 of file RWArcVector.C.

References qgar::GenPoint< T >::setXY(), qgar::GenPoint< T >::x(), and qgar::GenPoint< T >::y().

Referenced by RWARCVECTOR_meanRadius().