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

#include <MappingBuilder.h>

Collaboration diagram for MappingBuilder:
Collaboration graph
[legend]

Public Types

enum  bcPlotOptionEnum { colourBoundariesByGridNumber, colourBoundariesByBCNumber, colourBoundariesByShareNumber }
 

Public Member Functions

 MappingBuilder ()
 
 ~MappingBuilder ()
 
int build (MappingInformation &mapInfo, Mapping *surface=NULL)
 

Protected Member Functions

int assignBoundaryConditions (MappingInformation &mapInfo)
 
int buildBoxGrid (MappingInformation &mapInfo)
 
int buildCurveOnSurface (MappingInformation &mapInfo)
 
int buildSurfacePatch (MappingInformation &mapInfo)
 
int getBoundaryCurves ()
 
int plot (MappingInformation &mapInfo)
 

Protected Attributes

bool plotReferenceSurface
 
bool choosePlotBoundsFromReferenceSurface
 
bool plotSurfaceGrids
 
bool plotVolumeGrids
 
bool plotBoundaryConditionMappings
 
bool plotBoundaryCurves
 
bool plotNonPhysicalBoundaries
 
bool plotEdgeCurves
 
bool plotGhostPoints
 
int numberOfGhostLinesToPlot
 
bool plotBlockBoundaries
 
bool plotGridLines
 
int numberOfSurfaceGrids
 
int numberOfVolumeGrids
 
int numberOfBoxGrids
 
int numberOfBoundaryCurves
 
bcPlotOptionEnum bcPlotOption
 
real targetGridSpacing [2]
 
int numberOfExtraBoundaryCurves
 
int maxNumberOfExtraBoundaryCurves
 
Mapping ** extraBoundaryCurve
 
Mapping ** boundaryCurves
 
CompositeSurface surfaceGrids
 
CompositeSurface volumeGrids
 
MappingpSurface
 
GraphicsParameters parameters
 
GraphicsParameters referenceSurfaceParameters
 

Member Enumeration Documentation

Enumerator
colourBoundariesByGridNumber 
colourBoundariesByBCNumber 
colourBoundariesByShareNumber 

Constructor & Destructor Documentation

MappingBuilder::MappingBuilder ( )
MappingBuilder::~MappingBuilder ( )

Member Function Documentation

int MappingBuilder::assignBoundaryConditions ( MappingInformation mapInfo)
protected

References DialogData::addRadioBox(), GenericGraphicsInterface::appendToTheDefaultPrompt(), assert, aString, bcPlotOption, colourBoundariesByBCNumber, colourBoundariesByGridNumber, colourBoundariesByShareNumber, GraphicsParameters::colourByBoundaryCondition, GraphicsParameters::colourByGrid, GraphicsParameters::colourByShare, GenericGraphicsInterface::drawColouredSquares(), GenericGraphicsInterface::erase(), CompositeSurface::eraseCompositeSurface(), fabs(), GenericGraphicsInterface::getAnswer(), GraphicsParameters::getBoundaryColourOption(), Mapping::getBoundaryCondition(), Mapping::getDomainDimension(), ReferenceCounting::getGlobalID(), DialogData::getRadioBox(), Mapping::getShare(), GI_PLOT_NON_PHYSICAL_BOUNDARIES, GI_PLOT_SHADED_MAPPING_BOUNDARIES, MappingInformation::graphXInterface, ApproximateGlobalInverse::grid, Mapping::inverseMap(), SelectionInfo::nSelect, NULL, numberOfVolumeGrids, GenericGraphicsInterface::outputString(), GenericGraphicsInterface::outputToCommandFile(), parameters, PlotIt::plot(), plotNonPhysicalBoundaries, GenericGraphicsInterface::popGUI(), GenericGraphicsInterface::pushGUI(), r, REAL_MAX, GenericGraphicsInterface::savePickCommands(), SelectionInfo::selection, GraphicsParameters::set(), Mapping::setBoundaryCondition(), RadioBox::setCurrentChoice(), DialogData::setExitCommand(), CompositeSurface::setIsVisible(), DialogData::setPushButtons(), Mapping::setShare(), DialogData::setTextBoxes(), DialogData::setTextLabel(), DialogData::setToggleButtons(), DialogData::setToggleState(), DialogData::setWindowTitle(), share, sPrintF(), sScanF(), GenericGraphicsInterface::stopReadingCommandFile(), TRUE, GenericGraphicsInterface::unAppendTheDefaultPrompt(), volumeGrids, SelectionInfo::x, x, and SelectionInfo::zbMin.

Referenced by build().

