#include "GEOM_Engine.hxx"#include "GEOM_Solver.hxx"#include "GEOM_Function.hxx"#include "GEOM_ISubShape.hxx"#include "GEOM_SubShapeDriver.hxx"#include "GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient.hxx"#include "GEOM_PythonDump.hxx"#include "utilities.h"#include <Basics_Utils.hxx>#include <TDF_Tool.hxx>#include <TDF_Data.hxx>#include <TDF_Reference.hxx>#include <TDF_LabelSequence.hxx>#include <TDataStd_Integer.hxx>#include <TDataStd_ChildNodeIterator.hxx>#include <TFunction_Driver.hxx>#include <TFunction_DriverTable.hxx>#include <TDataStd_HArray1OfByte.hxx>#include <TDataStd_ByteArray.hxx>#include <TDataStd_UAttribute.hxx>#include <TDF_ChildIterator.hxx>#include <TDataStd_Comment.hxx>#include <TopExp.hxx>#include <TopTools_IndexedMapOfShape.hxx>#include <TCollection_AsciiString.hxx>#include <TCollection_ExtendedString.hxx>#include <TColStd_SequenceOfAsciiString.hxx>#include <TColStd_MapOfTransient.hxx>#include <TColStd_HSequenceOfInteger.hxx>#include <Interface_DataMapIteratorOfDataMapOfIntegerTransient.hxx>#include <Resource_DataMapIteratorOfDataMapOfAsciiStringAsciiString.hxx>#include <set>#include <Standard_Failure.hxx>#include <Standard_ErrorHandler.hxx>
Defines | |
| #define | COMMA ',' |
| #define | O_BRACKET '(' |
| #define | C_BRACKET ')' |
| #define | O_SQR_BRACKET '[' |
| #define | C_SQR_BRACKET ']' |
| #define | PY_NULL "None" |
| #define | TEXTURE_LABEL_ID 1 |
| #define | TEXTURE_LABEL_FILE 2 |
| #define | TEXTURE_LABEL_WIDTH 3 |
| #define | TEXTURE_LABEL_HEIGHT 4 |
| #define | TEXTURE_LABEL_DATA 5 |
Typedefs | |
| typedef std::map < TCollection_AsciiString, TCollection_AsciiString > | TSting2StringMap |
| typedef std::map < TCollection_AsciiString, TObjectData > | TSting2ObjDataMap |
| typedef std::map < TCollection_AsciiString, TObjectData * > | TSting2ObjDataPtrMap |
Functions | |
| static TCollection_AsciiString | BuildIDFromObject (Handle(GEOM_Object)&theObject) |
| static TCollection_AsciiString | BuildID (Standard_Integer theDocID, char *theEntry) |
| static Standard_Integer | ExtractDocID (TCollection_AsciiString &theID) |
| bool | ProcessFunction (Handle(GEOM_Function)&theFunction, TCollection_AsciiString &theScript, TCollection_AsciiString &theAfterScript, const TVariablesList &theVariables, const bool theIsPublished, TDF_LabelMap &theProcessed, std::set< TCollection_AsciiString > &theIgnoreObjs, bool &theIsDumpCollected) |
| void | ReplaceVariables (TCollection_AsciiString &theCommand, const TVariablesList &theVariables) |
| Handle (TColStd_HSequenceOfInteger) FindEntries(TCollection_AsciiString &theString) | |
| Find IDs of subshapes complying with given status about surface. | |
| void | ReplaceEntriesByNames (TCollection_AsciiString &theScript, TSting2ObjDataMap &aEntry2ObjData, const bool theIsPublished, TColStd_SequenceOfAsciiString &theObjListToPublish, Standard_Integer &objectCounter, Resource_DataMapOfAsciiStringAsciiString &aNameToEntry) |
| void | AddObjectColors (int theDocID, TCollection_AsciiString &theScript, const TSting2ObjDataMap &theEntry2ObjData) |
| void | AddTextures (int theDocID, TCollection_AsciiString &theScript) |
| void | PublishObject (TObjectData &theObjectData, TSting2ObjDataMap &theEntry2ObjData, const TSting2ObjDataPtrMap &theStEntry2ObjDataPtr, Resource_DataMapOfAsciiStringAsciiString &theNameToEntry, std::map< int, TCollection_AsciiString > &theEntryToCmdMap, std::set< TCollection_AsciiString > &theMapOfPublished) |
| Handle (TDocStd_Document) GEOM_Engine | |
| Handle (GEOM_Object) GEOM_Engine | |
| Handle (TColStd_HSequenceOfAsciiString) GEOM_Engine | |
| Handle (TDataStd_HArray1OfByte) GEOM_Engine | |
| static TCollection_AsciiString | pack_data (const Handle(TDataStd_HArray1OfByte)&aData) |
Variables | |
| static int | MYDEBUG = 0 |
| static GEOM_Engine * | TheEngine = NULL |
| #define COMMA ',' |
| #define O_BRACKET '(' |
| #define C_BRACKET ')' |
| #define O_SQR_BRACKET '[' |
| #define C_SQR_BRACKET ']' |
| #define PY_NULL "None" |
| #define TEXTURE_LABEL_ID 1 |
| #define TEXTURE_LABEL_FILE 2 |
| #define TEXTURE_LABEL_WIDTH 3 |
| #define TEXTURE_LABEL_HEIGHT 4 |
| #define TEXTURE_LABEL_DATA 5 |
| typedef std::map< TCollection_AsciiString, TCollection_AsciiString > TSting2StringMap |
| typedef std::map< TCollection_AsciiString, TObjectData > TSting2ObjDataMap |
| typedef std::map< TCollection_AsciiString, TObjectData* > TSting2ObjDataPtrMap |
| static TCollection_AsciiString BuildIDFromObject | ( | Handle(GEOM_Object)& | theObject | ) | [static] |
References GEOM_Object.GetDocID(), and GEOM_Object.GetEntry().
| static TCollection_AsciiString BuildID | ( | Standard_Integer | theDocID, |
| char * | theEntry | ||
| ) | [static] |
| static Standard_Integer ExtractDocID | ( | TCollection_AsciiString & | theID | ) | [static] |
| bool ProcessFunction | ( | Handle(GEOM_Function)& | theFunction, |
| TCollection_AsciiString & | theScript, | ||
| TCollection_AsciiString & | theAfterScript, | ||
| const TVariablesList & | theVariables, | ||
| const bool | theIsPublished, | ||
| TDF_LabelMap & | theProcessed, | ||
| std::set< TCollection_AsciiString > & | theIgnoreObjs, | ||
| bool & | theIsDumpCollected | ||
| ) |
ProcessFunction: Dump fucntion description into script
References GEOM_Function.GetDependency(), GEOM_Function.GetDescription(), GEOM_Function.GetEntry(), GEOM_Function.GetOwnerEntry(), Handle(), and ReplaceVariables().
| void ReplaceVariables | ( | TCollection_AsciiString & | theCommand, |
| const TVariablesList & | theVariables | ||
| ) |
ReplaceVariables: Replace parameters of the function by variales from Notebook if need
References C_BRACKET, C_SQR_BRACKET, COMMA, ObjectStates.GetCurrectState(), ObjectStates.IncrementState(), MYDEBUG, O_BRACKET, O_SQR_BRACKET, and PY_NULL.
| Handle | ( | TColStd_HSequenceOfInteger | ) |
Find IDs of subshapes complying with given status about quadrangle.
Find subshapes complying with given status about surface.
FindEntries: Returns a sequence of start/end positions of entries in the string
GetFreeFacesIDs
| theBox | - the box to check state of subshapes against |
| theShape | - the shape to explore |
| theShapeType | - type of subshape of theShape |
| theState | - required state |
| Handle(TColStd_HSequenceOfInteger) | - IDs of found subshapes |
| theCheckShape | - the shape to check state of subshapes against |
| theShape | - the shape to explore |
| theShapeType | - type of subshape of theShape |
| theState | - required state |
| Handle(TColStd_HSequenceOfInteger) | - IDs of found subshapes |
| theSurface | - the surface to check state of subshapes against |
| theShape | - the shape to explore |
| theShapeType | - type of subshape of theShape |
| theState | - required state |
| Handle(TColStd_HSequenceOfInteger) | - IDs of found subshapes |
GetShapesOnPlaneIDs
GetShapesOnPlaneWithLocationIDs
GetShapesOnCylinderIDs
GetShapesOnCylinderWithLocationIDs
GetShapesOnSphereIDs
| theShape | - the shape to explore |
| theShapeType | - type of subshape of theShape |
| theTopLeftPoint | - top left quadrangle corner |
| theTopRigthPoint | - top right quadrangle corner |
| theBottomLeftPoint | - bottom left quadrangle corner |
| theBottomRigthPoint | - bottom right quadrangle corner |
| theState | - required state |
| Handle(TColStd_HSequenceOfInteger) | - IDs of found subshapes |
References Handle().
| void ReplaceEntriesByNames | ( | TCollection_AsciiString & | theScript, |
| TSting2ObjDataMap & | aEntry2ObjData, | ||
| const bool | theIsPublished, | ||
| TColStd_SequenceOfAsciiString & | theObjListToPublish, | ||
| Standard_Integer & | objectCounter, | ||
| Resource_DataMapOfAsciiStringAsciiString & | aNameToEntry | ||
| ) |
ReplaceEntriesByNames: Replace object entries by their names
References TObjectData._name, TObjectData._pyName, and Handle().
| void AddObjectColors | ( | int | theDocID, |
| TCollection_AsciiString & | theScript, | ||
| const TSting2ObjDataMap & | theEntry2ObjData | ||
| ) |
AddObjectColors: Add color to objects
References GEOM_Object.Color.B, GEOM_Object.Color.G, GEOM_Engine.GetEngine(), Handle(), and GEOM_Object.Color.R.
| void AddTextures | ( | int | theDocID, |
| TCollection_AsciiString & | theScript | ||
| ) |
References GEOM_Engine.getAllTextures(), GEOM_Engine.GetEngine(), Handle(), and pack_data().
| void PublishObject | ( | TObjectData & | theObjectData, |
| TSting2ObjDataMap & | theEntry2ObjData, | ||
| const TSting2ObjDataPtrMap & | theStEntry2ObjDataPtr, | ||
| Resource_DataMapOfAsciiStringAsciiString & | theNameToEntry, | ||
| std::map< int, TCollection_AsciiString > & | theEntryToCmdMap, | ||
| std::set< TCollection_AsciiString > & | theIgnoreMap | ||
| ) |
PublishObject: publish object in study script
References TObjectData._entry, TObjectData._name, TObjectData._pyName, and TObjectData._studyEntry.
| Handle | ( | TDocStd_Document | ) |
GetDocument
References Handle().
| Handle | ( | GEOM_Object | ) |
GetObject
AddObject
AddSubShape
GetReferencedObject
MakeBoxTwoPnt
MakeFaceHW
MakeFaceObjHW
MakeDiskPntVecR
MakeDiskThreePnt
MakeDiskR
MakeCylinderRH
MakeCylinderPntVecRH
MakeConeR1R2H
MakeConePntVecR1R2H
MakeSphereR
MakeSpherePntR
MakeTorusRR
MakeTorusPntVecRR
MakePrismVecH
MakePrismVecH2Ways
MakePrismTwoPnt
MakePrismTwoPnt2Ways
MakePrismDXDYDZ
MakePrismDXDYDZ_2WAYS
MakePipe
MakeRevolutionAxisAngle
MakeRevolutionAxisAngle2Ways
MakeFilling
MakeThruSections
MakePipeWithDifferentSections
MakePipeWithShellSections
MakePipeShellsWithoutPath
MakePipeBiNormalAlongVector
MakePointWithReference
makePointOnGeom
MakePointOnCurve
MakePointOnCurveByCoord
MakePointOnCurveByLength
MakePointOnSurface
MakePointOnSurfaceByCoord
MakePointOnLinesIntersection
MakeTangentOnCurve
MakeVectorDXDYDZ
MakeVectorTwoPnt
MakeLine
MakeLineTwoPnt
MakeLineTwoFaces
MakePlaneThreePnt
MakePlanePntVec
MakePlaneFace
MakePlane2Vec
MakePlaneLCS
MakeMarker
MakeMarkerFromShape
MakeMarkerPntTwoVec
MakeTangentPlaneOnFace
MakeQuad2Edges
MakeQuad4Vertices
MakeHexa
MakeHexa2Faces
MakeBlockCompound
GetPoint
GetVertexNearPoint
GetEdge
GetEdgeNearPoint
GetFaceByPoints
GetFaceByEdges
GetOppositeFace
GetFaceNearPoint
GetFaceByNormale
GetShapesNearPoint
RemoveExtraEdges
CheckAndImprove
GetBlockNearPoint
GetBlockByParts
MakeMultiTransformation1D
MakeMultiTransformation2D
MakePartition
MakeHalfPartition
MakeCircleCenter2Pnt
MakeCirclePntVecR
MakeEllipse
MakeArc
MakeArcCenter
MakeArcOfEllipse
MakePolyline
MakeSplineBezier
MakeSplineInterpolation
MakeCurveParametric
MakeSketcher
Make3DSketcher
MakeSketcherOnPlane
GetMainShape
SuppressFaces
CloseContour
RemoveIntWires
FillHoles
Sew
DivideEdge
ChangeOrientation
ChangeOrientationCopy
LimitTolerance
Import
MakeFilletEdges
MakeFilletEdges R1 R2
MakeFilletFaces
MakeFilletFaces R1 R2
MakeFillet2D
MakeFillet1D
MakeChamferAll
MakeChamferEdge
MakeChamferEdgeAD
MakeChamferFaces
MakeChamferFacesAD
MakeChamferEdges
MakeChamferEdgesAD
Archimede
GetVertexByIndex
GetNormal
MakeEdgeOnCurveByLength
MakeEdgeWire
MakeWire
MakeFace
MakeFaceWires
MakeShell
MakeSolidShells
MakeCompound
MakeShape
MakeGlueFaces
GetGlueFaces
MakeGlueFacesByList
MakeGlueEdges
MakeGlueEdgesByList
GetSubShape
ReverseShape
case GetInPlace: default:
TranslateDXDYDZ
TranslateTwoPointsCopy
TranslateDXDYDZCopy
TranslateVector
TranslateVectorCopy
TranslateVectorDistance
Translate1D
Translate2D
TranslateShape1D
TranslateShape2D
MirrorPlane
MirrorPlaneCopy
MirrorPoint
MirrorPointCopy
MirrorAxis
MirrorAxisCopy
OffsetShape
OffsetShapeCopy
ProjectShapeCopy
ScaleShape
ScaleShapeCopy
ScaleShapeAlongAxes
PositionShape
PositionShapeCopy
PositionAlongPath
Rotate
Rotate1D
Rotate2D
RotateThreePoints
RotateThreePointsCopy
TransformLikeOtherCopy
| Handle | ( | TColStd_HSequenceOfAsciiString | ) |
References Handle().
| Handle | ( | TDataStd_HArray1OfByte | ) |
References Handle(), TEXTURE_LABEL_DATA, TEXTURE_LABEL_FILE, TEXTURE_LABEL_HEIGHT, TEXTURE_LABEL_ID, and TEXTURE_LABEL_WIDTH.
| static TCollection_AsciiString pack_data | ( | const Handle(TDataStd_HArray1OfByte)& | aData | ) | [static] |
int MYDEBUG = 0 [static] |
GEOM_Engine* TheEngine = NULL [static] |