Overture
Version 25
|
#include <QuadTree.h>
Public Member Functions | |
int | totalNumberSquaresMade () const |
int | maxSquares () const |
real | minSquareWidth () const |
const real & | the_dx () const |
const real & | the_centerX () const |
const real & | the_centerY () const |
int | the_inside () const |
const TMcurves & | the_curves () const |
bool | insideSquare (const real x, const real y, const real x0, const real x1, const real y0, const real y1) const |
TMquad () | |
TMquad (TrimmedMapping &tm, const real ¢erX_, const real ¢erY_, const real dx_) | |
TMquad & | operator= (const TMquad &tmq) |
~TMquad () | |
real | distancePointToSegment (real x, real y, real x0, real y0, real u0, real v0) const |
real | distanceBetweenSegments (real x1, real y1, real u1, real v1, real x2, real y2, real u2, real v2) const |
real | distanceToCurve (int c, TrimmedMapping &tm) const |
void | divide (TrimmedMapping &tm, int &sizeOfMesh, real &minWidth) |
void | plot (GenericGraphicsInterface &gi, GraphicsParameters parameters) const |
void | accumulateCenterPoints (realArray &points, const int startID=nextID) const |
void | accumulateCenterPoints (realArray &points, realArray &inout, const int startID=nextID) const |
const TMquad * | squareItsIn (real pointX, real pointY) const |
const TMquad * | squareItsIn (real pointX, real pointY, TMquad *&parent) const |
bool | inThisSquare (real pointX, real pointY) const |
int | TMget (const GenericDataBase &dir, const aString &name, TrimmedMapping &tm, TMcurves *curves_=NULL) |
virtual int | put (GenericDataBase &dir, const aString &name) const |
void | getStatics (GenericDataBase &dir) const |
void | putStatics (GenericDataBase &dir) const |
Static Public Attributes | |
static real | dxMinNormal |
static real | dxMin2Curve |
Protected Member Functions | |
void | remake (TrimmedMapping &tm, const real ¢erX, const real ¢erY, const real &dx_, TMcurves &curves_) |
Protected Attributes | |
real | centerX |
real | centerY |
real | dx |
TMquad * | children |
int | inside |
TMcurves | curves |
Static Protected Attributes | |
static int | maxsquares |
static int | nextID |
static real | smallestSquareWidth |
TMquad::TMquad | ( | ) |
References dx, and maxsquares.
TMquad::TMquad | ( | TrimmedMapping & | tm, |
const real & | centerX_, | ||
const real & | centerY_, | ||
const real | dx_ | ||
) |
|
inline |
References children.
References assert, NULL, and points().
Referenced by TrimmedMapping::update().
real TMquad::distanceBetweenSegments | ( | real | x1, |
real | y1, | ||
real | u1, | ||
real | v1, | ||
real | x2, | ||
real | y2, | ||
real | u2, | ||
real | v2 | ||
) | const |
References assert.
References fabs(), REAL_EPSILON, s, and x.
real TMquad::distanceToCurve | ( | int | c, |
TrimmedMapping & | tm | ||
) | const |
void TMquad::divide | ( | TrimmedMapping & | tm, |
int & | sizeOfMesh, | ||
real & | minWidth | ||
) |
References assert, centerX, centerY, children, TMcurves::curveDist(), curves, TMcurves::curvestart(), TMcurves::curvestop(), dx, dxMin2Curve, dxMinNormal, TrimmedMapping::farthestDistanceNearCurve, inside, NULL, remake(), and smallestSquareWidth.
Referenced by TrimmedMapping::initializeQuadTree().
void TMquad::getStatics | ( | GenericDataBase & | dir | ) | const |
References dxMin2Curve, dxMinNormal, GenericDataBase::get(), maxsquares, nextID, and smallestSquareWidth.
Referenced by TrimmedMapping::get().
|
inline |
References dx, fabs(), and REAL_EPSILON.
Referenced by TrimmedMapping::basicInverse(), TrimmedMapping::map(), and TrimmedMapping::mapGrid().
|
inline |
References maxsquares.
Referenced by TrimmedMapping::initializeQuadTree().
|
inline |
References smallestSquareWidth.
Referenced by TrimmedMapping::initializeQuadTree().
void TMquad::plot | ( | GenericGraphicsInterface & | gi, |
GraphicsParameters | parameters | ||
) | const |
|
virtual |
Reimplemented in TMquadRoot.
References aString, centerX, centerY, children, GenericDataBase::create(), dx, NULL, GenericDataBase::put(), put(), and GenericDataBase::virtualConstructor().
Referenced by put(), and TMquadRoot::put().
void TMquad::putStatics | ( | GenericDataBase & | dir | ) | const |
References dxMin2Curve, dxMinNormal, maxsquares, nextID, GenericDataBase::put(), and smallestSquareWidth.
|
protected |
Referenced by TrimmedMapping::basicInverse(), TrimmedMapping::map(), and TrimmedMapping::mapGrid().
|
inline |
References centerX.
Referenced by TrimmedMapping::basicInverse().
|
inline |
References centerY.
Referenced by TrimmedMapping::basicInverse().
|
inline |
References curves.
Referenced by TrimmedMapping::basicInverse(), TrimmedMapping::map(), and TrimmedMapping::mapGrid().
|
inline |
References dx.
Referenced by TrimmedMapping::basicInverse().
|
inline |
References inside.
Referenced by TrimmedMapping::basicInverse(), TrimmedMapping::map(), and TrimmedMapping::mapGrid().
int TMquad::TMget | ( | const GenericDataBase & | dir, |
const aString & | name, | ||
TrimmedMapping & | tm, | ||
TMcurves * | curves_ = NULL |
||
) |
References assert, aString, centerX, centerY, children, curves, dx, GenericDataBase::find(), GenericDataBase::get(), NULL, remake(), TMget(), and GenericDataBase::virtualConstructor().
Referenced by TMget(), and TMquadRoot::TMget().
|
inline |
References maxsquares.
|
protected |
Referenced by divide(), operator=(), put(), remake(), the_centerX(), TMget(), and TMquad().
|
protected |
Referenced by divide(), operator=(), put(), remake(), the_centerY(), TMget(), and TMquad().
|
protected |
|
protected |
Referenced by divide(), operator=(), remake(), the_curves(), and TMget().
|
protected |
|
static |
Referenced by divide(), getStatics(), TrimmedMapping::initializeQuadTree(), and putStatics().
|
static |
Referenced by divide(), getStatics(), TrimmedMapping::initializeQuadTree(), and putStatics().
|
protected |
Referenced by divide(), operator=(), remake(), and the_inside().
|
staticprotected |
Referenced by getStatics(), maxSquares(), putStatics(), TMquad(), and totalNumberSquaresMade().
|
staticprotected |
Referenced by getStatics(), and putStatics().
|
staticprotected |
Referenced by divide(), getStatics(), minSquareWidth(), and putStatics().