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

#include <Inverse.h>

Collaboration diagram for ApproximateGlobalInverse:
Collaboration graph
[legend]

Public Member Functions

void intersectLine (const RealArray &x, int &nI, RealArray &xI, const RealArray &vector, const RealArray &xOrigin, const RealArray &xTangent)
 
void intersectPlane (const RealArray &x, int &nI, RealArray &xI, const RealArray &vector, const RealArray &xOrigin, const RealArray &xTangent)
 
void intersectCube (const RealArray &x, int &nI, RealArray &xI, const RealArray &vector, const RealArray &xOrigin, const RealArray &xTangent)
 
void initializeBoundingBoxTrees ()
 
void binarySearchOverBoundary (real x[3], real &minimumDistance, int iv[3], int side=-1, int axis=-1)
 
int insideGrid (int side, int axis, real x[], int iv[], real &dot)
 
int distanceToCell (real x[], int iv[], real &signedDistance, const real minimumDistance)
 
void findNearestGridPoint (const int base, const int bound, RealArray &x, RealArray &r)
 
int findNearestCell (real x[3], int iv[3], real &minimumDistance)
 
void initializeStencilWalk ()
 
void countCrossingsWithPolygon (const RealArray &x, IntegerArray &crossings, const int &side=Start, const int &axis=axis1, RealArray &xCross=Overture::nullRealArray(), const IntegerArray &mask=Overture::nullIntArray(), const unsigned int &maskBit=UINT_MAX, const int &maskRatio1=1, const int &maskRatio2=1, const int &maskRatio3=1)
 
 ApproximateGlobalInverse (Mapping &map)
 
virtual ~ApproximateGlobalInverse ()
 
virtual void inverse (const RealArray &x, RealArray &r, RealArray &rx, MappingWorkSpace &workSpace, MappingParameters &params)
 
void initialize ()
 
void reinitialize ()
 
const RealArraygetGrid () const
 
const RealArraygetBoundingBox () const
 
const BoundingBoxgetBoundingBoxTree (int side, int axis) const
 
real getParameter (const MappingParameters::realParameter &param) const
 
int getParameter (const MappingParameters::intParameter &param) const
 
virtual void setParameter (const MappingParameters::realParameter &param, const real &value)
 
virtual void setParameter (const MappingParameters::intParameter &param, const int &value)
 
virtual void useRobustInverse (const bool trueOrFalse=TRUE)
 
virtual bool usingRobustInverse () const
 
virtual real sizeOf (FILE *file=NULL) const
 
virtual int get (const GenericDataBase &dir, const aString &name)
 
virtual int put (GenericDataBase &dir, const aString &name) const
 

Static Public Member Functions

static void printStatistics ()
 

Static Public Attributes

static const real bogus =10.
 
static real timeForApproximateInverse =0.
 
static real timeForFindNearestGridPoint =0.
 
static real timeForBinarySearchOverBoundary =0.
 
static real timeForBinarySearchOnLeaves =0.
 
static int numberOfStencilWalks =0
 
static int numberOfStencilSearches =0
 
static int numberOfBinarySearches =0
 
static int numberOfBoxesChecked =0
 
static int numberOfBoundingBoxes =0
 
static int numberOfStencilDir2D [9]
 
static int stencilDir2D1 [8 *3 *3]
 
static int stencilDir2D2 [8 *3 *3]
 
static int stencilDir2D3 [8 *3 *3]
 
static int numberOfStencilDir3D [27]
 
static int stencilDir3D1 [27 *3 *3 *3]
 
static int stencilDir3D2 [27 *3 *3 *3]
 
static int stencilDir3D3 [27 *3 *3 *3]
 

Protected Member Functions

void constructGrid ()
 
void getPeriodicImages (const RealArray &x, RealArray &xI, int &nI, const int &periodicityOfSpace, const RealArray &periodicityVector)
 

Protected Attributes

Mappingmap
 
int domainDimension
 
