Version: 6.3.1
Defines | Functions

src/GEOM/GEOM_Function.cxx File Reference

#include <Standard_Stream.hxx>
#include <GEOM_Function.hxx>
#include <GEOM_Object.hxx>
#include <GEOM_Solver.hxx>
#include <GEOM_ISubShape.hxx>
#include "utilities.h"
#include <TDF.hxx>
#include <TDF_Tool.hxx>
#include <TDF_Data.hxx>
#include <TDF_ChildIterator.hxx>
#include <TDF_Reference.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_IntegerArray.hxx>
#include <TDataStd_Real.hxx>
#include <TDataStd_RealArray.hxx>
#include <TDataStd_Comment.hxx>
#include <TDataStd_TreeNode.hxx>
#include <TDataStd_UAttribute.hxx>
#include <TDataStd_ChildNodeIterator.hxx>
#include <TDataStd_ExtStringArray.hxx>
#include <TDataStd_ExtStringList.hxx>
#include <TDocStd_Owner.hxx>
#include <TDocStd_Document.hxx>
#include <TFunction_Function.hxx>
#include <TNaming_NamedShape.hxx>
#include <TNaming_Builder.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HSequenceOfTransient.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
#include <Standard_Failure.hxx>
#include <Standard_ErrorHandler.hxx>
Include dependency graph for GEOM_Function.cxx:

Defines

#define KEEP_ORIENTATION_0021251
#define ARGUMENT_LABEL   1
#define RESULT_LABEL   2
#define DESCRIPTION_LABEL   3
#define HISTORY_LABEL   4
#define SUBSHAPES_LABEL   5
#define NAMING_LABEL   6
#define ORIENTATION_LABEL   7
#define ARGUMENTS   _label.FindChild((ARGUMENT_LABEL))
#define ARGUMENT(thePosition)   _label.FindChild((ARGUMENT_LABEL)).FindChild((thePosition))
#define SUB_ARGUMENT(thePos1, thePos2)   _label.FindChild((ARGUMENT_LABEL)).FindChild((thePos1)).FindChild((thePos2))

Functions

 Handle (GEOM_Function) GEOM_Function
 Handle (TColStd_HArray1OfReal) GEOM_Function
 Handle (TColStd_HArray1OfInteger) GEOM_Function
 Handle (TColStd_HArray1OfExtendedString) GEOM_Function
 Handle (TColStd_HSequenceOfTransient) GEOM_Function
 Find subshapes complying with given status about surface.
Standard_EXPORT
Handle_Standard_Type & 
GEOM_Function_Type_ ()

Define Documentation

#define KEEP_ORIENTATION_0021251
#define ARGUMENT_LABEL   1
#define RESULT_LABEL   2
#define DESCRIPTION_LABEL   3
#define HISTORY_LABEL   4
#define SUBSHAPES_LABEL   5
#define NAMING_LABEL   6
#define ORIENTATION_LABEL   7
#define ARGUMENTS   _label.FindChild((ARGUMENT_LABEL))
#define ARGUMENT (   thePosition)    _label.FindChild((ARGUMENT_LABEL)).FindChild((thePosition))
#define SUB_ARGUMENT (   thePos1,
  thePos2 
)    _label.FindChild((ARGUMENT_LABEL)).FindChild((thePos1)).FindChild((thePos2))

Function Documentation

Handle ( GEOM_Function  )

GetFunction:

GetReference

GetFunction

GetlastFunction

Handle ( TColStd_HArray1OfReal  )

GetRealArray

References ARGUMENT, and Handle().

Handle ( TColStd_HArray1OfInteger  )

GetIntegerArray

Handle ( TColStd_HArray1OfExtendedString  )

GetStringArray

References ARGUMENT, and Handle().

Handle ( TColStd_HSequenceOfTransient  )

Find subshapes complying with given status about quadrangle.

Find shape objects and their entries by their ids.

GetReferenceList

GetLastDependency

MakePipeTShapeWithPosition Create a T-shape object with specified caracteristics for the main and the incident pipes (radius, width, half-length). The extremities of the main pipe are located on junctions points P1 and P2. The extremity of the incident pipe is located on junction point P3.

Parameters:
theR1Internal radius of main pipe
theW1Width of main pipe
theL1Half-length of main pipe
theR2Internal radius of incident pipe (R2 < R1)
theW2Width of incident pipe (R2+W2 < R1+W1)
theL2Half-length of incident pipe
theHexMeshBoolean indicating if shape is prepared for hex mesh
theP11st junction point of main pipe
theP22nd junction point of main pipe
theP3Junction point of incident pipe
Returns:
List of GEOM_Objects, containing the created shape and propagation groups..

