Overture
Version 25
|
This class is used to build trimmed mappings for CAD geometries from the intersection of surfaces. More...
#include <TrimmedMappingBuilder.h>
Public Member Functions | |
TrimmedMappingBuilder () | |
Constructor for the class is used to build trimmed mappings for CAD geometries from the intersection of surfaces. | |
~TrimmedMappingBuilder () | |
Destructor. | |
int | buildTrimmedMapping (MappingInformation &mapInfo, Mapping *surface=NULL) |
Build a trimmed mapping by intersecting mapping's. | |
Protected Member Functions | |
int | addCurve (NurbsMapping &curve, NurbsMapping &pCurve) |
int | constructOuterBoundaryCurves (Mapping &surface, NurbsMapping *curve, NurbsMapping *pCurve) |
Construct boundary curves on the edges of a surface. | |
int | deleteCurves () |
Delete all curves that have been created to be potential trim curves. | |
int | plotCurvesAndSurfaces (MappingInformation &mapInfo) |
Plot the various surfaces and curves associated with building the trimmed mapping. | |
int | resetTrimCurves () |
Delete the curves that have been chosen to be trim curves. | |
int | setOptionMenus (MappingInformation &mapInfo, DialogData &dialog, int createOrUpdate) |
Create or update the option menus that depend on the list of Mapping's. | |
Protected Attributes | |
Mapping * | pSurface |
int | numberOfTrimCurves |
NurbsMapping ** | trimCurve |
NurbsMapping ** | trimParametricCurve |
NurbsMapping * | outerTrimCurve |
int | numberOfInnerTrimCurves |
NurbsMapping ** | innerTrimCurve |
TrimmedMapping * | trimmedMapping |
bool | plotReferenceSurface |
bool | plotTrimCurves |
bool | plotTrimmedMappings |
bool | newSurface |
bool | plotCuttingSurface |
Mapping * | cuttingSurface |
GraphicsParameters | parameters |
GraphicsParameters | referenceSurfaceParameters |
This class is used to build trimmed mappings for CAD geometries from the intersection of surfaces.
TrimmedMappingBuilder::TrimmedMappingBuilder | ( | ) |
Constructor for the class is used to build trimmed mappings for CAD geometries from the intersection of surfaces.
References cuttingSurface, innerTrimCurve, newSurface, NULL, numberOfInnerTrimCurves, numberOfTrimCurves, outerTrimCurve, plotCuttingSurface, plotReferenceSurface, plotTrimCurves, plotTrimmedMappings, pSurface, trimCurve, trimmedMapping, and trimParametricCurve.
TrimmedMappingBuilder::~TrimmedMappingBuilder | ( | ) |
Destructor.
|
protected |
curve | : curve in physical space |
iCurve | : curve in parameter space |
References ReferenceCounting::incrementReferenceCount(), NULL, numberOfTrimCurves, trimCurve, and trimParametricCurve.
Referenced by buildTrimmedMapping().
int TrimmedMappingBuilder::buildTrimmedMapping | ( | MappingInformation & | mapInfo, |
Mapping * | surface = NULL |
||
) |
Build a trimmed mapping by intersecting mapping's.
mapInfo | (input/output) : on input holds lists of Mapping's that we can use. On output holds the additional trimmed mappings that were constructed. |
surface | (input/output) : if provided, this is a pointer to the Mapping to trim. |
NOTE: this could be a static function in MappingBuilder
References SelectionInfo::active, addCurve(), ListOfMappingRC::addElement(), DialogData::addInfoLabel(), DialogData::addRadioBox(), NurbsMapping::addSubCurve(), GenericGraphicsInterface::appendToTheDefaultPrompt(), assert, aString, GenericGraphicsInterface::buildCascadingMenu(), GUIState::buildPopup(), constructOuterBoundaryCurves(), IntersectionMapping::curve, cuttingSurface, ReferenceCounting::decrementReferenceCount(), deleteCurves(), ListOfMappingRC::deleteElement(), GenericGraphicsInterface::erase(), CompositeSurface::eraseCompositeSurface(), Mapping::functionPeriodic, GenericGraphicsInterface::getAnswer(), Mapping::getClassName(), GenericGraphicsInterface::getColourName(), MappingRC::getDomainDimension(), Mapping::getDomainDimension(), ReferenceCounting::getGlobalID(), Mapping::getIsPeriodic(), ListOfMappingRC::getLength(), GenericGraphicsInterface::getMenuItem(), MappingRC::getName(), Mapping::getName(), DialogData::getRadioBox(), MappingRC::getRangeDimension(), Mapping::getRangeDimension(), GenericGraphicsInterface::getSaveCommandFile(), DialogData::getToggleValue(), 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, ReferenceCounting::incrementReferenceCount(), GenericGraphicsInterface::indexInCascadingMenu(), innerTrimCurve, IntersectionMapping::intersect(), MappingInformation::mappingList, Mapping::mappingName, newSurface, SelectionInfo::nSelect, NULL, numberOfInnerTrimCurves, NurbsMapping::numberOfSubCurves(), CompositeSurface::numberOfSubSurfaces(), numberOfTrimCurves, outerTrimCurve, GenericGraphicsInterface::outputString(), GenericGraphicsInterface::outputToCommandFile(), parameters, plotCurvesAndSurfaces(), plotCuttingSurface, plotReferenceSurface, plotTrimCurves, plotTrimmedMappings, GenericGraphicsInterface::popGUI(), printF(), pSurface, GenericGraphicsInterface::pushGUI(), rab, IntersectionMapping::rCurve1, referenceSurfaceParameters, resetTrimCurves(), ReparameterizationTransform::restriction, s, GenericGraphicsInterface::savePickCommands(), SelectionInfo::selection, GraphicsParameters::set(), ReparameterizationTransform::setBounds(), CompositeSurface::setColour(), RadioBox::setCurrentChoice(), DialogData::setExitCommand(), Mapping::setName(), setOptionMenus(), DialogData::setPushButtons(), DialogData::setTextBoxes(), DialogData::setToggleButtons(), DialogData::setToggleState(), DialogData::setWindowTitle(), sPrintF(), sScanF(), GenericGraphicsInterface::stopReadingCommandFile(), trimCurve, trimmedMapping, trimParametricCurve, GenericGraphicsInterface::unAppendTheDefaultPrompt(), ReferenceCounting::uncountedReferencesMayExist(), ReparameterizationTransform::update(), TrimmedMapping::update(), Mapping::update(), and NurbsMapping::update().
Referenced by createMappings().
|
protected |
Construct boundary curves on the edges of a surface.
surface | (input) : surface in 3D. |
curve | (output) : edge curves in physical space |
pCurve | (output) : edge curves in parameter space |
References axis1, ReferenceCounting::decrementReferenceCount(), dr, ReferenceCounting::incrementReferenceCount(), NurbsMapping::interpolate(), Mapping::mapS(), NurbsMapping::merge(), r, Mapping::setGridDimensions(), NurbsMapping::specify(), and x.
Referenced by buildTrimmedMapping().
|
protected |
Delete all curves that have been created to be potential trim curves.
References NULL, numberOfTrimCurves, trimCurve, and trimParametricCurve.
Referenced by buildTrimmedMapping().
|
protected |
Plot the various surfaces and curves associated with building the trimmed mapping.
References assert, aString, GraphicsParameters::curveLineWidth, cuttingSurface, GenericGraphicsInterface::erase(), GraphicsParameters::get(), Mapping::getClassName(), GenericGraphicsInterface::getColourName(), ListOfMappingRC::getLength(), Mapping::getRangeDimension(), GI_MAPPING_COLOUR, GI_PLOT_GRID_POINTS_ON_CURVES, GI_PLOT_THE_OBJECT_AND_EXIT, MappingInformation::graphXInterface, MappingInformation::mappingList, NULL, GenericGraphicsInterface::numberOfColourNames, numberOfTrimCurves, parameters, PlotIt::plot(), plotCuttingSurface, plotReferenceSurface, plotTrimCurves, plotTrimmedMappings, pSurface, referenceSurfaceParameters, GraphicsParameters::set(), GenericGraphicsInterface::setAxesDimension(), and trimCurve.
Referenced by buildTrimmedMapping().
|
protected |
Delete the curves that have been chosen to be trim curves.
References ReferenceCounting::decrementReferenceCount(), innerTrimCurve, NULL, numberOfInnerTrimCurves, and outerTrimCurve.
Referenced by buildTrimmedMapping().
|
protected |
Create or update the option menus that depend on the list of Mapping's.
createOrUpdate | (input) : 0=create, 1=update |
References DialogData::addOptionMenu(), aString, DialogData::changeOptionMenu(), MappingRC::getDomainDimension(), ListOfMappingRC::getLength(), MappingRC::getMapping(), MappingRC::getName(), MappingRC::getRangeDimension(), MappingInformation::mappingList, Mapping::mappingName, max(), pSurface, and DialogData::setOptionMenuColumns().
Referenced by buildTrimmedMapping().
|
protected |
Referenced by buildTrimmedMapping(), plotCurvesAndSurfaces(), and TrimmedMappingBuilder().
|
protected |
Referenced by buildTrimmedMapping(), resetTrimCurves(), and TrimmedMappingBuilder().
|
protected |
Referenced by buildTrimmedMapping(), and TrimmedMappingBuilder().
|
protected |
Referenced by buildTrimmedMapping(), resetTrimCurves(), and TrimmedMappingBuilder().
|
protected |
Referenced by addCurve(), buildTrimmedMapping(), deleteCurves(), plotCurvesAndSurfaces(), and TrimmedMappingBuilder().
|
protected |
Referenced by buildTrimmedMapping(), resetTrimCurves(), and TrimmedMappingBuilder().
|
protected |
Referenced by buildTrimmedMapping(), and plotCurvesAndSurfaces().
|
protected |
Referenced by buildTrimmedMapping(), plotCurvesAndSurfaces(), and TrimmedMappingBuilder().
|
protected |
Referenced by buildTrimmedMapping(), plotCurvesAndSurfaces(), and TrimmedMappingBuilder().
|
protected |
Referenced by buildTrimmedMapping(), plotCurvesAndSurfaces(), and TrimmedMappingBuilder().
|
protected |
Referenced by buildTrimmedMapping(), plotCurvesAndSurfaces(), and TrimmedMappingBuilder().
|
protected |
Referenced by buildTrimmedMapping(), plotCurvesAndSurfaces(), setOptionMenus(), and TrimmedMappingBuilder().
|
protected |
Referenced by buildTrimmedMapping(), and plotCurvesAndSurfaces().
|
protected |
Referenced by addCurve(), buildTrimmedMapping(), deleteCurves(), plotCurvesAndSurfaces(), and TrimmedMappingBuilder().
|
protected |
Referenced by buildTrimmedMapping(), and TrimmedMappingBuilder().
|
protected |
Referenced by addCurve(), buildTrimmedMapping(), deleteCurves(), and TrimmedMappingBuilder().