int rangeDimension
 
int uninitialized
 
bool useRobustApproximateInverse
 
int gridDefined
 
RealArraygrid
 
IntegerArray dimension
 
IntegerArray indexRange
 
int base
 
int bound
 
int base0
 
int bound0
 
RealArray boundingBox
 
BoundingBox boundingBoxTree [2][3]
 
BoundingBoxserialBoundingBox
 
real boundingBoxExtensionFactor
 
real stencilWalkBoundingBoxExtensionFactor
 
bool findBestGuess
 
RealArray xOrigin
 
RealArray xTangent
 
Index Axes
 
Index xAxes
 

Friends

class Mapping
 
class IntersectionMapping
 

Constructor & Destructor Documentation

ApproximateGlobalInverse::ApproximateGlobalInverse ( Mapping map)
ApproximateGlobalInverse::~ApproximateGlobalInverse ( )
virtual

References serialBoundingBox.

Member Function Documentation

void ApproximateGlobalInverse::binarySearchOverBoundary ( real  x[3],
real minimumDistance,
int  iv[3],
int  side = -1,
int  axis = -1 
)
void ApproximateGlobalInverse::constructGrid ( )
protected
void ApproximateGlobalInverse::countCrossingsWithPolygon ( const RealArray x,
IntegerArray crossings,
const int &  side = Start,
const int &  axis = axis1,
RealArray xCross = Overture::nullRealArray(),
const IntegerArray mask = Overture::nullIntArray(),
const unsigned int &  maskBit = UINT_MAX,
const int &  maskRatio1 = 1,
const int &  maskRatio2 = 1,
const int &  maskRatio3 = 1 
)
int ApproximateGlobalInverse::distanceToCell ( real  x[],
int  iv[],
real signedDistance,
const real  minimumDistance 
)
int ApproximateGlobalInverse::findNearestCell ( real  x[3],
int  iv[3],
real minimumDistance 
)
void ApproximateGlobalInverse::findNearestGridPoint ( const int  base,
const int  bound,
RealArray x,
RealArray r 
)
int ApproximateGlobalInverse::get ( const GenericDataBase dir,
const aString name 
)
virtual
const RealArray & ApproximateGlobalInverse::getBoundingBox ( ) const
const BoundingBox & ApproximateGlobalInverse::getBoundingBoxTree ( int  side,
int  axis 
) const
const RealArray & ApproximateGlobalInverse::getGrid ( ) const
real ApproximateGlobalInverse::getParameter ( const MappingParameters::realParameter param) const
int ApproximateGlobalInverse::getParameter ( const MappingParameters::intParameter param) const
void ApproximateGlobalInverse::getPeriodicImages ( const RealArray x,
RealArray xI,
int &  nI,
const int &  periodicityOfSpace,
const RealArray periodicityVector 
)
protected
void ApproximateGlobalInverse::initialize ( )
void ApproximateGlobalInverse::initializeBoundingBoxTrees ( )
void ApproximateGlobalInverse::initializeStencilWalk ( )
int ApproximateGlobalInverse::insideGrid ( int  side,
int  axis,
real  x[],
int  iv[],
real dot 
)
void ApproximateGlobalInverse::intersectCube ( const RealArray x,
int &  nI,
RealArray xI,
const RealArray vector,
const RealArray xOrigin,
const RealArray xTangent 
)
void ApproximateGlobalInverse::intersectLine ( const RealArray x,
int &  nI,
RealArray xI,
const RealArray vector,
const RealArray xOrigin,
const RealArray xTangent 
)
void ApproximateGlobalInverse::intersectPlane ( const RealArray x,
int &  nI,
RealArray xI,
const RealArray vector,
const RealArray xOrigin,
const RealArray xTangent 
)
void ApproximateGlobalInverse::inverse ( const RealArray x,
RealArray r,
RealArray rx,
MappingWorkSpace workSpace,
MappingParameters params 
)
virtual
void ApproximateGlobalInverse::printStatistics ( )
static
int ApproximateGlobalInverse::put ( GenericDataBase dir,
const aString name 
) const
virtual
void ApproximateGlobalInverse::reinitialize ( )
void ApproximateGlobalInverse::setParameter ( const MappingParameters::realParameter param,
const real value 
)
virtual
void ApproximateGlobalInverse::setParameter ( const MappingParameters::intParameter param,
const int &  value 
)
virtual
real ApproximateGlobalInverse::sizeOf ( FILE *  file = NULL) const
virtual
void ApproximateGlobalInverse::useRobustInverse ( const bool  trueOrFalse = TRUE)
virtual
bool ApproximateGlobalInverse::usingRobustInverse ( ) const
virtual

