#include <GEOMImpl_IMeasureOperations.hxx>

Public Types | |
| enum | ShapeKind { SK_NO_SHAPE, SK_COMPOUND, SK_COMPSOLID, SK_SHELL, SK_WIRE, SK_SPHERE, SK_CYLINDER, SK_BOX, SK_ROTATED_BOX, SK_TORUS, SK_CONE, SK_POLYHEDRON, SK_SOLID, SK_SPHERE2D, SK_CYLINDER2D, SK_TORUS2D, SK_CONE2D, SK_DISK_CIRCLE, SK_DISK_ELLIPSE, SK_POLYGON, SK_PLANE, SK_PLANAR, SK_FACE, SK_CIRCLE, SK_ARC_CIRCLE, SK_ELLIPSE, SK_ARC_ELLIPSE, SK_LINE, SK_SEGMENT, SK_EDGE, SK_VERTEX, SK_ADVANCED } |
Public Member Functions | |
| Standard_EXPORT | GEOMImpl_IMeasureOperations (GEOM_Engine *theEngine, int theDocID) |
| Standard_EXPORT | ~GEOMImpl_IMeasureOperations () |
| Standard_EXPORT ShapeKind | KindOfShape (Handle(GEOM_Object) theShape, Handle(TColStd_HSequenceOfInteger)&theIntegers, Handle(TColStd_HSequenceOfReal)&theDoubles) |
| Standard_EXPORT void | GetPosition (Handle(GEOM_Object) theShape, Standard_Real &Ox, Standard_Real &Oy, Standard_Real &Oz, Standard_Real &Zx, Standard_Real &Zy, Standard_Real &Zz, Standard_Real &Xx, Standard_Real &Xy, Standard_Real &Xz) |
| Standard_EXPORT | Handle (GEOM_Object) GetCentreOfMass(Handle(GEOM_Object) theShape) |
| Standard_EXPORT | Handle (GEOM_Object) GetVertexByIndex(Handle(GEOM_Object) theShape |
| Standard_EXPORT | Handle (GEOM_Object) GetNormal(Handle(GEOM_Object) theFace |
| Standard_EXPORT | Handle (GEOM_Object) theOptionalPoint) |
| Standard_EXPORT void | GetBasicProperties (Handle(GEOM_Object) theShape, Standard_Real &theLength, Standard_Real &theSurfArea, Standard_Real &theVolume) |
| Standard_EXPORT void | GetInertia (Handle(GEOM_Object) theShape, Standard_Real &I11, Standard_Real &I12, Standard_Real &I13, Standard_Real &I21, Standard_Real &I22, Standard_Real &I23, Standard_Real &I31, Standard_Real &I32, Standard_Real &I33, Standard_Real &Ix, Standard_Real &Iy, Standard_Real &Iz) |
| Standard_EXPORT void | GetBoundingBox (Handle(GEOM_Object) theShape, Standard_Real &Xmin, Standard_Real &Xmax, Standard_Real &Ymin, Standard_Real &Ymax, Standard_Real &Zmin, Standard_Real &Zmax) |
| Standard_EXPORT void | GetTolerance (Handle(GEOM_Object) theShape, Standard_Real &FaceMin, Standard_Real &FaceMax, Standard_Real &EdgeMin, Standard_Real &EdgeMax, Standard_Real &VertMin, Standard_Real &VertMax) |
| Standard_EXPORT bool | CheckShape (Handle(GEOM_Object) theShape, const Standard_Boolean theIsCheckGeom, TCollection_AsciiString &theDump) |
| Standard_EXPORT TCollection_AsciiString | IsGoodForSolid (Handle(GEOM_Object) theShape) |
| Standard_EXPORT TCollection_AsciiString | WhatIs (Handle(GEOM_Object) theShape) |
| Standard_EXPORT std::vector< bool > | AreCoordsInside (Handle(GEOM_Object) theShape, const std::vector< double > &coords, double tolerance=Precision::Confusion()) |
| Standard_EXPORT Standard_Real | GetMinDistance (Handle(GEOM_Object) theShape1, Handle(GEOM_Object) theShape2, Standard_Real &X1, Standard_Real &Y1, Standard_Real &Z1, Standard_Real &X2, Standard_Real &Y2, Standard_Real &Z2) |
| Standard_EXPORT void | PointCoordinates (Handle(GEOM_Object) theShape, Standard_Real &theX, Standard_Real &theY, Standard_Real &theZ) |
| Standard_EXPORT Standard_Real | GetAngle (Handle(GEOM_Object) theLine1, Handle(GEOM_Object) theLine2) |
| Standard_EXPORT Standard_Real | GetAngleBtwVectors (Handle(GEOM_Object) theVec1, Handle(GEOM_Object) theVec2) |
| Standard_EXPORT Standard_Real | CurveCurvatureByParam (Handle(GEOM_Object) theCurve, Standard_Real &theParam) |
| Standard_EXPORT Standard_Real | CurveCurvatureByPoint (Handle(GEOM_Object) theCurve, Handle(GEOM_Object) thePoint) |
| Standard_EXPORT Standard_Real | MaxSurfaceCurvatureByParam (Handle(GEOM_Object) theSurf, Standard_Real &theUParam, Standard_Real &theVParam) |
| Standard_EXPORT Standard_Real | MaxSurfaceCurvatureByPoint (Handle(GEOM_Object) theSurf, Handle(GEOM_Object) thePoint) |
| Standard_EXPORT Standard_Real | MinSurfaceCurvatureByParam (Handle(GEOM_Object) theSurf, Standard_Real &theUParam, Standard_Real &theVParam) |
| Standard_EXPORT Standard_Real | MinSurfaceCurvatureByPoint (Handle(GEOM_Object) theSurf, Handle(GEOM_Object) thePoint) |
| Standard_EXPORT void | StartOperation () |
| Standard_EXPORT void | FinishOperation () |
| Standard_EXPORT void | AbortOperation () |
| Standard_EXPORT bool | IsDone () |
| Standard_EXPORT void | SetNotDone () |
| Standard_EXPORT void | SetErrorCode (const TCollection_AsciiString &theErrorCode) |
| Standard_EXPORT char * | GetErrorCode () |
| Standard_EXPORT GEOM_Engine * | GetEngine () |
| Standard_EXPORT GEOM_Solver * | GetSolver () |
| Standard_EXPORT int | GetDocID () |
Static Public Member Functions | |
| static Standard_EXPORT gp_Ax3 | GetPosition (const TopoDS_Shape &theShape) |
Data Fields | |
| Standard_EXPORT Standard_Integer | theIndex |
Private Member Functions | |
| void | StructuralDump (const BRepCheck_Analyzer &theAna, const TopoDS_Shape &theShape, TCollection_AsciiString &theDump) |
| void | GetProblemShapes (const BRepCheck_Analyzer &theAna, const TopoDS_Shape &theShape, Handle(TopTools_HSequenceOfShape)&sl, Handle(TColStd_HArray1OfInteger)&NbProblems, TopTools_DataMapOfShapeListOfShape &theMap) |
| void | GetProblemSub (const BRepCheck_Analyzer &theAna, const TopoDS_Shape &theShape, Handle(TopTools_HSequenceOfShape)&sl, Handle(TColStd_HArray1OfInteger)&NbProblems, const TopAbs_ShapeEnum Subtype, TopTools_DataMapOfShapeListOfShape &theMap) |
| Standard_Real | getSurfaceCurvatures (const Handle(Geom_Surface)&aSurf, Standard_Real theUParam, Standard_Real theVParam, Standard_Boolean theNeedMaxCurv) |
| GEOMImpl_IMeasureOperations::GEOMImpl_IMeasureOperations | ( | GEOM_Engine * | theEngine, |
| int | theDocID | ||
| ) |
Constructor
| GEOMImpl_IMeasureOperations::~GEOMImpl_IMeasureOperations | ( | ) |
Destructor
| GEOMImpl_IMeasureOperations::ShapeKind GEOMImpl_IMeasureOperations::KindOfShape | ( | Handle(GEOM_Object) | theShape, |
| Handle(TColStd_HSequenceOfInteger)& | theIntegers, | ||
| Handle(TColStd_HSequenceOfReal)& | theDoubles | ||
| ) |
Get kind and parameters of the given shape.
References ADVANCED_BASE, GEOMAlgo_ShapeInfo.Direction(), GEOMAlgo_Algo.ErrorStatus(), GEOMAlgo_KN_ARCCIRCLE, GEOMAlgo_KN_ARCELLIPSE, GEOMAlgo_KN_BOX, GEOMAlgo_KN_CIRCLE, GEOMAlgo_KN_CONE, GEOMAlgo_KN_CYLINDER, GEOMAlgo_KN_DISKCIRCLE, GEOMAlgo_KN_DISKELLIPSE, GEOMAlgo_KN_ELLIPSE, GEOMAlgo_KN_LINE, GEOMAlgo_KN_PLANE, GEOMAlgo_KN_POLYGON, GEOMAlgo_KN_POLYHEDRON, GEOMAlgo_KN_QUADRANGLE, GEOMAlgo_KN_RECTANGLE, GEOMAlgo_KN_SEGMENT, GEOMAlgo_KN_SPHERE, GEOMAlgo_KN_TORUS, GEOMAlgo_KN_TRIANGLE, GEOMAlgo_KS_PLANE, GEOM_Object.GetType(), GEOM_Object.GetValue(), Handle(), GEOMAlgo_ShapeInfo.Height(), GEOMAlgo_ShapeInfoFiller.Info(), GEOMAlgo_ShapeInfo.KindOfClosed(), GEOMAlgo_ShapeInfo.KindOfName(), GEOMAlgo_ShapeInfo.KindOfShape(), KO, GEOMAlgo_ShapeInfo.Length(), GEOMAlgo_ShapeInfo.Location(), GEOMAlgo_ShapeInfo.NbSubShapes(), OK, GEOMAlgo_ShapeInfoFiller.Perform(), GEOMAlgo_ShapeInfo.Pnt1(), GEOMAlgo_ShapeInfo.Pnt2(), GEOMAlgo_ShapeInfo.Position(), GEOMAlgo_ShapeInfo.Radius1(), GEOMAlgo_ShapeInfo.Radius2(), GEOMAlgo_ShapeInfoFiller.SetShape(), GEOMAlgo_ShapeInfo.Type(), and GEOMAlgo_ShapeInfo.Width().
| void GEOMImpl_IMeasureOperations::GetPosition | ( | Handle(GEOM_Object) | theShape, |
| Standard_Real & | Ox, | ||
| Standard_Real & | Oy, | ||
| Standard_Real & | Oz, | ||
| Standard_Real & | Zx, | ||
| Standard_Real & | Zy, | ||
| Standard_Real & | Zz, | ||
| Standard_Real & | Xx, | ||
| Standard_Real & | Xy, | ||
| Standard_Real & | Xz | ||
| ) |
GetPosition
References geompy.GetPosition(), GEOM_Object.GetValue(), Handle(), KO, and OK.
| Standard_EXPORT GEOMImpl_IMeasureOperations.Handle | ( | GEOM_Object | ) |
| Standard_EXPORT GEOMImpl_IMeasureOperations.Handle | ( | GEOM_Object | ) |
| Standard_EXPORT GEOMImpl_IMeasureOperations.Handle | ( | GEOM_Object | ) |
| Standard_EXPORT GEOMImpl_IMeasureOperations.Handle | ( | GEOM_Object | ) |
| void GEOMImpl_IMeasureOperations::GetBasicProperties | ( | Handle(GEOM_Object) | theShape, |
| Standard_Real & | theLength, | ||
| Standard_Real & | theSurfArea, | ||
| Standard_Real & | theVolume | ||
| ) |
GetBasicProperties
References GEOM_Object.GetValue(), Handle(), KO, and GEOM_IOperations.SetErrorCode().
| void GEOMImpl_IMeasureOperations::GetInertia | ( | Handle(GEOM_Object) | theShape, |
| Standard_Real & | I11, | ||
| Standard_Real & | I12, | ||
| Standard_Real & | I13, | ||
| Standard_Real & | I21, | ||
| Standard_Real & | I22, | ||
| Standard_Real & | I23, | ||
| Standard_Real & | I31, | ||
| Standard_Real & | I32, | ||
| Standard_Real & | I33, | ||
| Standard_Real & | Ix, | ||
| Standard_Real & | Iy, | ||
| Standard_Real & | Iz | ||
| ) |
GetInertia
References GEOM_Object.GetValue(), Handle(), and KO.
| void GEOMImpl_IMeasureOperations::GetBoundingBox | ( | Handle(GEOM_Object) | theShape, |
| Standard_Real & | Xmin, | ||
| Standard_Real & | Xmax, | ||
| Standard_Real & | Ymin, | ||
| Standard_Real & | Ymax, | ||
| Standard_Real & | Zmin, | ||
| Standard_Real & | Zmax | ||
| ) |
GetBoundingBox
References GEOM_Object.GetValue(), Handle(), and KO.
| void GEOMImpl_IMeasureOperations::GetTolerance | ( | Handle(GEOM_Object) | theShape, |
| Standard_Real & | FaceMin, | ||
| Standard_Real & | FaceMax, | ||
| Standard_Real & | EdgeMin, | ||
| Standard_Real & | EdgeMax, | ||
| Standard_Real & | VertMin, | ||
| Standard_Real & | VertMax | ||
| ) |
GetTolerance
References GEOM_Object.GetValue(), Handle(), KO, and geompy.Tolerance().
| bool GEOMImpl_IMeasureOperations::CheckShape | ( | Handle(GEOM_Object) | theShape, |
| const Standard_Boolean | theIsCheckGeom, | ||
| TCollection_AsciiString & | theDump | ||
| ) |
CheckShape
References GEOM_Object.GetValue(), Handle(), KO, GEOM_IOperations.SetErrorCode(), and StructuralDump().
| TCollection_AsciiString GEOMImpl_IMeasureOperations::IsGoodForSolid | ( | Handle(GEOM_Object) | theShape | ) |
IsGoodForSolid
References GEOM_Object.GetValue(), Handle(), KO, and GEOM_IOperations.SetErrorCode().
| TCollection_AsciiString GEOMImpl_IMeasureOperations::WhatIs | ( | Handle(GEOM_Object) | theShape | ) |
WhatIs
References GEOM_Object.GetValue(), Handle(), KO, and GEOM_IOperations.SetErrorCode().
| std::vector< bool > GEOMImpl_IMeasureOperations::AreCoordsInside | ( | Handle(GEOM_Object) | theShape, |
| const std::vector< double > & | coords, | ||
| double | tolerance = Precision::Confusion() |
||
| ) |
AreCoordsInside
References GEOM_Object.GetValue(), Handle(), PAL_MESH_030_geometry.i, GEOM_example2.x, GEOM_example2.y, and GEOM_example2.z.
| Standard_Real GEOMImpl_IMeasureOperations::GetMinDistance | ( | Handle(GEOM_Object) | theShape1, |
| Handle(GEOM_Object) | theShape2, | ||
| Standard_Real & | X1, | ||
| Standard_Real & | Y1, | ||
| Standard_Real & | Z1, | ||
| Standard_Real & | X2, | ||
| Standard_Real & | Y2, | ||
| Standard_Real & | Z2 | ||
| ) |
GetMinDistance
References CheckSingularCase(), GEOM_Object.GetValue(), Handle(), PAL_MESH_030_geometry.i, KO, GEOM_moteur.P1, GEOM_moteur.P2, GEOM_moteur.S, GEOM_moteur.V1, and GEOM_moteur.V2.
| void GEOMImpl_IMeasureOperations::PointCoordinates | ( | Handle(GEOM_Object) | theShape, |
| Standard_Real & | theX, | ||
| Standard_Real & | theY, | ||
| Standard_Real & | theZ | ||
| ) |
Get coordinates of point
References GEOM_Object.GetValue(), Handle(), KO, and GEOM_IOperations.SetErrorCode().
| Standard_Real GEOMImpl_IMeasureOperations::GetAngle | ( | Handle(GEOM_Object) | theLine1, |
| Handle(GEOM_Object) | theLine2 | ||
| ) |
Compute angle (in degrees) between two lines
References GEOM_moteur.C1, GEOM_moteur.C2, GEOM_Object.GetValue(), Handle(), KO, GEOM_IOperations.SetErrorCode(), and STANDARD_TYPE().
| Standard_Real GEOMImpl_IMeasureOperations::GetAngleBtwVectors | ( | Handle(GEOM_Object) | theVec1, |
| Handle(GEOM_Object) | theVec2 | ||
| ) |
Compute angle (in degrees) between two vectors
References GEOM_Object.GetValue(), Handle(), KO, GEOM_IOperations.SetErrorCode(), and PAL_MESH_028_geometry.Vertices.
| Standard_Real GEOMImpl_IMeasureOperations::CurveCurvatureByParam | ( | Handle(GEOM_Object) | theCurve, |
| Standard_Real & | theParam | ||
| ) |
CurveCurvatureByParam
References GEOM_Object.GetValue(), Handle(), and KO.
| Standard_Real GEOMImpl_IMeasureOperations::CurveCurvatureByPoint | ( | Handle(GEOM_Object) | theCurve, |
| Handle(GEOM_Object) | thePoint | ||
| ) |
| Standard_Real GEOMImpl_IMeasureOperations::MaxSurfaceCurvatureByParam | ( | Handle(GEOM_Object) | theSurf, |
| Standard_Real & | theUParam, | ||
| Standard_Real & | theVParam | ||
| ) |
MaxSurfaceCurvatureByParam
References GEOM_Object.GetValue(), Handle(), KO, GEOM_moteur.V1, and GEOM_moteur.V2.
| Standard_Real GEOMImpl_IMeasureOperations::MaxSurfaceCurvatureByPoint | ( | Handle(GEOM_Object) | theSurf, |
| Handle(GEOM_Object) | thePoint | ||
| ) |
| Standard_Real GEOMImpl_IMeasureOperations::MinSurfaceCurvatureByParam | ( | Handle(GEOM_Object) | theSurf, |
| Standard_Real & | theUParam, | ||
| Standard_Real & | theVParam | ||
| ) |
MinSurfaceCurvatureByParam
References GEOM_Object.GetValue(), Handle(), KO, GEOM_moteur.V1, and GEOM_moteur.V2.
| Standard_Real GEOMImpl_IMeasureOperations::MinSurfaceCurvatureByPoint | ( | Handle(GEOM_Object) | theSurf, |
| Handle(GEOM_Object) | thePoint | ||
| ) |
| gp_Ax3 GEOMImpl_IMeasureOperations::GetPosition | ( | const TopoDS_Shape & | theShape | ) | [static] |
Get LCS, corresponding to the given shape. Origin of the LCS is situated at the shape's center of mass. Axes of the LCS are obtained from shape's location or, if the shape is a planar face, from position of its plane.
References GEOMImpl_IShapesOperations.GetTypeOfSimplePart(), Handle(), and STANDARD_TYPE().
| void GEOMImpl_IMeasureOperations::StructuralDump | ( | const BRepCheck_Analyzer & | theAna, |
| const TopoDS_Shape & | theShape, | ||
| TCollection_AsciiString & | theDump | ||
| ) | [private] |
References GetProblemShapes(), Handle(), and PAL_MESH_030_geometry.i.
| void GEOMImpl_IMeasureOperations::GetProblemShapes | ( | const BRepCheck_Analyzer & | theAna, |
| const TopoDS_Shape & | theShape, | ||
| Handle(TopTools_HSequenceOfShape)& | sl, | ||
| Handle(TColStd_HArray1OfInteger)& | NbProblems, | ||
| TopTools_DataMapOfShapeListOfShape & | theMap | ||
| ) | [private] |
References GetProblemSub().
| void GEOMImpl_IMeasureOperations::GetProblemSub | ( | const BRepCheck_Analyzer & | theAna, |
| const TopoDS_Shape & | theShape, | ||
| Handle(TopTools_HSequenceOfShape)& | sl, | ||
| Handle(TColStd_HArray1OfInteger)& | NbProblems, | ||
| const TopAbs_ShapeEnum | Subtype, | ||
| TopTools_DataMapOfShapeListOfShape & | theMap | ||
| ) | [private] |
References Contains(), and Handle().
| Standard_Real GEOMImpl_IMeasureOperations::getSurfaceCurvatures | ( | const Handle(Geom_Surface)& | aSurf, |
| Standard_Real | theUParam, | ||
| Standard_Real | theVParam, | ||
| Standard_Boolean | theNeedMaxCurv | ||
| ) | [private] |
| void GEOM_IOperations::StartOperation | ( | ) | [inherited] |
StartOperation
References GEOM_IOperations._docID, GEOM_IOperations._engine, and Handle().
| void GEOM_IOperations::FinishOperation | ( | ) | [inherited] |
FinishOperation
References GEOM_IOperations._docID, GEOM_IOperations._engine, and Handle().
| void GEOM_IOperations::AbortOperation | ( | ) | [inherited] |
AbortOperation
References GEOM_IOperations._docID, GEOM_IOperations._engine, and Handle().
| bool GEOM_IOperations::IsDone | ( | ) | [inherited] |
IsDone
References GEOM_IOperations._errorCode, and OK.
| Standard_EXPORT void GEOM_IOperations.SetNotDone | ( | ) | [inherited] |
References GEOM_IOperations._errorCode, and KO.
| Standard_EXPORT void GEOM_IOperations.SetErrorCode | ( | const TCollection_AsciiString & | theErrorCode | ) | [inherited] |
References GEOM_IOperations._errorCode.
| Standard_EXPORT char* GEOM_IOperations.GetErrorCode | ( | ) | [inherited] |
References GEOM_IOperations._errorCode.
| Standard_EXPORT GEOM_Engine* GEOM_IOperations.GetEngine | ( | ) | [inherited] |
References GEOM_IOperations._engine.
| Standard_EXPORT GEOM_Solver* GEOM_IOperations.GetSolver | ( | ) | [inherited] |
References GEOM_IOperations._solver.
| Standard_EXPORT int GEOM_IOperations.GetDocID | ( | ) | [inherited] |
References GEOM_IOperations._docID.
| Standard_EXPORT Standard_Integer GEOMImpl_IMeasureOperations.theIndex |