int MappingBuilder::build ( MappingInformation mapInfo,
Mapping surface = NULL 
)

addPrefix(label,prefix,cmd,maxCommands);

addPrefix(label,prefix,cmd,maxCommands);

References CompositeSurface::add(), HyperbolicMapping::addBoundaryCurves(), ListOfMappingRC::addElement(), DialogData::addInfoLabel(), DialogData::addOptionMenu(), DialogData::addRadioBox(), GenericGraphicsInterface::appendToTheDefaultPrompt(), assert, assignBoundaryConditions(), aString, axis1, bcPlotOption, boundaryCurves, buildBoxGrid(), GenericGraphicsInterface::buildCascadingMenu(), buildCurveOnSurface(), GUIState::buildPopup(), buildSurfacePatch(), choosePlotBoundsFromReferenceSurface, DialogData::closeDialog(), colourBoundariesByBCNumber, colourBoundariesByGridNumber, colourBoundariesByShareNumber, GraphicsParameters::colourByBoundaryCondition, GraphicsParameters::colourByGrid, GraphicsParameters::colourByShare, ReferenceCounting::decrementReferenceCount(), ListOfMappingRC::deleteElement(), HyperbolicMapping::distanceFromLinesAndSpacing, HyperbolicMapping::distanceToMarch, GenericGraphicsInterface::erase(), CompositeSurface::eraseCompositeSurface(), HyperbolicMapping::estimateMarchingParameters(), extraBoundaryCurve, FALSE, Mapping::functionPeriodic, HyperbolicMapping::generateNew(), GenericGraphicsInterface::getAnswer(), GraphicsParameters::getBoundaryColourOption(), ReferenceCounting::getClassName(), Mapping::getClassName(), GenericGraphicsInterface::getColourName(), MappingRC::getDomainDimension(), Mapping::getDomainDimension(), Mapping::getGridDimensions(), Mapping::getIsPeriodic(), ListOfMappingRC::getLength(), MappingRC::getMapping(), GenericGraphicsInterface::getMenuItem(), MappingRC::getName(), Mapping::getName(), DialogData::getRadioBox(), MappingRC::getRangeDimension(), Mapping::getRangeDimension(), DialogData::getTextValue(), GI_PLOT_LINES_ON_MAPPING_BOUNDARIES, GI_PLOT_SHADED_MAPPING_BOUNDARIES, GI_PLOT_THE_OBJECT_AND_EXIT, GI_PLOT_UNS_EDGES, GI_PLOT_UNS_FACES, MappingInformation::graphXInterface, ApproximateGlobalInverse::grid, HyperbolicMapping::growInTheReverseDirection, ReferenceCounting::incrementReferenceCount(), GenericGraphicsInterface::indexInCascadingMenu(), HyperbolicMapping::linesInTheNormalDirection, ApproximateGlobalInverse::map, MappingInformation::mappingList, Mapping::mappingName, HyperbolicMapping::matchToABoundaryCurve, max(), maxNumberOfExtraBoundaryCurves, HDF_DataBase::mount(), SelectionInfo::nSelect, NULL, numberOfBoundaryCurves, numberOfBoxGrids, numberOfExtraBoundaryCurves, numberOfGhostLinesToPlot, CompositeSurface::numberOfSubSurfaces(), numberOfSurfaceGrids, numberOfVolumeGrids, DialogData::openDialog(), GenericGraphicsInterface::outputString(), HyperbolicMapping::outwardSplay, parameters, HyperbolicMapping::periodic, plot(), plotBlockBoundaries, plotBoundaryConditionMappings, plotBoundaryCurves, plotGhostPoints, plotGridLines, plotNonPhysicalBoundaries, plotReferenceSurface, plotSurfaceGrids, plotVolumeGrids, GenericGraphicsInterface::popGUI(), printF(), HyperbolicMapping::projectGhostBoundaries, pSurface, GenericGraphicsInterface::pushGUI(), MappingRC::put(), Mapping::put(), ra, referenceSurfaceParameters, CompositeSurface::remove(), s, SelectionInfo::selection, GraphicsParameters::set(), HyperbolicMapping::setBoundaryCurves(), CompositeSurface::setColour(), RadioBox::setCurrentChoice(), DialogData::setExitCommand(), DialogData::setInfoLabel(), Mapping::setName(), DialogData::setOptionMenuColumns(), HyperbolicMapping::setParameters(), HyperbolicMapping::setPlotBoundsFromGlobalBounds, HyperbolicMapping::setPlotOption(), DialogData::setPushButtons(), HyperbolicMapping::setStartingCurve(), HyperbolicMapping::setSurface(), DialogData::setTextBoxes(), DialogData::setTextLabel(), DialogData::setToggleButtons(), DialogData::setToggleState(), DialogData::setWindowTitle(), sPrintF(), sScanF(), GenericGraphicsInterface::stopReadingCommandFile(), targetGridSpacing, HyperbolicMapping::THEboundaryConditions, HyperbolicMapping::THEinitialGridSpacing, HyperbolicMapping::THEspacingOption, HyperbolicMapping::THEtargetGridSpacing, TRUE, GenericGraphicsInterface::unAppendTheDefaultPrompt(), ReferenceCounting::uncountedReferencesMayExist(), HDF_DataBase::unmount(), Mapping::update(), and volumeGrids.

