Overture
Version 25
|
#include <CompositeSurface.h>
Public Types | |
enum | DisplayListProperty { boundary =0, gridLines, shadedSurface, numberOfDLProperties } |
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 Attributes | |
IntegerArray | dList |
bool | plotGhostLines |
Public Attributes inherited from Mapping | |
int | computeMap |
int | computeMapDerivative |
int | base |
int | bound |
real | signForJacobian |
ApproximateGlobalInverse * | approximateGlobalInverse |
ExactLocalInverse * | exactLocalInverse |
DistributedInverse * | distributedInverse |
Protected Types | |
enum | TimingEnum { totalTime, timeToProject, timeToProjectInvertMapping, timeToProjectEvaluateMapping, numberOfTimings } |
Protected Member Functions | |
void | initialize () |
void | findNearbySurfaces (const int &s, realArray &r, const bool &doubleCheck, IntegerArray &consistent, IntegerArray &inconsistent) |
int | findOutwardTangent (Mapping &map, const realArray &r, const realArray &x, realArray &outwardTangent) |
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 |
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 Mapping * | makeMapping (const aString &mappingClassName) |
static MappingLinkedList & | staticMapList () |
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. |
Static Protected Attributes inherited from Mapping | |
static int | defaultNumberOfGhostPoints =0 |
static int | minimumNumberOfDistributedGhostLines =1 |
|
protected |
CompositeSurface::CompositeSurface | ( | ) |
References FALSE, Mapping::mappingName, NULL, numberOfTimings, plotGhostLines, Mapping::setName(), surfaceColour, timing, and tolerance.
Referenced by make().
CompositeSurface::CompositeSurface | ( | const CompositeSurface & | X0, |
const CopyType | copyType = DEEP |
||
) |
CompositeSurface::~CompositeSurface | ( | ) |
References surfaceColour.
int CompositeSurface::add | ( | Mapping & | surface, |
const int & | surfaceID = -1 |
||
) |
References ListOfMappingRC::addElement(), aString, boundary, dList, End, FALSE, Mapping::getClassName(), Mapping::getGrid(), Mapping::getRangeBound(), Mapping::getRangeDimension(), TrimmedMapping::getTriangulation(), Bound::isFinite(), Mapping::mappingHasChanged(), max(), min(), numberOfDLProperties, R, Mapping::rangeDimension, s, Mapping::setRangeBound(), Start, TrimmedMapping::surface, surfaceColour, surfaceIdentifier, TrimmedMapping::trimmingIsValid(), TRUE, and visible.
Referenced by MappingBuilder::build(), MappingBuilder::buildBoxGrid(), MappingBuilder::buildSurfacePatch(), rapOpenModel(), MappingsFromCAD::readMappings(), MappingsFromCAD::readSomeNurbs(), and update().
bool CompositeSurface::computeTopology | ( | GenericGraphicsInterface & | gi | ) |
void CompositeSurface::eraseCompositeSurface | ( | GenericGraphicsInterface & | gi, |
int | surface = -1 |
||
) |
References boundary, GenericGraphicsInterface::deleteList(), dList, gridLines, GenericGraphicsInterface::isGraphicsWindowOpen(), numberOfSubSurfaces(), GenericGraphicsInterface::redraw(), s, and shadedSurface.
Referenced by MappingBuilder::assignBoundaryConditions(), MappingBuilder::build(), MappingBuilder::buildBoxGrid(), MappingBuilder::buildSurfacePatch(), TrimmedMappingBuilder::buildTrimmedMapping(), and update().
int CompositeSurface::findBoundaryCurves | ( | int & | numberOfBoundaryCurves, |
Mapping **& | boundaryCurves | ||
) |
References CompositeTopology::findBoundaryCurves(), and NULL.
|
protected |
References abs(), Mapping::approximateGlobalInverse, boundingBox, Mapping::debug, End, fabs(), findOutwardTangent(), ApproximateGlobalInverse::getBoundingBox(), getNormals(), map(), Mapping::map(), max(), normal, project(), r, Mapping::rangeDimension, s, Start, TRUE, x, and xr.
|
protected |
References c, Mapping::debug, evaluate(), fabs(), TrimmedMapping::findClosestCurve(), Mapping::getClassName(), TrimmedMapping::innerCurve, TrimmedMapping::insideOrOutside(), Mapping::map(), min(), TrimmedMapping::outerCurve, r, SQR, and SQRT.
Referenced by findNearbySurfaces().
|
virtual |
Reimplemented from Mapping.
References ListOfMappingRC::addElement(), aString, boundary, ReferenceCounting::decrementReferenceCount(), dList, End, CompositeTopology::get(), GenericDataBase::get(), Mapping::get(), Mapping::getRangeBound(), Mapping::getRangeDimension(), ReferenceCounting::incrementReferenceCount(), Bound::isFinite(), GenericDataBase::locate(), Mapping::makeMapping(), max(), min(), NULL, numberOfDLProperties, REAL_MAX, SC, GenericDataBase::setMode(), Mapping::setRangeBound(), Start, GenericDataBase::streamInputMode, surfaceColour, surfaceIdentifier, tolerance, GenericDataBase::virtualConstructor(), and visible.
Referenced by createMappings(), and rapOpenModel().
|
inlinevirtual |
Reimplemented from Mapping.
Referenced by UnstructuredMapping::buildFromACompositeSurface(), CurveSegment::get(), improveTriangulation(), oldProject(), project(), CurveSegment::put(), and splitFace2().
aString CompositeSurface::getColour | ( | const int & | surfaceNumber | ) | const |
References surfaceColour.
Referenced by PlotIt::plotCompositeSurface().
CompositeTopology * CompositeSurface::getCompositeTopology | ( | bool | alloc = false | ) |
Referenced by HyperbolicMapping::buildCurve(), MappingBuilder::buildSurfacePatch(), HyperbolicMapping::correctProjectionOfInitialCurve(), HyperbolicMapping::createCurveOnSurface(), HyperbolicMapping::drawBoundariesAndCurves(), HyperbolicMapping::drawReferenceSurface(), evaluateDeviation(), main(), MappingBuilder::plot(), refineVisibleSurfaces(), HyperbolicMapping::update(), and HyperbolicMapping::updateBoundaryConditionMappings().
int CompositeSurface::getNormals | ( | const intArray & | subSurfaceIndex, |
const realArray & | xr, | ||
realArray & | normal | ||
) | const |
References l2Norm(), max(), normal, R, SQR, SQRT, and xr.
Referenced by findNearbySurfaces(), oldProject(), PlotIt::plotSubSurfaceNormals(), and project().
int & CompositeSurface::getSignForNormal | ( | int | s | ) | const |
Referenced by project(), and HyperbolicMapping::project().
|
inline |
References surfaceIdentifier.
Referenced by rapOpenModel().
real CompositeSurface::getTolerance | ( | ) | const |
References tolerance.
Referenced by CompositeTopology::initializeTopology().
|
protected |
References Mapping::getClassName(), map(), and s.
int CompositeSurface::insideOrOutside | ( | realArray & | x, |
IntegerArray & | inside | ||
) |
References CompositeTopology::getTriangulation(), UnstructuredMapping::insideOrOutside(), and NULL.
|
inline |
Referenced by evaluateDeviation(), main(), and PlotIt::plotSubSurfaceNormals().
int CompositeSurface::isVisible | ( | const int & | surfaceNumber | ) | const |
Reimplemented from Mapping.
References CompositeSurface().
|
virtual |
Reimplemented from Mapping.
Referenced by findNearbySurfaces(), initialize(), splitElement(), and splitFace().
int CompositeSurface::numberOfSubSurfaces | ( | ) | const |
Referenced by CompositeTopology::adjustEndPoints(), MappingBuilder::build(), MappingBuilder::buildBoxGrid(), HyperbolicMapping::buildCurve(), CompositeTopology::buildEdgeCurveBoundaryNodes(), CompositeTopology::buildEdgeCurves(), buildEdgeCurves(), CompositeTopology::buildEdgeCurveSearchTree(), UnstructuredMapping::buildFromACompositeSurface(), TrimmedMappingBuilder::buildTrimmedMapping(), CompositeTopology::checkConsistency(), HyperbolicMapping::correctProjectionOfInitialCurve(), HyperbolicMapping::createCurveOnSurface(), createMappings(), CompositeTopology::edgeFromNumber(), eraseCompositeSurface(), CompositeTopology::findBoundaryCurves(), CompositeTopology::get(), CompositeTopology::getAnotherEdge(), improveTriangulation(), CompositeTopology::initializeTopology(), IntersectionMapping::intersectWithCompositeSurface(), PlotIt::plotCompositeSurface(), PlotIt::plotSubSurfaceNormals(), plotSurfaceAndEdges(), CompositeTopology::printEdgeCurveInfo(), project(), HyperbolicMapping::project(), rapOpenModel(), refineSubSurface(), refineVisibleSurfaces(), CompositeTopology::setupAllEdges(), CompositeTopology::splitAndMergeEdgeCurves(), splitElement(), splitFace(), splitFace2(), CompositeTopology::triangulateCompositeSurface(), CompositeTopology::update(), update(), HyperbolicMapping::update(), and UnstructuredMapping::update().
void CompositeSurface::oldProject | ( | intArray & | subSurfaceIndex, |
realArray & | x, | ||
realArray & | rProject, | ||
realArray & | xProject, | ||
realArray & | xrProject, | ||
realArray & | normal = Overture::nullRealDistributedArray() , |
||
const intArray & | ignoreThisSubSurface = Overture::nullIntegerDistributedArray() |
||
) |
CompositeSurface & CompositeSurface::operator= | ( | const CompositeSurface & | X0 | ) |
References aString, dList, NULL, s, surfaceColour, surfaceIdentifier, tolerance, and visible.
Mapping & CompositeSurface::operator[] | ( | const int & | subSurfaceIndex | ) |
int CompositeSurface::printStatistics | ( | FILE * | file = stdout | ) |
|
virtual |
Reimplemented from Mapping.
References assert, axis1, axis2, axis3, Mapping::debug, Mapping::domainDimension, fabs(), getClassName(), MappingProjectionParameters::getIntArray(), MappingProjectionParameters::getMatchNormals(), UnstructuredMapping::getNumberOfElements(), MappingProjectionParameters::getRealArray(), getSignForNormal(), UnstructuredMapping::getTags(), CompositeTopology::getTriangulation(), Mapping::inverseMap(), Mapping::map(), max(), normal, NULL, numberOfSubSurfaces(), printF(), UnstructuredMapping::project(), MappingProjectionParameters::projectOntoReferenceSurface(), r, R, Mapping::rangeDimension, REAL_MIN, s, SQR, and SQRT.
Referenced by AdvancingFront::advanceFront(), equiGridSmoother(), evaluateDeviation(), findNearbySurfaces(), EllipticGridGenerator::projectBoundaryPoints(), and update().
void CompositeSurface::project | ( | intArray & | subSurfaceIndex, |
realArray & | x, | ||
realArray & | rProject, | ||
realArray & | xProject, | ||
realArray & | xrProject, | ||
realArray & | normal = Overture::nullRealDistributedArray() , |
||
const intArray & | ignoreThisSubSurface = Overture::nullIntegerDistributedArray() , |
||
bool | invertUntrimmedSurface = false |
||
) |
References assert, Mapping::bogus, Mapping::debug, End, Mapping::epsilon(), evaluate(), fabs(), FALSE, ReferenceCounting::getClassName(), getCPU(), getNormals(), Mapping::getRangeBound(), Mapping::inverseMapC(), isVisible(), Mapping::mapC(), MappingParameters::mask, mask, max(), min(), Overture::nullRealDistributedArray(), R, Mapping::rangeDimension, REAL_EPSILON, REAL_MAX, SQR, SQRT, Start, timeToProject, timeToProjectEvaluateMapping, timeToProjectInvertMapping, timing, totalTime, TRUE, TrimmedMapping::untrimmedSurface(), and xr.
|
virtual |
Reimplemented from Mapping.
References aString, GenericDataBase::create(), ReferenceCounting::getClassName(), getCPU(), NULL, CompositeTopology::put(), GenericDataBase::put(), Mapping::put(), GenericDataBase::setMode(), GenericDataBase::streamOutputMode, surfaceColour, surfaceIdentifier, tolerance, GenericDataBase::virtualConstructor(), and visible.
void CompositeSurface::recomputeBoundingBox | ( | ) |
References End, Bound::isFinite(), max(), min(), Mapping::rangeDimension, REAL_MAX, s, Mapping::setRangeBound(), and Start.
int CompositeSurface::refineSubSurface | ( | const int | s | ) |
Refine the grid spacing or triangulation of a sub-surface. This is.
s | (input) : sub-surface to refine |
References Mapping::domainDimension, Mapping::getClassName(), Mapping::getDomainDimension(), Mapping::getGridDimensions(), UnstructuredMapping::getNumberOfElements(), TrimmedMapping::getTriangulation(), TrimmedMapping::getTriangulationParameters(), Mapping::map(), numberOfSubSurfaces(), printF(), s, TrimmedMapping::setElementDensityToleranceForTriangulation(), Mapping::setGridDimensions(), TrimmedMapping::setMaxAreaForTriangulation(), SQR, TrimmedMapping::triangulate(), TrimmedMapping::trimmingIsValid(), and TrimmedMapping::untrimmedSurface().
Referenced by update().
int CompositeSurface::remove | ( | const int & | surfaceNumber | ) |
References boundary, ListOfMappingRC::deleteElement(), dList, Mapping::mappingHasChanged(), numberOfDLProperties, s, S, surfaceColour, surfaceIdentifier, and visible.
Referenced by MappingBuilder::build(), and MappingBuilder::buildBoxGrid().
int CompositeSurface::setColour | ( | const int & | surfaceNumber, |
const aString & | colour | ||
) |
int CompositeSurface::setIsVisible | ( | const int & | surfaceNumber, |
const bool & | trueOrFalse = TRUE |
||
) |
References visible.
Referenced by MappingBuilder::assignBoundaryConditions(), and HyperbolicMapping::update().
int CompositeSurface::setTolerance | ( | real | tol | ) |
References tolerance.
Referenced by MappingsFromCAD::readMappings().
|
virtual |
Reimplemented from Mapping.
References add(), addPrefix(), GenericGraphicsInterface::appendToTheDefaultPrompt(), assert, aString, GUIState::buildPopup(), GenericGraphicsInterface::chooseAColour(), GraphicsParameters::colourByGrid, MappingInformation::command, MappingInformation::commandOption, Mapping::debug, GraphicsParameters::defaultColour, End, GenericGraphicsInterface::erase(), eraseCompositeSurface(), fabs(), FALSE, GraphicsParameters::get(), GenericGraphicsInterface::getAnswer(), MappingRC::getClassName(), Mapping::getClassName(), GenericGraphicsInterface::getColourName(), MappingRC::getDomainDimension(), ReferenceCounting::getGlobalID(), MappingProjectionParameters::getIntArray(), ListOfMappingRC::getLength(), MappingRC::getName(), Mapping::getName(), UnstructuredMapping::getNumberOfElements(), Mapping::getRangeBound(), MappingRC::getRangeDimension(), TrimmedMapping::getTriangulation(), GI_GRID_LINE_COLOUR_OPTION, GI_LABEL_GRIDS_AND_BOUNDARIES, GI_PLOT_LABELS, GI_PLOT_LINES_ON_MAPPING_BOUNDARIES, GI_PLOT_MAPPING_EDGES, GI_PLOT_MAPPING_NORMALS, GI_PLOT_SHADED_MAPPING_BOUNDARIES, GI_PLOT_THE_OBJECT_AND_EXIT, GI_POINT_SIZE, GI_TOP_LABEL, SelectionInfo::globalID, MappingInformation::gp_, MappingInformation::graphXInterface, TrimmedMapping::hasTriangulation(), GenericGraphicsInterface::inputString(), MappingInformation::interactive, MappingInformation::interface, Mapping::inverseMap(), Mapping::map(), MappingInformation::mappingList, Mapping::mappingName, MappingRC::mapPointer, max(), min(), SelectionInfo::nSelect, NULL, numberOfSubSurfaces(), OptionMenu::optionList, GenericGraphicsInterface::outputString(), GenericGraphicsInterface::outputToCommandFile(), PlotIt::plot(), GenericGraphicsInterface::plotPoints(), GenericGraphicsInterface::popGUI(), printF(), project(), GenericGraphicsInterface::pushGUI(), q, r, SelectionInfo::r, Mapping::rangeDimension, MappingInformation::readOneCommand, REAL_MAX, REAL_MIN, refineSubSurface(), s, GenericGraphicsInterface::savePickCommands(), SC, SelectionInfo::selection, MappingInformation::selectPtr, GraphicsParameters::set(), GenericGraphicsInterface::setAxesDimension(), setColour(), OptionMenu::setCurrentChoice(), DialogData::setExitCommand(), Mapping::setName(), Mapping::setRangeBound(), PushButton::setSensitive(), DialogData::setWindowTitle(), sPrintF(), SQR, sScanF(), Start, GenericGraphicsInterface::stopReadingCommandFile(), MappingProjectionParameters::subSurfaceIndex, surfaceColour, surfaceIdentifier, DialogData::textBoxWidget, TrimmedMapping::trimmingIsValid(), TRUE, GenericGraphicsInterface::unAppendTheDefaultPrompt(), Mapping::update(), updateTopology(), visible, SelectionInfo::x, x, and xr.
Referenced by MappingsFromCAD::readMappings(), and CompositeTopology::update().
void CompositeSurface::updateTopology | ( | ) |
References CompositeTopology::getSignForNormal(), NULL, CompositeTopology::topologyDetermined(), and CompositeTopology::update().
Referenced by evaluateDeviation(), main(), and update().
IntegerArray CompositeSurface::dList |
Referenced by add(), eraseCompositeSurface(), get(), operator=(), PlotIt::plotCompositeSurface(), and remove().
bool CompositeSurface::plotGhostLines |
Referenced by CompositeSurface(), MappingBuilder::MappingBuilder(), and PlotIt::plotCompositeSurface().
|
protected |
Referenced by add(), CompositeSurface(), get(), getColour(), operator=(), put(), remove(), setColour(), update(), and ~CompositeSurface().
|
protected |
Referenced by add(), get(), getSurfaceID(), operator=(), put(), remove(), and update().
|
protected |
Referenced by CompositeSurface(), printStatistics(), and project().
|
protected |
Referenced by CompositeSurface(), get(), getTolerance(), operator=(), put(), and setTolerance().
|
protected |
Referenced by add(), get(), operator=(), put(), remove(), setIsVisible(), and update().