X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FSelect3D%2FSelect3D_SensitiveTriangulation.hxx;h=7950ced868b28b094f874a0261c5f3341ce07079;hb=0609d8ee53b0b9d31dd49c39acc74ad83304db97;hpb=69f1a8997e23ee363f4087b1da3cb7da8895c808 diff --git a/src/Select3D/Select3D_SensitiveTriangulation.hxx b/src/Select3D/Select3D_SensitiveTriangulation.hxx index 5f212cdd54..7950ced868 100644 --- a/src/Select3D/Select3D_SensitiveTriangulation.hxx +++ b/src/Select3D/Select3D_SensitiveTriangulation.hxx @@ -14,40 +14,23 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -//Modified Thur Apr 09 98 by rob : No more computation of free edges. -// fix bug on Compute Depth (don't forget -// Location...) - #ifndef _Select3D_SensitiveTriangulation_Header #define _Select3D_SensitiveTriangulation_Header -#include -#include -#include - #include #include #include #include -#include -#include -#include #include #include -#include #include -#include class Poly_Triangulation; -class SelectBasics_EntityOwner; -class TopLoc_Location; -class gp_Pnt; -class Select3D_SensitiveEntity; //! A framework to define selection of a sensitive entity made of a set of triangles. class Select3D_SensitiveTriangulation : public Select3D_SensitiveSet { - + DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveTriangulation, Select3D_SensitiveSet) public: //! Constructs a sensitive triangulation object defined by @@ -76,7 +59,7 @@ public: Standard_EXPORT Handle(Select3D_SensitiveEntity) GetConnected() Standard_OVERRIDE; - const Handle(Poly_Triangulation)& Triangulation() const; + const Handle(Poly_Triangulation)& Triangulation() const { return myTriangul; } //! Returns the length of array of triangles or edges Standard_EXPORT virtual Standard_Integer Size() const Standard_OVERRIDE; @@ -108,10 +91,7 @@ public: //! to this entity has init location set. Otherwise, returns identity matrix. Standard_EXPORT virtual gp_GTrsf InvInitLocation() const Standard_OVERRIDE; - inline const TopLoc_Location& GetInitLocation() const; - -public: - DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveTriangulation,Select3D_SensitiveSet) + const TopLoc_Location& GetInitLocation() const { return myInitLocation; } protected: @@ -119,7 +99,6 @@ protected: //! box of the triangulation Select3D_BndBox3d applyTransformation(); - private: //! Checks whether the element with index theIdx overlaps the current selecting volume @@ -149,7 +128,4 @@ private: DEFINE_STANDARD_HANDLE(Select3D_SensitiveTriangulation, Select3D_SensitiveSet) -#include - - #endif // _Select3D_SensitiveTriangulation_Header