Referenced by createMappings().

int MappingBuilder::buildBoxGrid ( MappingInformation mapInfo)
protected

References CompositeSurface::add(), ListOfMappingRC::addElement(), DialogData::addRadioBox(), GenericGraphicsInterface::appendToTheDefaultPrompt(), assert, aString, ApproximateGlobalInverse::boundingBox, ReferenceCounting::decrementReferenceCount(), End, CompositeSurface::eraseCompositeSurface(), fabs(), GenericGraphicsInterface::getAnswer(), GenericGraphicsInterface::getColourName(), GUIState::getDialogSibling(), Mapping::getDomainDimension(), ReferenceCounting::getGlobalID(), Mapping::getGrid(), Mapping::getGridDimensions(), Mapping::getName(), DialogData::getRadioBox(), Mapping::getRangeBound(), Mapping::getRangeDimension(), SelectionInfo::globalID, MappingInformation::graphXInterface, ApproximateGlobalInverse::grid, GridStretcher::gridWasChanged, ReferenceCounting::incrementReferenceCount(), Mapping::inverseMap(), Bound::isFinite(), Mapping::map(), MappingInformation::mappingList, Mapping::mappingName, SelectionInfo::nSelect, NULL, numberOfBoxGrids, CompositeSurface::numberOfSubSurfaces(), numberOfVolumeGrids, GenericGraphicsInterface::outputToCommandFile(), plot(), plotVolumeGrids, GenericGraphicsInterface::popGUI(), Mapping::project(), pSurface, GenericGraphicsInterface::pushGUI(), r, REAL_MAX, CompositeSurface::remove(), GenericGraphicsInterface::savePickCommands(), CompositeSurface::setColour(), RadioBox::setCurrentChoice(), DialogData::setExitCommand(), Mapping::setGridDimensions(), StretchTransform::setMapping(), Mapping::setName(), DialogData::setPushButtons(), DialogData::setTextBoxes(), DialogData::setTextLabel(), DialogData::setToggleButtons(), DialogData::setToggleState(), BoxMapping::setVertices(), DialogData::setWindowTitle(), share, sPrintF(), sScanF(), Start, GenericGraphicsInterface::stopReadingCommandFile(), targetGridSpacing, GenericGraphicsInterface::unAppendTheDefaultPrompt(), BoxMapping::update(), volumeGrids, SelectionInfo::x, and x.

Referenced by build().

int MappingBuilder::buildCurveOnSurface ( MappingInformation mapInfo)
protected
int MappingBuilder::buildSurfacePatch ( MappingInformation mapInfo)
protected

