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

#include <TrimmedMapping.h>

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

Public Types

enum  MouseSelectMode {
  nothing =0, hideCurve, lineSegmentJoin, endpointMove,
  intersection, split, splitAtIntersection, translate,
  updateCurve, curveAssembly, numberOfMouseModes
}
 
- Public Types inherited from Mapping
enum  mappingSpace { parameterSpace, cartesianSpace }
 
enum  coordinateSystem {
  cartesian, spherical, cylindrical, polar,
  toroidal, numberOfCoordinateSystems
}
 
enum  coordinateSingularity { noCoordinateSingularity, polarSingularity }
 
enum  mappingCoordinateSystem { rectangular, conformal, orthogonal, general }
 
enum  periodicType { notPeriodic, derivativePeriodic, functionPeriodic }
 
enum  topologyEnum { topologyIsNotPeriodic =0, topologyIsPeriodic, topologyIsPartiallyPeriodic }
 
enum  mappingItemName {
  mappingName, domainName, rangeName, domainAxis1Name,
  domainAxis2Name, domainAxis3Name, rangeAxis1Name, rangeAxis2Name,
  rangeAxis3Name, numberOfMappingItemNames
}
 
enum  basicInverseOptions { canDoNothing, canDetermineOutside, canInvert, canInvertWithGoodGuess }
 
typedef ArraySimpleFixed< int, 2, 3, 1, 1 > IndexRangeType
 

Public Member Functions

bool isInitialized ()
 
void setUnInitialized ()
 
bool trimmingIsValid ()
 
int validateTrimming ()
 
void manuallyValidateTrimming ()
 
void invalidateTrimming ()
 
bool verifyTrimCurve (Mapping *curve)
 
void initializeTrimCurves ()
 
aString reportTrimCurveInfo (Mapping *curve, bool &curveok)
 
aString reportTrimmingInfo ()
 
bool addTrimCurve (Mapping *trimCurve)
 
bool deleteTrimCurve (int curveToDelete)
 
bool deleteTrimCurve (int numberOfCurvesToDelete, int *curvesToDelete)
 
bool undoLastDelete ()
 
 TrimmedMapping ()
 
 TrimmedMapping (Mapping &surface, Mapping *outerCurve=NULL, const int &numberOfInnerCurves=0, Mapping **innerCurve=NULL)
 
 TrimmedMapping (const TrimmedMapping &, const CopyType copyType=DEEP)
 
 ~TrimmedMapping ()
 
TrimmedMappingoperator= (const TrimmedMapping &X0)
 
int setCurves (Mapping &surface_, Mapping *outerCurve_=NULL, const int &numberOfInnerCurves_=0, Mapping **innerCurve_=NULL)
 
