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

This class is used to build trimmed mappings for CAD geometries from the intersection of surfaces. More...

#include <TrimmedMappingBuilder.h>

Collaboration diagram for TrimmedMappingBuilder:
Collaboration graph
[legend]

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

MappingpSurface
 
int numberOfTrimCurves
 
NurbsMapping ** trimCurve
 
NurbsMapping ** trimParametricCurve
 
NurbsMappingouterTrimCurve
 
int numberOfInnerTrimCurves
 
NurbsMapping ** innerTrimCurve
 
TrimmedMappingtrimmedMapping
 
bool plotReferenceSurface
 
bool plotTrimCurves
 
bool plotTrimmedMappings
 
bool newSurface
 
bool plotCuttingSurface
 
MappingcuttingSurface
 
GraphicsParameters parameters
 
GraphicsParameters referenceSurfaceParameters
 

Detailed Description

This class is used to build trimmed mappings for CAD geometries from the intersection of surfaces.

Constructor & Destructor Documentation

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.

Member Function Documentation

int TrimmedMappingBuilder::addCurve ( NurbsMapping curve,
NurbsMapping pCurve 
)
protected
Parameters
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.

Parameters
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().

int TrimmedMappingBuilder::constructOuterBoundaryCurves ( Mapping surface,
NurbsMapping curve,
NurbsMapping pCurve 
)
protected

Construct boundary curves on the edges of a surface.

Parameters
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().

int TrimmedMappingBuilder::deleteCurves ( )
protected

Delete all curves that have been created to be potential trim curves.

References NULL, numberOfTrimCurves, trimCurve, and trimParametricCurve.

Referenced by buildTrimmedMapping().

int TrimmedMappingBuilder::plotCurvesAndSurfaces ( MappingInformation mapInfo)
protected
int TrimmedMappingBuilder::resetTrimCurves ( )
protected

Delete the curves that have been chosen to be trim curves.

References ReferenceCounting::decrementReferenceCount(), innerTrimCurve, NULL, numberOfInnerTrimCurves, and outerTrimCurve.

Referenced by buildTrimmedMapping().

int TrimmedMappingBuilder::setOptionMenus ( MappingInformation mapInfo,
DialogData dialog,
int  createOrUpdate 
)
protected

Member Data Documentation

Mapping* TrimmedMappingBuilder::cuttingSurface
protected
NurbsMapping** TrimmedMappingBuilder::innerTrimCurve
protected
bool TrimmedMappingBuilder::newSurface
protected
int TrimmedMappingBuilder::numberOfInnerTrimCurves
protected
int TrimmedMappingBuilder::numberOfTrimCurves
protected
NurbsMapping* TrimmedMappingBuilder::outerTrimCurve
protected
GraphicsParameters TrimmedMappingBuilder::parameters
protected
bool TrimmedMappingBuilder::plotCuttingSurface
protected
bool TrimmedMappingBuilder::plotReferenceSurface
protected
bool TrimmedMappingBuilder::plotTrimCurves
protected
bool TrimmedMappingBuilder::plotTrimmedMappings
protected
Mapping* TrimmedMappingBuilder::pSurface
protected
GraphicsParameters TrimmedMappingBuilder::referenceSurfaceParameters
protected
NurbsMapping** TrimmedMappingBuilder::trimCurve
protected
TrimmedMapping* TrimmedMappingBuilder::trimmedMapping
protected
NurbsMapping** TrimmedMappingBuilder::trimParametricCurve
protected

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