References CompositeSurface::add(), DialogData::addRadioBox(), GenericGraphicsInterface::appendToTheDefaultPrompt(), assert, aString, boundaryCurves, GridStretcher::buildDialog(), GridSmoother::buildDialog(), c, GraphicsParameters::curveLineWidth, ReferenceCounting::decrementReferenceCount(), display(), ApproximateGlobalInverse::domainDimension, dr, CompositeSurface::eraseCompositeSurface(), extraBoundaryCurve, GraphicsParameters::get(), GenericGraphicsInterface::getAnswer(), Mapping::getArcLength(), getBoundaryCurves(), Mapping::getClassName(), CompositeSurface::getCompositeTopology(), GUIState::getDialogSibling(), Mapping::getDomainDimension(), CompositeTopology::getEdgeCurve(), ReferenceCounting::getGlobalID(), Mapping::getGrid(), Mapping::getGridDimensions(), getIndex(), MappingProjectionParameters::getIntArray(), Mapping::getIsPeriodic(), CompositeTopology::getNumberOfEdgeCurves(), NurbsMapping::getParameterBounds(), DialogData::getRadioBox(), GI_MAPPING_COLOUR, GI_NUMBER_OF_GHOST_LINES_TO_PLOT, GI_PLOT_MAPPING_EDGES, MappingInformation::graphXInterface, gridIndexRange, GridStretcher::gridWasChanged, DialogData::hideSibling(), i2, ReferenceCounting::incrementReferenceCount(), GenericGraphicsInterface::inputString(), Mapping::inverseMap(), Mapping::mapGrid(), Mapping::mappingName, max(), SelectionInfo::nSelect, NULL, numberOfBoundaryCurves, numberOfExtraBoundaryCurves, GenericGraphicsInterface::outputString(), GenericGraphicsInterface::outputToCommandFile(), parameters, plot(), PlotIt::plot(), plotBoundaryCurves, plotEdgeCurves, plotGhostPoints, plotReferenceSurface, plotSurfaceGrids, plotVolumeGrids, GridSmoother::pointsFixed, GenericGraphicsInterface::popGUI(), Mapping::project(), pSurface, GenericGraphicsInterface::pushGUI(), r, R, ra, ApproximateGlobalInverse::rangeDimension, referenceSurfaceParameters, GenericGraphicsInterface::savePickCommands(), SelectionInfo::selection, GraphicsParameters::set(), GridSmoother::setBoundaryConditions(), GridSmoother::setBoundaryMappings(), RadioBox::setCurrentChoice(), DataPointMapping::setDataPoints(), NurbsMapping::setDomainInterval(), DialogData::setExitCommand(), Mapping::setGridDimensions(), MappingProjectionParameters::setIsAMarchingAlgorithm(), Mapping::setIsPeriodic(), Mapping::setName(), DialogData::setPushButtons(), DialogData::setTextBoxes(), DialogData::setTextLabel(), DialogData::setToggleButtons(), DialogData::setToggleState(), DialogData::setWindowTitle(), DialogData::showSibling(), GridSmoother::smooth(), sPrintF(), SQR, sScanF(), GenericGraphicsInterface::stopReadingCommandFile(), targetGridSpacing, GenericGraphicsInterface::unAppendTheDefaultPrompt(), GridStretcher::update(), GridSmoother::updateOptions(), and x.

Referenced by build().

int MappingBuilder::getBoundaryCurves ( )
protected
int MappingBuilder::plot ( MappingInformation mapInfo)
protected

Member Data Documentation

bcPlotOptionEnum MappingBuilder::bcPlotOption
protected

Referenced by assignBoundaryConditions(), and build().

Mapping** MappingBuilder::boundaryCurves
protected
bool MappingBuilder::choosePlotBoundsFromReferenceSurface
protected

Referenced by build().

Mapping** MappingBuilder::extraBoundaryCurve
protected
int MappingBuilder::maxNumberOfExtraBoundaryCurves
protected
int MappingBuilder::numberOfBoundaryCurves
protected
int MappingBuilder::numberOfBoxGrids
protected

Referenced by build(), and buildBoxGrid().

int MappingBuilder::numberOfExtraBoundaryCurves
protected
int MappingBuilder::numberOfGhostLinesToPlot
protected

Referenced by build(), and plot().

int MappingBuilder::numberOfSurfaceGrids
protected

Referenced by build().

int MappingBuilder::numberOfVolumeGrids
protected
GraphicsParameters MappingBuilder::parameters
protected
bool MappingBuilder::plotBlockBoundaries
protected

Referenced by build(), and plot().

bool MappingBuilder::plotBoundaryConditionMappings
protected

Referenced by build().

bool MappingBuilder::plotBoundaryCurves
protected

Referenced by build(), buildSurfacePatch(), and plot().

bool MappingBuilder::plotEdgeCurves
protected
bool MappingBuilder::plotGhostPoints
protected

Referenced by build(), buildSurfacePatch(), and plot().

bool MappingBuilder::plotGridLines
protected

Referenced by build(), and plot().

bool MappingBuilder::plotNonPhysicalBoundaries
protected
bool MappingBuilder::plotReferenceSurface
protected

Referenced by build(), buildSurfacePatch(), and plot().

bool MappingBuilder::plotSurfaceGrids
protected

Referenced by build(), buildSurfacePatch(), and plot().

bool MappingBuilder::plotVolumeGrids
protected
Mapping* MappingBuilder::pSurface
protected
GraphicsParameters MappingBuilder::referenceSurfaceParameters
protected

Referenced by build(), buildSurfacePatch(), and plot().

CompositeSurface MappingBuilder::surfaceGrids
protected

Referenced by MappingBuilder().

real MappingBuilder::targetGridSpacing[2]
protected
CompositeSurface MappingBuilder::volumeGrids
protected

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