Friends And Related Function Documentation

friend class IntersectionMapping
friend
friend class Mapping
friend

Member Data Documentation

Index ApproximateGlobalInverse::Axes
protected
int ApproximateGlobalInverse::base
protected

Referenced by inverse().

int ApproximateGlobalInverse::base0
protected

Referenced by inverse().

const real ApproximateGlobalInverse::bogus =10.
static
int ApproximateGlobalInverse::bound
protected

Referenced by inverse().

int ApproximateGlobalInverse::bound0
protected

Referenced by inverse().

RealArray ApproximateGlobalInverse::boundingBox
protected
real ApproximateGlobalInverse::boundingBoxExtensionFactor
protected
BoundingBox ApproximateGlobalInverse::boundingBoxTree[2][3]
protected
IntegerArray ApproximateGlobalInverse::dimension
protected

Referenced by constructGrid().

int ApproximateGlobalInverse::domainDimension
protected
bool ApproximateGlobalInverse::findBestGuess
protected
RealArray& ApproximateGlobalInverse::grid
protected
int ApproximateGlobalInverse::gridDefined
protected
IntegerArray ApproximateGlobalInverse::indexRange
protected
Mapping* ApproximateGlobalInverse::map
protected
int ApproximateGlobalInverse::numberOfBinarySearches =0
static
int ApproximateGlobalInverse::numberOfBoundingBoxes =0
static
int ApproximateGlobalInverse::numberOfBoxesChecked =0
static
int ApproximateGlobalInverse::numberOfStencilDir2D
static
int ApproximateGlobalInverse::numberOfStencilDir3D
static
int ApproximateGlobalInverse::numberOfStencilSearches =0
static
int ApproximateGlobalInverse::numberOfStencilWalks =0
static
int ApproximateGlobalInverse::rangeDimension
protected
BoundingBox* ApproximateGlobalInverse::serialBoundingBox
protected
int ApproximateGlobalInverse::stencilDir2D1
static
int ApproximateGlobalInverse::stencilDir2D2
static
int ApproximateGlobalInverse::stencilDir2D3
static
int ApproximateGlobalInverse::stencilDir3D1
static
int ApproximateGlobalInverse::stencilDir3D2
static
int ApproximateGlobalInverse::stencilDir3D3
static
real ApproximateGlobalInverse::stencilWalkBoundingBoxExtensionFactor
protected
real ApproximateGlobalInverse::timeForApproximateInverse =0.
static

Referenced by inverse(), and printStatistics().

real ApproximateGlobalInverse::timeForBinarySearchOnLeaves =0.
static
real ApproximateGlobalInverse::timeForBinarySearchOverBoundary =0.
static
real ApproximateGlobalInverse::timeForFindNearestGridPoint =0.
static
int ApproximateGlobalInverse::uninitialized
protected
bool ApproximateGlobalInverse::useRobustApproximateInverse
protected
Index ApproximateGlobalInverse::xAxes
protected
RealArray ApproximateGlobalInverse::xOrigin
protected

Referenced by getPeriodicImages(), and initialize().

RealArray ApproximateGlobalInverse::xTangent
protected

Referenced by getPeriodicImages(), and initialize().


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