Overture
Version 25
|
#include <MappingsFromCAD.h>
Static Public Member Functions | |
static int | getTransformationMatrix (const int &item, IgesReader &iges, RealArray &rotation, RealArray &translation) |
Protected Types | |
enum | LineTypes { general =0, horizontal, vertical } |
enum | BoundaryTypes { generalBoundary =0, simpleReparameterization, coons13LeftRight, coons13BottomTop, coons24LeftRight, coons24BottomTop, coons } |
Protected Member Functions | |
int | createCompositeCurve (const int &item, IgesReader &iges, int &maximumNumberOfSubCurves, int &numberOfSubCurves, Mapping **&mapPointer, Mapping *surf, RealArray &surfaceParameterScale, bool scaleTheCurve=true, bool expectPhysicalSpaceCurve=false) |
int | createCurveOnAParametricSurface (const int &item, IgesReader &iges, Mapping *surf, Mapping *&mapPointer, int &maximumNumberOfSubCurves, Mapping **&subCurve, RealArray &surfaceParameterScale) |
int | createIgesReader (GenericGraphicsInterface &gi, aString &fileName, IgesReader *&iges, FILE *&fp, bool useGivenFileName=FALSE) |
int | createSurface (int surface, IgesReader &iges, Mapping *&mapPointer, RealArray &surfaceParameterScale=Overture::nullRealArray()) |
int | createTrimmedSurface (const int &item, IgesReader &iges, Mapping *&mapPointer) |
int | isUntrimmedSurface (IgesReader &iges, int item) |
int | readFiniteElements (IgesReader &iges) |
int | readOneCurve (int curve, IgesReader &iges, Mapping *&mapPointer, RealArray &curveParameterScale) |
int | scaleCurve (Mapping &mapping, Mapping &surf, RealArray &surfaceParameterScale) |
int | createBoundaryEntity (const int &item, IgesReader &iges, const int &untrimmedSurfSeq, NurbsMapping *&mapPointer, RealArray &curveParameterScale) |
int | readOneCurveAsNURBS (int curve, IgesReader &iges, NurbsMapping *&mapPointer, RealArray &curveParameterScale) |
int | createBoundedSurface (int entity, IgesReader &iges, Mapping *&mapPointer) |
int | createManifoldSolidBRepObject (int entity, IgesReader &iges, MappingInformation &mapInfo, IntegerArray &mapNumber, int &numberOfMapsCreated, int &visibleItem) |
Protected Attributes | |
enum MappingsFromCAD::BoundaryTypes | boundaryType |
IgesReader * | igesPointer |
MappingInformation * | mapInfoPointer |
GraphicsParameters | params |
int * | lineType |
real * | subCurveBound [2] |
real | curveBound [2][2] |
int | revCount |
int | revCurveCount |
int | axisLineCount |
|
protected |
|
protected |
MappingsFromCAD::MappingsFromCAD | ( | ) |
References axisLineCount, igesPointer, lineType, mapInfoPointer, NULL, revCount, revCurveCount, and subCurveBound.
MappingsFromCAD::~MappingsFromCAD | ( | ) |
References lineType, NULL, and subCurveBound.
|
protected |
References c, Mapping::debug, ReferenceCounting::decrementReferenceCount(), ReferenceCounting::incrementReferenceCount(), NurbsMapping::merge(), NULL, IgesReader::readData(), readOneCurveAsNURBS(), NurbsMapping::reparameterize(), IgesReader::sequenceToItem(), and NurbsMapping::truncateToDomainBounds().
Referenced by createBoundedSurface().
|
protected |
References axis1, axis2, createBoundaryEntity(), createSurface(), Mapping::debug, ReferenceCounting::decrementReferenceCount(), IgesReader::entity(), IgesReader::entityName(), Mapping::getBoundingBox(), ReferenceCounting::getClassName(), NurbsMapping::getClassName(), Mapping::getClassName(), Mapping::getGridDimensions(), ReferenceCounting::incrementReferenceCount(), max(), min(), NULL, Mapping::parameterSpace, NurbsMapping::parametricCurve(), IgesReader::readData(), REAL_MAX, IgesReader::sequenceToItem(), Mapping::setDomainSpace(), Mapping::setGridDimensions(), and Mapping::setRangeSpace().
Referenced by createSurface().
|
protected |
References ListOfMappingRC::addElement(), assert, axis1, axis2, boundaryType, IgesReader::circularArc, coons, coons13BottomTop, coons13LeftRight, coons24BottomTop, coons24LeftRight, curveBound, Mapping::debug, End, IgesReader::entity(), IgesReader::entityName(), GenericGraphicsInterface::erase(), fabs(), FALSE, general, generalBoundary, Mapping::getArcLength(), getCPU(), ReferenceCounting::getGlobalID(), Mapping::getGridDimensions(), GI_PLOT_THE_OBJECT_AND_EXIT, GI_TOP_LABEL, MappingInformation::graphXInterface, horizontal, ReferenceCounting::incrementReferenceCount(), ip1, NurbsMapping::isSubCurveOriginal(), IgesReader::line, lineType, Mapping::map(), mapInfoPointer, MappingInformation::mappingList, Mapping::mappingName, max(), min(), NULL, NurbsMapping::numberOfSubCurvesInList(), IgesReader::parametricSplineCurve, params, Pi, PlotIt::plot(), q, r, R, IgesReader::rationalBSplineCurve, IgesReader::readData(), s, scaleCurve(), IgesReader::sequenceToItem(), GraphicsParameters::set(), Mapping::setGridDimensions(), Mapping::setName(), simpleReparameterization, sPrintF(), SQR, SQRT, Start, subCurveBound, NurbsMapping::subCurveFromList(), TRUE, vertical, viewMappings(), and x.
Referenced by createCurveOnAParametricSurface().
|
protected |
References applyMatrixTransform(), assert, axis1, axis2, IgesReader::circularArc, IgesReader::compositeCurve, IgesReader::copiusData, createCompositeCurve(), Mapping::debug, ReferenceCounting::decrementReferenceCount(), display(), End, IgesReader::entity(), IgesReader::entityName(), GenericGraphicsInterface::erase(), fabs(), IgesReader::formData(), Mapping::functionPeriodic, getCPU(), NurbsMapping::getGrid(), Mapping::getGrid(), Mapping::getIsPeriodic(), Mapping::getRangeBound(), getTransformationMatrix(), GI_TOP_LABEL, MappingInformation::graphXInterface, ia, ReferenceCounting::incrementReferenceCount(), NurbsMapping::interpolate(), Mapping::inverseMap(), Mapping::map(), mapInfoPointer, IgesReader::matrix(), max(), NurbsMapping::merge(), Mapping::notPeriodic, NULL, Mapping::parameterSpace, NurbsMapping::parametricCurve(), IgesReader::parametricSplineCurve, params, PlotIt::plot(), r, R, IgesReader::rationalBSplineCurve, IgesReader::readData(), readOneCurve(), GenericGraphicsInterface::redraw(), scaleCurve(), IgesReader::sequenceToItem(), GraphicsParameters::set(), Mapping::setDomainSpace(), Mapping::setIsPeriodic(), Mapping::setRangeSpace(), sPrintF(), Start, TRUE, and x.
Referenced by createTrimmedSurface().
|
protected |
References aString, IgesReader::fp, GenericGraphicsInterface::inputFileName(), GenericGraphicsInterface::inputString(), NULL, GenericGraphicsInterface::outputString(), IgesReader::readIgesFile(), GenericGraphicsInterface::readingFromCommandFile(), and GenericGraphicsInterface::stopReadingCommandFile().
Referenced by readMappings().
|
protected |
References ListOfMappingRC::addElement(), NurbsMapping::addSubCurve(), assert, axis1, buildParameterCurveFromSpaceCurve(), c, IgesReader::circularArc, createSurfaceForAFace(), Mapping::debug, ReferenceCounting::decrementReferenceCount(), IgesReader::entity(), IgesReader::entityName(), FALSE, GI_PLOT_THE_OBJECT_AND_EXIT, GI_TOP_LABEL, MappingInformation::graphXInterface, ReferenceCounting::incrementReferenceCount(), IgesReader::line, MappingInformation::mappingList, NurbsMapping::merge(), NULL, params, PlotIt::plot(), IgesReader::readData(), NurbsMapping::readFromIgesFile(), IgesReader::sequenceToItem(), GraphicsParameters::set(), Mapping::setGridDimensions(), sPrintF(), TRUE, and NurbsMapping::update().
Referenced by readMappings().
|
protected |
References A, Overture::abort(), assert, aString, axisLineCount, B, IgesReader::boundedSurface, C, createBoundedSurface(), createTrimmedSurface(), D, Mapping::debug, ReferenceCounting::decrementReferenceCount(), display(), IgesReader::entity(), IgesReader::entityName(), GenericGraphicsInterface::erase(), FALSE, IgesReader::formData(), NurbsMapping::generalCylinder(), Mapping::getClassName(), getCPU(), getTransformationMatrix(), GI_PLOT_THE_OBJECT_AND_EXIT, MappingInformation::graphXInterface, ReferenceCounting::incrementReferenceCount(), Mapping::map(), NurbsMapping::map(), mapInfoPointer, Mapping::mappingName, IgesReader::matrix(), NurbsMapping::matrixTransform(), NULL, IgesReader::parametricSplineSurface, params, IgesReader::plane, PlotIt::plot(), r, IgesReader::rationalBSplineSurface, IgesReader::readData(), readOneCurve(), GenericGraphicsInterface::redraw(), revCount, revCurveCount, IgesReader::sequenceToItem(), GraphicsParameters::set(), Mapping::setName(), NurbsMapping::shift(), sPrintF(), IgesReader::surfaceOfRevolution, IgesReader::tabulatedCylinder, IgesReader::trimmedSurface, TRUE, twoPi, and x.
Referenced by createBoundedSurface(), createTrimmedSurface(), readMappings(), and readSomeNurbs().
|
protected |
References assert, axis1, axis2, boundaryType, coons, coons13BottomTop, coons13LeftRight, coons24BottomTop, coons24LeftRight, createCurveOnAParametricSurface(), createSurface(), curveBound, IgesReader::curveOnAParametricSurface, Mapping::debug, ReferenceCounting::decrementReferenceCount(), End, IgesReader::entity(), IgesReader::entityName(), GenericGraphicsInterface::erase(), Mapping::functionPeriodic, Mapping::getClassName(), getCPU(), Mapping::getDomainDimension(), Mapping::getGridDimensions(), Mapping::getIsPeriodic(), GI_PLOT_THE_OBJECT_AND_EXIT, GI_TOP_LABEL, MappingInformation::graphXInterface, ReferenceCounting::incrementReferenceCount(), mapInfoPointer, max(), min(), NULL, Mapping::parameterSpace, params, PlotIt::plot(), IgesReader::readData(), GenericGraphicsInterface::redraw(), IgesReader::sequenceToItem(), GraphicsParameters::set(), Mapping::setGridDimensions(), Mapping::setRangeSpace(), simpleReparameterization, Start, and TRUE.
Referenced by createSurface().
void MappingsFromCAD::fileContents | ( | aString | fileName, |
IgesReader *& | iges_, | ||
int & | numberOfNurbs, | ||
int & | numberOfFiniteElements, | ||
int & | numberOfNodes, | ||
int & | status | ||
) |
References assert, IgesReader::boundary, IgesReader::boundedSurface, IgesReader::entity(), FALSE, IgesReader::finiteElement, IgesReader::fp, IgesReader::isIndependent(), isUntrimmedSurface(), IgesReader::isVisible(), IgesReader::node, NULL, IgesReader::numberOfEntities(), IgesReader::plane, IgesReader::readIgesFile(), IgesReader::trimmedSurface, and TRUE.
|
static |
|
protected |
References IgesReader::entity(), IgesReader::parametricSplineSurface, IgesReader::rationalBSplineSurface, IgesReader::surfaceOfRevolution, and IgesReader::tabulatedCylinder.
Referenced by fileContents(), readMappings(), and readSomeNurbs().
|
protected |
References ListOfMappingRC::addElement(), assert, ReferenceCounting::decrementReferenceCount(), IgesReader::entity(), IgesReader::finiteElement, ReferenceCounting::incrementReferenceCount(), mapInfoPointer, MappingInformation::mappingList, IgesReader::node, NULL, IgesReader::numberOfEntities(), IgesReader::parameterData(), R, IgesReader::readData(), IgesReader::readParameterData(), IgesReader::sequenceNumber(), UnstructuredMapping::setNodesAndConnectivity(), and x.
Referenced by readMappings().
int MappingsFromCAD::readMappings | ( | MappingInformation & | mapInfo, |
aString | fName = nullString , |
||
bool | chooseAll = FALSE |
||
) |
References CompositeSurface::add(), ListOfMappingRC::addElement(), GenericGraphicsInterface::appendToTheDefaultPrompt(), assert, aString, IgesReader::boundary, IgesReader::boundedSurface, GraphicsParameters::colourByGrid, createIgesReader(), createManifoldSolidBRepObject(), createSurface(), Mapping::debug, ReferenceCounting::decrementReferenceCount(), IgesReader::entity(), IgesReader::entityName(), FALSE, IgesReader::finiteElement, GenericGraphicsInterface::getColourName(), getCPU(), ListOfMappingRC::getLength(), GenericGraphicsInterface::getMenuItem(), IgesReader::getTolerance(), GenericGraphicsInterface::getValues(), GI_GRID_LINE_COLOUR_OPTION, GI_LABEL_GRIDS_AND_BOUNDARIES, GI_PLOT_SHADED_MAPPING_BOUNDARIES, GI_PLOT_THE_OBJECT_AND_EXIT, MappingInformation::graphXInterface, ReferenceCounting::incrementReferenceCount(), GenericGraphicsInterface::inputString(), IgesReader::isIndependent(), isUntrimmedSurface(), IgesReader::isVisible(), IgesReader::manifoldSolidB_RepObject, mapInfoPointer, MappingInformation::mappingList, Mapping::mappingName, max(), min(), IgesReader::node, NULL, nullString, IgesReader::numberOfEntities(), params, readFiniteElements(), GraphicsParameters::set(), CompositeSurface::setColour(), Mapping::setName(), CompositeSurface::setTolerance(), sPrintF(), sScanF(), GenericGraphicsInterface::stopReadingCommandFile(), IgesReader::surfaceOfRevolution, IgesReader::tabulatedCylinder, timeToMergeNurbs, timeToMergeNurbsAddSubCurve, timeToMergeNurbsArcLength, timeToMergeNurbsElevateDegree, timeToMergeNurbsOther, IgesReader::transformationMatrix, IgesReader::trimmedSurface, TRUE, GenericGraphicsInterface::unAppendTheDefaultPrompt(), CompositeSurface::update(), and UnstructuredMapping::update().
Referenced by createMappings().
|
protected |
References atan2(), c, NurbsMapping::circle(), IgesReader::circularArc, NurbsMapping::conic(), IgesReader::conicArc, Mapping::debug, display(), IgesReader::entity(), fabs(), IgesReader::formData(), getCPU(), getTransformationMatrix(), ReferenceCounting::incrementReferenceCount(), IgesReader::line, NurbsMapping::map(), IgesReader::matrix(), NurbsMapping::matrixTransform(), NULL, IgesReader::parametricSplineCurve, Pi, r, IgesReader::rationalBSplineCurve, IgesReader::readData(), IgesReader::sequenceToItem(), NurbsMapping::shift(), SQRT, twoPi, and x.
Referenced by createCurveOnAParametricSurface(), and createSurface().
|
protected |
References axis1, IgesReader::circularArc, Mapping::debug, IgesReader::entity(), Mapping::getGridDimensions(), ReferenceCounting::incrementReferenceCount(), IgesReader::line, NULL, IgesReader::rationalBSplineCurve, IgesReader::readData(), and NurbsMapping::readFromIgesFile().
Referenced by createBoundaryEntity().
CompositeSurface * MappingsFromCAD::readSomeNurbs | ( | MappingInformation & | mapInfo, |
IgesReader * | iges_, | ||
int | startMap, | ||
int | endMap, | ||
int | numberOfNurbs, | ||
int & | status | ||
) |
References CompositeSurface::add(), ListOfMappingRC::addElement(), assert, IgesReader::boundedSurface, c, createSurface(), Mapping::debug, ReferenceCounting::decrementReferenceCount(), depth, IgesReader::entity(), IgesReader::entityName(), FALSE, Mapping::getClassName(), GenericGraphicsInterface::getColourName(), getCPU(), ListOfMappingRC::getLength(), getTransformationMatrix(), MappingInformation::graphXInterface, ReferenceCounting::incrementReferenceCount(), IgesReader::isIndependent(), isUntrimmedSurface(), IgesReader::isVisible(), mapInfoPointer, MappingInformation::mappingList, Mapping::mappingName, IgesReader::matrix(), max(), min(), NULL, IgesReader::numberOfEntities(), IgesReader::readData(), MatrixTransform::rotate(), S, IgesReader::sequenceToItem(), CompositeSurface::setColour(), TrimmedMapping::setCurves(), Mapping::setName(), TrimmedMapping::setUnInitialized(), MatrixTransform::shift(), IgesReader::singularSubfigureInstance, TrimmedMapping::surface, IgesReader::surfaceOfRevolution, IgesReader::tabulatedCylinder, IgesReader::trimmedSurface, and TRUE.
|
protected |
References assert, Mapping::debug, FALSE, Mapping::getClassName(), NurbsMapping::getControlPoints(), RevolutionMapping::getRevolutionAngle(), NurbsMapping::parametricCurve(), NurbsMapping::scale(), NurbsMapping::shift(), and twoPi.
Referenced by createCompositeCurve(), and createCurveOnAParametricSurface().
|
protected |
Referenced by createSurface(), and MappingsFromCAD().
|
protected |
Referenced by createCompositeCurve(), and createTrimmedSurface().
|
protected |
Referenced by createCompositeCurve(), and createTrimmedSurface().
|
protected |
Referenced by MappingsFromCAD().
|
protected |
Referenced by createCompositeCurve(), MappingsFromCAD(), and ~MappingsFromCAD().
|
protected |
|
protected |
|
protected |
Referenced by createSurface(), and MappingsFromCAD().
|
protected |
Referenced by createSurface(), and MappingsFromCAD().
|
protected |
Referenced by createCompositeCurve(), MappingsFromCAD(), and ~MappingsFromCAD().