X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGEOM%2FGEOM_Object.hxx;h=7b24daa588ab8456b2a908c43db57190b06121f2;hb=14e1a694c4cf249fe205a39c099482bc5b28a6e5;hp=214ca30b9bb79c94c682078a7a66ef277a0f0bc2;hpb=3cd92817cb4c5ee5911d6f40fe977b5e57b980e1;p=modules%2Fgeom.git diff --git a/src/GEOM/GEOM_Object.hxx b/src/GEOM/GEOM_Object.hxx old mode 100755 new mode 100644 index 214ca30b9..7b24daa58 --- a/src/GEOM/GEOM_Object.hxx +++ b/src/GEOM/GEOM_Object.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -27,14 +27,17 @@ #include #include +#include #include #include +#include + class GEOM_Object; -class Handle(TFunction_Driver); +class TFunction_Driver; class GEOM_Engine; -DEFINE_STANDARD_HANDLE( GEOM_Object, GEOM_BaseObject ); +DEFINE_STANDARD_HANDLE( GEOM_Object, GEOM_BaseObject ) class GEOM_Object : public GEOM_BaseObject { @@ -58,10 +61,10 @@ class GEOM_Object : public GEOM_BaseObject Standard_EXPORT ~GEOM_Object(); //Finds a GEOM_Object on the label theLabel - Standard_EXPORT static Handle(GEOM_Object) GetObject(TDF_Label& theLabel); + Standard_EXPORT static Handle(GEOM_Object) GetObject(const TDF_Label& theLabel); //Finds a GEOM_Object by a reference, stored on the label theLabel - Standard_EXPORT static Handle(GEOM_Object) GetReferencedObject(TDF_Label& theLabel); + Standard_EXPORT static Handle(GEOM_Object) GetReferencedObject(const TDF_Label& theLabel); //########################################################### //Access to properties @@ -107,8 +110,12 @@ class GEOM_Object : public GEOM_BaseObject //Returns false if the object is a sub-shape of another object Standard_EXPORT bool IsMainShape(); + //Comfort method + Standard_EXPORT static Handle(TColStd_HSequenceOfTransient) + GetLastFunctions( const std::list< Handle(GEOM_Object) >& theObjects ); + public: - DEFINE_STANDARD_RTTI( GEOM_Object ); + DEFINE_STANDARD_RTTIEXT(GEOM_Object,GEOM_BaseObject) }; #endif