void map (const realArray &r, realArray &x, realArray &xr=Overture::nullRealDistributedArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual void mapGrid (const realArray &r, realArray &x, realArray &xr, MappingParameters &params=Overture::nullMappingParameters())
 
virtual void basicInverse (const realArray &x, realArray &r, realArray &rx=Overture::nullRealDistributedArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual const realArraygetGrid (MappingParameters &params=Overture::nullMappingParameters(), bool includeGhost=false)
 
int getNumberOfBoundarySubCurves ()
 
int getNumberOfInnerCurves ()
 
int getNumberOfBoundaryCurves ()
 
MappinggetOuterCurve ()
 
MappinggetInnerCurve (const int &curveNumber)
 
bool hasTriangulation () const
 
UnstructuredMappinggetTriangulation ()
 
virtual int get (const GenericDataBase &dir, const aString &name)
 
virtual int put (GenericDataBase &dir, const aString &name) const
 
Mappingmake (const aString &mappingClassName)
 
aString getClassName () const
 
int update (MappingInformation &mapInfo)
 
int editTrimCurve (Mapping &trimCurve, MappingInformation &mapInfo)
 
int editNurbsTrimCurve (NurbsMapping &trimCurve, MappingInformation &mapInfo)
 
MappinguntrimmedSurface () const
 
void triangulate (MappingInformation &mapInfo)
 
void triangulate ()
 
bool isAllNurbs () const
 
int setup ()
 
void initializeQuadTree (bool buildQuadTree=true)
 
int destroy ()
 
int findClosestCurve (const realArray &x, intArray &cMin, realArray &rC, realArray &xC, realArray &dist, const int &approximate=true)
 
int findDistanceToACurve (const realArray &x, IntegerArray &cMin, realArray &dist, const real &delta)
 
int insideOrOutside (const realArray &rr, const int &c)
 
int insideOrOutside (const realArray &rr, const int &c, realArray &distance)
 
bool curveGoesThrough (const TMquad &square, const int &c, int &segstart, int &segstop) const
 
bool curveGoesThrough (const TMquad &square, const int &c) const
 
void setBounds (bool assignBoundsFromTriangulation=true)
 Set the approximate bounds on the mapping, used by plotting routines etc.
 
int setMaxAreaForTriangulation (real area=.1)
 
int setMinAngleForTriangulation (real minAngle=20.)
 
int setElementDensityToleranceForTriangulation (real elementDensity=.05)
 
int getTriangulationParameters (real &area, real &minAngle, real &elementDensity) const
 
int snapCurvesToIntersection (GenericGraphicsInterface &gi, NurbsMapping &trimCurve, int &curve1, int &curve2, int curve1End, int curve2End, const real *xSelect, const real *c1click)
 
int assembleSubCurves (int &currentCurve, GenericGraphicsInterface &gi, NurbsMapping &trimCurve, NurbsMapping &newCurve, int &numberOfAssembledCurves, NurbsMapping **&assemblyCurves, MouseSelectMode &mouseMode, bool &curveRebuilt, bool &plotCurve)
 
- Public Member Functions inherited from Mapping
 Mapping (int domainDimension=3, int rangeDimension=3, mappingSpace domainSpace=parameterSpace, mappingSpace rangeSpace=cartesianSpace, coordinateSystem domainCoordinateSystem=cartesian, coordinateSystem rangeCoordinateSystem=cartesian)
 
 Mapping (const Mapping &, const CopyType copyType=DEEP)
 
Mappingoperator= (const Mapping &X)
 
virtual ~Mapping ()
 
void reference (const Mapping &map)
 
void breakReference ()
 
virtual void inverseMap (const realArray &x, realArray &r, realArray &rx=Overture::nullRealDistributedArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual void mapC (const realArray &r, const realArray &x, const realArray &xr=Overture::nullRealDistributedArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual void inverseMapC (const realArray &x, const realArray &r, const realArray &rx=Overture::nullRealDistributedArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual int intersects (Mapping &map2, const int &side1=-1, const int &axis1=-1, const int &side2=-1, const int &axis2=-1, const real &tol=0.) const
 
virtual void inverseMapGrid (const realArray &x, realArray &r, realArray &rx=Overture::nullRealDistributedArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual void mapS (const RealArray &r, RealArray &x, RealArray &xr=Overture::nullRealArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual void inverseMapS (const RealArray &x, RealArray &r, RealArray &rx=Overture::nullRealArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual void basicInverseS (const RealArray &x, RealArray &r, RealArray &rx=Overture::nullRealArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual void mapCS (const RealArray &r, const RealArray &x, const RealArray &xr=Overture::nullRealArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual void inverseMapCS (const RealArray &x, const RealArray &r, const RealArray &rx=Overture::nullRealArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual void mapGridS (const RealArray &r, RealArray &x, RealArray &xr=Overture::nullRealArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual void inverseMapGridS (const RealArray &x, RealArray &r, RealArray &rx=Overture::nullRealArray(), MappingParameters &params=Overture::nullMappingParameters())
 
virtual int projectS (RealArray &x, MappingProjectionParameters &mpParams)
 
virtual real sizeOf (FILE *file=NULL) const
 
virtual bool updateWithCommand (MappingInformation &mapInfo, const aString &command)
 
virtual int interactiveUpdate (GenericGraphicsInterface &gi)
 
virtual int project (realArray &x, MappingProjectionParameters &mpParams)
 
virtual void display (const aString &label=blankString) const
 
int checkMapping ()
 
void reinitialize ()
 
int determineResolution (int numberOfGridPoints[], bool collapsedEdge[2][3], real averageArclength[], real elementDensityTolerance=.05)
 
void secondOrderDerivative (const Index &I, const realArray &r, realArray &xrr, const int axis, const int &rAxis)
 
int findNearestGridPoint (RealArray &x, RealArray &r, RealArray &dista, RealArray &xa)
 Find the nearest grid point to each of a given set of points x(i,.)
 
real getArcLength ()
 
basicInverseOptions getBasicInverseOption () const
 
int getBoundaryCondition (const int side, const int axis) const
 
virtual RealArray getBoundingBox (const int &side=-1, const int &axis=-1) const
 
virtual int getBoundingBox (const IntegerArray &indexRange, const IntegerArray &gridIndexRange, RealArray &xBounds, bool local=false) const
 
virtual int getBoundingBox (const RealArray &rBounds, RealArray &xBounds) const
 
const BoundingBoxgetBoundingBoxTree (const int &side, const int &axis) const
 
int getCoordinateEvaluationType (const coordinateSystem type) const
 
Bound getDomainBound (const int side, const int axis) const
 
int getDomainDimension () const
 
coordinateSystem getDomainCoordinateSystem () const
 
Bound getDomainCoordinateSystemBound (const int side, const int axis) const
 
mappingSpace getDomainSpace () const
 
int getGridDimensions (const int axis) const
 
virtual const RealArraygetGridSerial (MappingParameters &params=Overture::nullMappingParameters(), bool includeGhost=false)
 
int getID () const
 
int getInvertible () const
 
periodicType getIsPeriodic (const int axis) const
 
mappingCoordinateSystem getMappingCoordinateSystem () const
 
aString getName (const mappingItemName item) const
 
int getGridIndexRange (int side, int axis)
 
int getNumberOfGhostPoints (int side, int axis)
 
real getParameter (const MappingParameters::realParameter &param) const
 
int getParameter (const MappingParameters::intParameter &param) const
 
real getPeriodVector (const int axis, const int direction) const
 
Bound getRangeBound (const int side, const int axis) const
 
coordinateSystem getRangeCoordinateSystem () const
 
Bound getRangeCoordinateSystemBound (const int side, const int axis) const
 
int getRangeDimension () const
 
mappingSpace getRangeSpace () const
 
int getShare (const int side, const int axis) const
 
real getSignForJacobian () const
 
topologyEnum getTopology (const int side, const int axis) const
 
coordinateSingularity getTypeOfCoordinateSingularity (const int side, const int axis) const
 
bool gridIsValid () const
 
int hasACoordinateSingularity () const
 
intArray & topologyMask ()
 
void setArcLength (real length)
 
virtual void setBasicInverseOption (const basicInverseOptions option)
 
virtual void setBoundaryCondition (const int side, const int axis, const int bc)
 
virtual void setCoordinateEvaluationType (const coordinateSystem type, const int trueOrFalse)
 
virtual void setDomainBound (const int side, const int axis, const Bound domainBound)
 
virtual void setDomainCoordinateSystem (const coordinateSystem domainCoordinateSystem)
 
virtual void setDomainCoordinateSystemBound (const int side, const int axis, const Bound domainCoordinateSystemBound)
 
virtual void setDomainDimension (const int domainDimension)
 
virtual void setDomainSpace (const mappingSpace domainSpace)
 
virtual void setGrid (realArray &grid, IntegerArray &gridIndexRange)
 
virtual void setGridDimensions (const int axis, const int dim)
 
virtual void setInvertible (const int invertible)
 
void setID ()
 
virtual void setIsPeriodic (const int axis, const periodicType isPeriodic)
 
virtual void setMappingCoordinateSystem (const mappingCoordinateSystem mappingCoordinateSystem0)
 
virtual void setName (const mappingItemName item, const aString &name)
 
void setGridIndexRange (int side, int axis, int num)
 
void setNumberOfGhostPoints (int side, int axis, int numGhost)
 
virtual void setParameter (const MappingParameters::realParameter &param, const real &value)
 
virtual void setParameter (const MappingParameters::intParameter &param, const int &value)
 
void setPartition (Partitioning_Type &partition)
 
virtual void setPeriodVector (const int axis, const int direction, const real periodVectorComponent)
 
virtual void setRangeBound (const int side, const int axis, const Bound rangeBound)
 
virtual void setRangeCoordinateSystem (const coordinateSystem rangeCoordinateSystem)
 
virtual void setRangeCoordinateSystemBound (const int side, const int axis, const Bound rangeCoordinateSystemBound)
 
virtual void setRangeDimension (const int rangeDimension)
 
virtual void setRangeSpace (const mappingSpace rangeSpace)
 
virtual void setShare (const int side, const int axis, const int share)
 
void setSignForJacobian (const real signForJac)
 
virtual void setTopology (const int side, const int axis, const topologyEnum topo)
 
virtual void setTypeOfCoordinateSingularity (const int side, const int axis, const coordinateSingularity)
 
bool usesDistributedInverse () const
 
bool usesDistributedMap () const
 
virtual void useRobustInverse (const bool trueOrFalse=TRUE)
 
bool usingRobustInverse () const
 Return true if the robust inverse is used.
 
virtual int outside (const realArray &x)
 
virtual int setNumberOfGhostLines (IndexRangeType &numberOfGhostLinesNew)
 
void setNumberOfDistributedGhostLines (int numGhost)
 
void periodicShift (realArray &r, const Index &I)
 
Index getIndex (const realArray &r, realArray &x, const realArray &xr, int &base, int &bound, int &computeMap, int &computeMapDerivative)
 
- Public Member Functions inherited from ReferenceCounting
 ReferenceCounting ()
 
 ReferenceCounting (const ReferenceCounting &x, const CopyType ct=DEEP)
 
virtual ~ReferenceCounting ()
 
Integer incrementReferenceCount ()
 
Integer decrementReferenceCount ()
 
Integer getReferenceCount () const
 
Logical uncountedReferencesMayExist ()
 
Integer getGlobalID () const
 
void setGlobalID (int id)
 
virtual void consistencyCheck () const
 

Public Attributes

aString className
 
Mappingsurface
 
int numberOfInnerCurves
 
MappingouterCurve
 
Mapping ** innerCurve
 
intArray projectedMask
 
TMquadRootquadTreeMesh
 
real farthestDistanceNearCurve
 
realArray distanceToBoundary
 
real rBound [3][2]
 
realArrayrCurve
 
real timeForInsideOrOutside
 
real timeForFindClosestCurve
 
real timeForCreateTrimmedSurface
 
real timeForFindDistanceToACurve
 
real timeForMapGrid
 
real timeForSeg0
 
real timeForSeg1
 
real timeForUntrimmedInverse
 
int callsOfFindClosestCurve
 
int callsOfFindClosestCurve_all
 
UnstructuredMappingtriangulation
 
real minAngleForTriangulation
 
real elementDensityTolerance
 
real maxArea
 
- Public Attributes inherited from Mapping
int computeMap
 
int computeMapDerivative
 
int base
 
int bound
 
real signForJacobian
 
ApproximateGlobalInverseapproximateGlobalInverse
 
ExactLocalInverseexactLocalInverse
 
DistributedInversedistributedInverse
 

Static Public Attributes

static real defaultFarthestDistanceNearCurve
 
static real defaultMinAngleForTriangulation =-1.
 
static real defaultElementDensityToleranceForTriangulation =.05
 
static real defaultMaximumAreaForTriangulation =0.
 
- Static Public Attributes inherited from Mapping
static int useInitialGuessForInverse =TRUE
 
static int debug =0
 
static FILE * debugFile =NULL
 
static FILE * pDebugFile =NULL
 
static const real bogus =10.
 

Protected Attributes

real smallestLengthScale
 
real dRmin
 
real dSmin
 
bool upToDate
 
bool validTrimming
 
bool allNurbs
 
realtrimmingCurveArcLength
 
- Protected Attributes inherited from Mapping
int dataBaseID
 
aString className
 
int domainDimension
 
int rangeDimension
 
int bc [2][3]
 
int share [2][3]
 
periodicType isPeriodic [3]
 
real periodVector [3][3]
 
int invertible
 
basicInverseOptions basicInverseOption
 
int periodicityOfSpace
 
coordinateSingularity typeOfCoordinateSingularity [2][3]
 
int coordinateEvaluationType [numberOfCoordinateSystems]
 
IndexRangeType gridIndexRange
 
IndexRangeType numberOfGhostPoints
 
realArray grid
 
bool inverseIsDistributed
 
bool mapIsDistributed
 
int numberOfDistributedGhostLines
 
bool partitionInitialized
 
Partitioning_Type partition
 
mappingSpace domainSpace
 
mappingSpace rangeSpace
 
coordinateSystem domainCoordinateSystem
 
coordinateSystem rangeCoordinateSystem
 
mappingCoordinateSystem mappingCoordinateSystem0
 
Bound domainBound [3][2]
 
Bound rangeBound [3][2]
 
Bound domainCoordinateSystemBound [3][2]
 
Bound rangeCoordinateSystemBound [3][2]
 
topologyEnum topology [3][2]
 
intArray * topologyMaskPointer
 
real arcLength
 
bool remakeGrid
 
bool remakeGridSerial
 

Additional Inherited Members

- Static Public Member Functions inherited from Mapping
static void openDebugFiles ()
 
static void closeDebugFiles ()
 
static real epsilon ()
 
static void setMinimumNumberOfDistributedGhostLines (int numGhost)
 
static int getGridMinAndMax (const realArray &u, const Range &R1, const Range &R2, const Range &R3, real uMin[3], real uMax[3], bool local=false)
 
static MappingmakeMapping (const aString &mappingClassName)
 
static MappingLinkedListstaticMapList ()
 
- Protected Member Functions inherited from Mapping
int buildMappingParametersDialog (DialogData &dialog)
 
int getMappingParametersOption (const aString &answer, DialogData &dialog, GenericGraphicsInterface &gi)
 : Look for a change to one of the mapping parameters.
 
int updateMappingParametersDialog (DialogData &dialog)
 
void initializePartition ()
 
int mappingHasChanged ()
 
void setGridIsValid ()
 
void setDefaultMappingBounds (const mappingSpace ms, Bound mappingBound[3][2])
 
void setDefaultCoordinateSystemBounds (const coordinateSystem cs, Bound csBound[3][2])
 
int validSide (const int side) const
 
int validAxis (const int axis) const
 
void mappingError (const aString &subName, const int side, const int axis) const
 
- Static Protected Attributes inherited from Mapping
static int defaultNumberOfGhostPoints =0
 
static int minimumNumberOfDistributedGhostLines =1
 

Member Enumeration Documentation

Enumerator
nothing 
hideCurve 
lineSegmentJoin 
endpointMove 
intersection 
split 
splitAtIntersection 
translate 
updateCurve 
curveAssembly 
numberOfMouseModes 

Constructor & Destructor Documentation

TrimmedMapping::TrimmedMapping ( )

References setup().

Referenced by make().

TrimmedMapping::TrimmedMapping ( Mapping surface,
Mapping outerCurve = NULL,
const int &  numberOfInnerCurves = 0,
Mapping **  innerCurve = NULL 
)
TrimmedMapping::TrimmedMapping ( const TrimmedMapping map,
const CopyType  copyType = DEEP 
)

References className, DEEP, and map().

TrimmedMapping::~TrimmedMapping ( )

Member Function Documentation

bool TrimmedMapping::addTrimCurve ( Mapping trimCurve)
int TrimmedMapping::assembleSubCurves ( int &  currentCurve,
GenericGraphicsInterface gi,
NurbsMapping trimCurve,
NurbsMapping newCurve,
int &  numberOfAssembledCurves,
NurbsMapping **&  assemblyCurves,
MouseSelectMode mouseMode,
bool &  curveRebuilt,
bool &  plotCurve 
)
void TrimmedMapping::basicInverse ( const realArray x,
realArray r,
realArray rx = Overture::nullRealDistributedArray(),
MappingParameters params = Overture::nullMappingParameters() 
)
virtual
bool TrimmedMapping::curveGoesThrough ( const TMquad square,
const int &  c,
int &  segstart,
int &  segstop 
) const

References c, fabs(), max(), and min().

Referenced by curveGoesThrough(), and TMquad::remake().

bool TrimmedMapping::curveGoesThrough ( const TMquad square,
const int &  c 
) const

References curveGoesThrough().

bool TrimmedMapping::deleteTrimCurve ( int  curveToDelete)

Referenced by update().

bool TrimmedMapping::deleteTrimCurve ( int  numberOfCurvesToDelete,
int *  curvesToDelete 
)
int TrimmedMapping::destroy ( )
int TrimmedMapping::editNurbsTrimCurve ( NurbsMapping trimCurve,
MappingInformation mapInfo 
)

References SelectionInfo::active, DialogData::addRadioBox(), NurbsMapping::addSubCurve(), Mapping::approximateGlobalInverse, assembleSubCurves(), assert, aString, axis1, ApproximateGlobalInverse::binarySearchOverBoundary(), c, GenericGraphicsInterface::createMessageDialog(), curveAssembly, GraphicsParameters::curveLineWidth, Mapping::debug, ReferenceCounting::decrementReferenceCount(), End, endpointMove, GenericGraphicsInterface::erase(), errorDialog, fabs(), GraphicsParameters::get(), GenericGraphicsInterface::getAnswer(), GenericGraphicsInterface::getColourName(), GenericGraphicsInterface::getCurrentWindow(), ReferenceCounting::getGlobalID(), Mapping::getGridDimensions(), GraphicsParameters::getMappingColour(), Mapping::getName(), GenericGraphicsInterface::getPlotTheAxes(), DialogData::getRadioBox(), DialogData::getTextValue(), GI_MAPPING_COLOUR, GI_PLOT_END_POINTS_ON_CURVES, GI_PLOT_GRID_POINTS_ON_CURVES, GI_PLOT_THE_OBJECT_AND_EXIT, GI_TOP_LABEL, GI_USE_PLOT_BOUNDS_OR_LARGER, MappingInformation::graphXInterface, hideCurve, ReferenceCounting::incrementReferenceCount(), GenericGraphicsInterface::initView(), GenericGraphicsInterface::inputString(), IntersectionMapping::intersectCurves(), Mapping::inverseMap(), Mapping::inverseMapS(), NurbsMapping::isSubCurveHidden(), NurbsMapping::isSubCurveOriginal(), NurbsMapping::line(), lineSegmentJoin, NurbsMapping::map(), Mapping::mappingName, NurbsMapping::mapS(), max(), NurbsMapping::merge(), NurbsMapping::moveEndpoint(), nothing, SelectionInfo::nSelect, NULL, numberOfMouseModes, NurbsMapping::numberOfSubCurves(), NurbsMapping::numberOfSubCurvesInList(), GenericGraphicsInterface::outputString(), GenericGraphicsInterface::outputToCommandFile(), PlotIt::plot(), NurbsMapping::plot(), GenericGraphicsInterface::plotPoints(), GenericGraphicsInterface::popGUI(), pow(), printF(), DialogData::pushButtonWidget, GenericGraphicsInterface::pushGUI(), q, r, SelectionInfo::r, DialogData::radioBoxWidget, REAL_MAX, NurbsMapping::reparameterize(), reportTrimCurveInfo(), s, GenericGraphicsInterface::savePickCommands(), SC, SelectionInfo::selection, GraphicsParameters::set(), RadioBox::setCurrentChoice(), DialogData::setExitCommand(), Mapping::setGridDimensions(), GenericGraphicsInterface::setPlotTheAxes(), DialogData::setPushButtons(), RadioBox::setSensitive(), DialogData::setSensitive(), DialogData::setTextBoxes(), DialogData::setToggleButtons(), DialogData::setToggleState(), DialogData::setWindowTitle(), NurbsMapping::shift(), snapCurvesToIntersection(), split, NurbsMapping::split(), splitAtIntersection, sPrintF(), SQR, sScanF(), Start, GenericGraphicsInterface::stopReadingCommandFile(), NurbsMapping::subCurve(), NurbsMapping::subCurveFromList(), NurbsMapping::toggleSubCurveVisibility(), translate, TRUE, NurbsMapping::update(), updateCurve, verifyTrimCurve(), warningDialog, SelectionInfo::x, and X.

Referenced by editTrimCurve().

int TrimmedMapping::editTrimCurve ( Mapping trimCurve,
MappingInformation mapInfo 
)
int TrimmedMapping::findClosestCurve ( const realArray x,
intArray &  cMin,
realArray rC,
realArray xC,
realArray dist,
const int &  approximate = true 
)
int TrimmedMapping::findDistanceToACurve ( const realArray x,
IntegerArray cMin,
realArray dist,
const real delta 
)
int TrimmedMapping::get ( const GenericDataBase dir,
const aString name 
)
virtual
aString TrimmedMapping::getClassName ( void  ) const
inlinevirtual
const realArray & TrimmedMapping::getGrid ( MappingParameters params = Overture::nullMappingParameters(),
bool  includeGhost = false 
)
virtual
Mapping * TrimmedMapping::getInnerCurve ( const int &  curveNumber)
int TrimmedMapping::getNumberOfBoundaryCurves ( )
int TrimmedMapping::getNumberOfBoundarySubCurves ( )

References c, and getClassName().

int TrimmedMapping::getNumberOfInnerCurves ( )
Mapping * TrimmedMapping::getOuterCurve ( )
UnstructuredMapping & TrimmedMapping::getTriangulation ( )
int TrimmedMapping::getTriangulationParameters ( real area,
real minAngle,
real elementDensity 
) const
bool TrimmedMapping::hasTriangulation ( ) const

References NULL, and triangulation.

Referenced by CompositeSurface::update().

void TrimmedMapping::initializeQuadTree ( bool  buildQuadTree = true)
void TrimmedMapping::initializeTrimCurves ( )
int TrimmedMapping::insideOrOutside ( const realArray rr,
const int &  c 
)
int TrimmedMapping::insideOrOutside ( const realArray rr,
const int &  c,
realArray distance 
)
void TrimmedMapping::invalidateTrimming ( )
inline
bool TrimmedMapping::isAllNurbs ( ) const
inline

References allNurbs.

bool TrimmedMapping::isInitialized ( )
inline

References upToDate.

Mapping * TrimmedMapping::make ( const aString mappingClassName)
virtual

Reimplemented from Mapping.

References className, and TrimmedMapping().

void TrimmedMapping::manuallyValidateTrimming ( )
inline

References validTrimming.

Referenced by update().

void TrimmedMapping::map ( const realArray r,
realArray x,
realArray xr = Overture::nullRealDistributedArray(),
MappingParameters params = Overture::nullMappingParameters() 
)
virtual
void TrimmedMapping::mapGrid ( const realArray r,
realArray x,
realArray xr,
MappingParameters params = Overture::nullMappingParameters() 
)
virtual
TrimmedMapping & TrimmedMapping::operator= ( const TrimmedMapping X0)
int TrimmedMapping::put ( GenericDataBase dir,
const aString name 
) const
virtual
aString TrimmedMapping::reportTrimCurveInfo ( Mapping curve,
bool &  curveok 
)
aString TrimmedMapping::reportTrimmingInfo ( )
void TrimmedMapping::setBounds ( bool  assignBoundsFromTriangulation = true)

Set the approximate bounds on the mapping, used by plotting routines etc.

/param assignBoundsFromTriangulation (input): if true assign the bounds from the triangulation.

References Mapping::getRangeBound(), Mapping::getRangeDimension(), getTriangulation(), Mapping::rangeDimension, Mapping::setRangeBound(), surface, and trimmingIsValid().

Referenced by initializeQuadTree(), and setCurves().

int TrimmedMapping::setCurves ( Mapping surface_,
Mapping outerCurve_ = NULL,
const int &  numberOfInnerCurves_ = 0,
Mapping **  innerCurve_ = NULL 
)
int TrimmedMapping::setElementDensityToleranceForTriangulation ( real  elementDensity = .05)
int TrimmedMapping::setMaxAreaForTriangulation ( real  area = .1)
int TrimmedMapping::setMinAngleForTriangulation ( real  minAngle = 20.)
void TrimmedMapping::setUnInitialized ( )
int TrimmedMapping::setup ( )
int TrimmedMapping::snapCurvesToIntersection ( GenericGraphicsInterface gi,
NurbsMapping trimCurve,
int &  curve1,
int &  curve2,
int  curve1End,
int  curve2End,
const real xSelect,
const real c1click 
)
void TrimmedMapping::triangulate ( MappingInformation mapInfo)
void TrimmedMapping::triangulate ( )

References assert, axis1, c, Mapping::debug, defaultElementDensityToleranceForTriangulation, defaultMaximumAreaForTriangulation, defaultMinAngleForTriangulation, delta, Mapping::determineResolution(), Mapping::display(), Mapping::domainDimension, dr, elementDensityTolerance, End, fabs(), Mapping::functionPeriodic, TriangleWrapper::generate(), TriangleWrapper::generateElementList(), Mapping::getArcLength(), Mapping::getClassName(), getCPU(), Mapping::getGrid(), Mapping::getGridDimensions(), Mapping::getIsPeriodic(), NurbsMapping::getKnots(), Mapping::getName(), TriangleWrapper::getNeighbours(), TriangleWrapper::getNumberOfBoundaryEdges(), TriangleWrapper::getNumberOfEdges(), TriangleWrapper::getParameters(), TriangleWrapper::getPoints(), Mapping::getRangeBound(), i2, ReferenceCounting::incrementReferenceCount(), TriangleWrapper::initialize(), innerCurve, invalidateTrimming(), Mapping::isPeriodic, knot, map(), Mapping::map(), NurbsMapping::map(), Mapping::mappingName, mask, max(), maxArea, min(), minAngleForTriangulation, NULL, numberOfInnerCurves, NurbsMapping::numberOfSubCurves(), r, R, ra, Mapping::rangeDimension, REAL_EPSILON, REAL_MIN, TriangleWrapperParameters::saveNeighbourList(), TriangleWrapperParameters::saveVoronoi(), scaleNodes(), TriangleWrapper::setHoles(), TriangleWrapperParameters::setMaximumArea(), TriangleWrapperParameters::setMinimumAngle(), Mapping::setName(), UnstructuredMapping::setNodesElementsAndNeighbours(), TriangleWrapperParameters::setQuietMode(), Mapping::setRangeBound(), SQR, SQRT, Start, NurbsMapping::subCurve(), surface, triangulation, and trimmingCurveArcLength.

Referenced by getTriangulation(), triangulate(), and update().

bool TrimmedMapping::trimmingIsValid ( )
inline
bool TrimmedMapping::undoLastDelete ( )
Mapping* TrimmedMapping::untrimmedSurface ( ) const
inline
int TrimmedMapping::update ( MappingInformation mapInfo)
virtual

initialize the Mapping parameters dialog box

Reimplemented from Mapping.

References TMquad::accumulateCenterPoints(), SelectionInfo::active, NurbsMapping::addSubCurve(), addTrimCurve(), assert, aString, axis1, c, callsOfFindClosestCurve, callsOfFindClosestCurve_all, MappingInformation::command, MappingInformation::commandOption, constructOuterBoundaryCurve(), GenericGraphicsInterface::createMessageDialog(), ReferenceCounting::decrementReferenceCount(), deleteTrimCurve(), Mapping::display(), GenericGraphicsInterface::displayHelp(), Mapping::domainDimension, editTrimCurve(), elementDensityTolerance, GenericGraphicsInterface::erase(), errorDialog, fabs(), FALSE, findClosestCurve(), GraphicsParameters::get(), GenericGraphicsInterface::getAnswer(), getClassName(), Mapping::getClassName(), GenericGraphicsInterface::getColourName(), getCPU(), GenericGraphicsInterface::getCurrentWindow(), GUIState::getDialogSibling(), MappingRC::getDomainDimension(), Mapping::getDomainDimension(), ReferenceCounting::getGlobalID(), Mapping::getGridDimensions(), ListOfMappingRC::getLength(), GraphicsParameters::getMappingColour(), GenericGraphicsInterface::getMenuItem(), MappingRC::getName(), Mapping::getName(), DialogData::getRadioBox(), Mapping::getRangeBound(), MappingRC::getRangeDimension(), Mapping::getRangeDimension(), GI_LABEL_GRIDS_AND_BOUNDARIES, GI_MAPPING_COLOUR, GI_PLOT_END_POINTS_ON_CURVES, GI_PLOT_GRID_POINTS_ON_CURVES, GI_PLOT_LINES_ON_MAPPING_BOUNDARIES, GI_PLOT_MAPPING_EDGES, GI_PLOT_THE_OBJECT_AND_EXIT, GI_PLOT_UNS_BOUNDARY_EDGES, GI_PLOT_UNS_EDGES, GI_TOP_LABEL, MappingInformation::graphXInterface, Mapping::gridIsValid(), ReferenceCounting::incrementReferenceCount(), informationDialog, initializeQuadTree(), GenericGraphicsInterface::initView(), MappingInformation::interactive, MappingInformation::interface, invalidateTrimming(), Mapping::inverseMap(), Mapping::inverseMapC(), GenericGraphicsInterface::isGraphicsWindowOpen(), manuallyValidateTrimming(), Mapping::mappingHasChanged(), MappingInformation::mappingList, Mapping::mappingName, MappingRC::mapPointer, maxArea, SelectionInfo::nSelect, NULL, NurbsMapping::numberOfSubCurves(), NurbsMapping::numberOfSubCurvesInList(), GenericGraphicsInterface::outputString(), GenericGraphicsInterface::outputToCommandFile(), PlotIt::plot(), GenericGraphicsInterface::plotPoints(), GenericGraphicsInterface::popGUI(), pow(), printF(), DialogData::pushButtonWidget, GenericGraphicsInterface::pushGUI(), quadTreeMesh, r, R, Mapping::rangeDimension, MappingInformation::readOneCommand, reportTrimmingInfo(), s, GenericGraphicsInterface::savePickCommands(), SelectionInfo::selection, GraphicsParameters::set(), RadioBox::setCurrentChoice(), setCurves(), Mapping::setDomainDimension(), ReferenceCounting::setGlobalID(), Mapping::setGridDimensions(), Mapping::setRangeBound(), Mapping::setRangeDimension(), RadioBox::setSensitive(), DialogData::setSensitive(), DialogData::setToggleState(), setUnInitialized(), TMquadRoot::sizeOfQuadTreeMesh, sPrintF(), sScanF(), GenericGraphicsInterface::stopReadingCommandFile(), NurbsMapping::subCurve(), NurbsMapping::subCurveFromList(), surface, timeForFindClosestCurve, timeForInsideOrOutside, timeForSeg0, timeForSeg1, timeForUntrimmedInverse, DialogData::toggleButtonWidget, triangulate(), triangulation, trimmingIsValid(), TRUE, undoLastDelete(), untrimmedSurface(), Mapping::update(), Mapping::updateWithCommand(), validateTrimming(), and SelectionInfo::x.

Referenced by TrimmedMappingBuilder::buildTrimmedMapping().

int TrimmedMapping::validateTrimming ( )
bool TrimmedMapping::verifyTrimCurve ( Mapping curve)

Member Data Documentation

bool TrimmedMapping::allNurbs
protected

Referenced by get(), isAllNurbs(), setCurves(), and setup().

int TrimmedMapping::callsOfFindClosestCurve

Referenced by findClosestCurve(), setup(), and update().

int TrimmedMapping::callsOfFindClosestCurve_all

Referenced by findClosestCurve(), setup(), and update().

aString TrimmedMapping::className
real TrimmedMapping::defaultElementDensityToleranceForTriangulation =.05
static

Referenced by createMappings(), and triangulate().

real TrimmedMapping::defaultFarthestDistanceNearCurve
static

Referenced by setCurves(), and setup().

real TrimmedMapping::defaultMaximumAreaForTriangulation =0.
static

Referenced by triangulate().

real TrimmedMapping::defaultMinAngleForTriangulation =-1.
static

Referenced by createMappings(), and triangulate().

realArray TrimmedMapping::distanceToBoundary
real TrimmedMapping::dRmin
protected
real TrimmedMapping::dSmin
protected
real TrimmedMapping::elementDensityTolerance
real TrimmedMapping::farthestDistanceNearCurve
Mapping** TrimmedMapping::innerCurve
real TrimmedMapping::maxArea
real TrimmedMapping::minAngleForTriangulation
int TrimmedMapping::numberOfInnerCurves

Referenced by triangulate().

Mapping* TrimmedMapping::outerCurve
intArray TrimmedMapping::projectedMask

Referenced by get(), getGrid(), and mapGrid().

TMquadRoot* TrimmedMapping::quadTreeMesh
real TrimmedMapping::rBound[3][2]
realArray* TrimmedMapping::rCurve
real TrimmedMapping::smallestLengthScale
protected
Mapping* TrimmedMapping::surface
real TrimmedMapping::timeForCreateTrimmedSurface

Referenced by initializeQuadTree(), and setup().

real TrimmedMapping::timeForFindClosestCurve
real TrimmedMapping::timeForFindDistanceToACurve
real TrimmedMapping::timeForInsideOrOutside
real TrimmedMapping::timeForMapGrid

Referenced by mapGrid(), and setup().

real TrimmedMapping::timeForSeg0

Referenced by basicInverse(), mapGrid(), setup(), and update().

real TrimmedMapping::timeForSeg1

Referenced by basicInverse(), mapGrid(), setup(), and update().

real TrimmedMapping::timeForUntrimmedInverse

Referenced by basicInverse(), setup(), and update().

UnstructuredMapping* TrimmedMapping::triangulation
real* TrimmedMapping::trimmingCurveArcLength
protected
bool TrimmedMapping::upToDate
protected
bool TrimmedMapping::validTrimming
protected

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