MakePipeTShapeChamfer Create a T-shape object with specified caracteristics for the main and the incident pipes (radius, width, half-length). A chamfer is created on the junction of the pipes. Center of the shape is (0,0,0). The main plane of the T-shape is XOY.

Parameters:
theR1Internal radius of main pipe
theW1Width of main pipe
theL1Half-length of main pipe
theR2Internal radius of incident pipe (R2 < R1)
theW2Width of incident pipe (R2+W2 < R1+W1)
theL2Half-length of incident pipe
theHHeight of chamfer.
theWWidth of chamfer.
theHexMeshBoolean indicating if shape is prepared for hex mesh
Returns:
List of GEOM_Objects, containing the created shape and propagation groups.

MakePipeTShapeChamferWithPosition Create a T-shape object with specified caracteristics for the main and the incident pipes (radius, width, half-length). A chamfer is created on the junction of the pipes. The extremities of the main pipe are located on junctions points P1 and P2. The extremity of the incident pipe is located on junction point P3.

Parameters:
theR1Internal radius of main pipe
theW1Width of main pipe
theL1Half-length of main pipe
theR2Internal radius of incident pipe (R2 < R1)
theW2Width of incident pipe (R2+W2 < R1+W1)
theL2Half-length of incident pipe
theHHeight of chamfer.
theWWidth of chamfer.
theHexMeshBoolean indicating if shape is prepared for hex mesh
theP11st junction point of main pipe
theP22nd junction point of main pipe
theP3Junction point of incident pipe
Returns:
List of GEOM_Objects, containing the created shape and propagation groups.

MakePipeTShapeFillet Create a T-shape object with specified caracteristics for the main and the incident pipes (radius, width, half-length). A fillet is created on the junction of the pipes. Center of the shape is (0,0,0). The main plane of the T-shape is XOY.

Parameters:
theR1Internal radius of main pipe
theW1Width of main pipe
theL1Half-length of main pipe
theR2Internal radius of incident pipe (R2 < R1)
theW2Width of incident pipe (R2+W2 < R1+W1)
theL2Half-length of incident pipe
theRFRadius of curvature of fillet.
theHexMeshBoolean indicating if shape is prepared for hex mesh
Returns:
List of GEOM_Objects, containing the created shape and propagation groups.

MakePipeTShapeFilletWithPosition Create a T-shape object with specified caracteristics for the main and the incident pipes (radius, width, half-length). A fillet is created on the junction of the pipes. The extremities of the main pipe are located on junctions points P1 and P2. The extremity of the incident pipe is located on junction point P3.

Parameters:
theR1Internal radius of main pipe
theW1Width of main pipe
theL1Half-length of main pipe
theR2Internal radius of incident pipe (R2 < R1)
theW2Width of incident pipe (R2+W2 < R1+W1)
theL2Half-length of incident pipe
theRFRadius of curvature of fillet
theHexMeshBoolean indicating if shape is prepared for hex mesh
theP11st junction point of main pipe
theP22nd junction point of main pipe
theP3Junction point of incident pipe
Returns:
List of GEOM_Objects, containing the created shape and propagation groups.

GetBlocksByParts

Propagate

GetExistingSubObjects

MakeExplode

MakeSubShapes

Parameters:
theBox- the box to check state of subshapes against
theShape- the shape to explore
theShapeType- type of subshape of theShape
theState- required state
Return values:
Handle(TColStd_HSequenceOfTransient)- found subshapes
Parameters:
theCheckShape- the shape to check state of subshapes against
theShape- the shape to explore
theShapeType- type of subshape of theShape
theState- required state
Return values:
Handle(TColStd_HSequenceOfTransient)- found subshapes
Parameters:
theShapeIDs- incoming shape ids
theShapeEntries- outgoing entries like "entry1, entry2, ..."
Return values:
Handle(TColStd_HSequenceOfTransient)- found shape objects
Parameters:
theSurface- the surface to check state of subshapes against
theShape- the shape to explore
theShapeType- type of subshape of theShape
theState- required state
theShapeEntries- outgoing entries like "entry1, entry2, ..."
Return values:
Handle(TColStd_HSequenceOfInteger)- IDs of found subshapes

GetShapesOnPlane

GetShapesOnPlaneWithLocation

GetShapesOnCylinder

GetShapesOnCylinderWithLocation

GetShapesOnSphere

Parameters:
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
Return values:
Handle(TColStd_HSequenceOfInteger)- IDs of found subshapes

References ARGUMENT, and Handle().

Standard_EXPORT Handle_Standard_Type& GEOM_Function_Type_ ( )

References STANDARD_TYPE().

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS