Overture  Version 25
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
TMquad Class Reference

#include <QuadTree.h>

Inheritance diagram for TMquad:
Inheritance graph
[legend]
Collaboration diagram for TMquad:
Collaboration graph
[legend]

Public Member Functions

int totalNumberSquaresMade () const
 
int maxSquares () const
 
real minSquareWidth () const
 
const realthe_dx () const
 
const realthe_centerX () const
 
const realthe_centerY () const
 
int the_inside () const
 
const TMcurvesthe_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 &centerX_, const real &centerY_, const real dx_)
 
TMquadoperator= (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 TMquadsquareItsIn (real pointX, real pointY) const
 
const TMquadsquareItsIn (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 &centerX, const real &centerY, const real &dx_, TMcurves &curves_)
 

Protected Attributes

real centerX
 
real centerY
 
real dx
 
TMquadchildren
 
int inside
 
TMcurves curves
 

Static Protected Attributes

static int maxsquares
 
static int nextID
 
static real smallestSquareWidth
 

Constructor & Destructor Documentation

TMquad::TMquad ( )

References dx, and maxsquares.

TMquad::TMquad ( TrimmedMapping tm,
const real centerX_,
const real centerY_,
const real  dx_ 
)

References centerX, centerY, dx, dx, maxsquares, and remake().

TMquad::~TMquad ( )
inline

References children.

Member Function Documentation

void TMquad::accumulateCenterPoints ( realArray points,
const int  startID = nextID 
) const

References assert, NULL, and points().

Referenced by TrimmedMapping::update().

void TMquad::accumulateCenterPoints ( realArray points,
realArray inout,
const int  startID = nextID 
) const

References assert, NULL, and points().

real TMquad::distanceBetweenSegments ( real  x1,
real  y1,
real  u1,
real  v1,
real  x2,
real  y2,
real  u2,
real  v2 
) const

References assert.

real TMquad::distancePointToSegment ( real  x,
real  y,
real  x0,
real  y0,
real  u0,
real  v0 
) const

References fabs(), REAL_EPSILON, s, and x.

real TMquad::distanceToCurve ( int  c,
TrimmedMapping tm 
) const

References assert, c, dx, max(), and min().

Referenced by remake().

void TMquad::divide ( TrimmedMapping tm,
int &  sizeOfMesh,
real minWidth 
)
void TMquad::getStatics ( GenericDataBase dir) const
bool TMquad::insideSquare ( const real  x,
const real  y,
const real  x0,
const real  x1,
const real  y0,
const real  y1 
) const
inline
bool TMquad::inThisSquare ( real  pointX,
real  pointY 
) const
int TMquad::maxSquares ( ) const
inline
real TMquad::minSquareWidth ( ) const
inline
TMquad& TMquad::operator= ( const TMquad tmq)
inline

References centerX, centerY, children, curves, dx, inside, and NULL.

Referenced by TMquadRoot::operator=().

void TMquad::plot ( GenericGraphicsInterface gi,
GraphicsParameters  parameters 
) const
int TMquad::put ( GenericDataBase dir,
const aString name 
) const
virtual
void TMquad::putStatics ( GenericDataBase dir) const
void TMquad::remake ( TrimmedMapping tm,
const real centerX,
const real centerY,
const real dx_,
TMcurves curves_ 
)
protected
const TMquad * TMquad::squareItsIn ( real  pointX,
real  pointY 
) const
const TMquad * TMquad::squareItsIn ( real  pointX,
real  pointY,
TMquad *&  parent 
) const

References assert, and NULL.

const real& TMquad::the_centerX ( ) const
inline

References centerX.

Referenced by TrimmedMapping::basicInverse().

const real& TMquad::the_centerY ( ) const
inline

References centerY.

Referenced by TrimmedMapping::basicInverse().

const TMcurves& TMquad::the_curves ( ) const
inline
const real& TMquad::the_dx ( ) const
inline

References dx.

Referenced by TrimmedMapping::basicInverse().

int TMquad::the_inside ( ) const
inline
int TMquad::TMget ( const GenericDataBase dir,
const aString name,
TrimmedMapping tm,
TMcurves curves_ = NULL 
)
int TMquad::totalNumberSquaresMade ( ) const
inline

References maxsquares.

Member Data Documentation

real TMquad::centerX
protected
real TMquad::centerY
protected
TMquad* TMquad::children
protected
TMcurves TMquad::curves
protected
real TMquad::dx
protected
real TMquad::dxMin2Curve
static
real TMquad::dxMinNormal
static
int TMquad::inside
protected

Referenced by divide(), operator=(), remake(), and the_inside().

int TMquad::maxsquares
staticprotected
int TMquad::nextID
staticprotected

Referenced by getStatics(), and putStatics().

real TMquad::smallestSquareWidth
staticprotected

The documentation for this class was generated from the following files: