mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
Automatic restore of IMPLEMENT_STANDARD_RTTIEXT macro (upgrade -rtti)
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
|
||||
#include <Select3D_InteriorSensitivePointSet.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_InteriorSensitivePointSet,Select3D_SensitiveSet)
|
||||
|
||||
namespace {
|
||||
|
||||
// Internal class for creation of planar polygons
|
||||
|
@@ -70,7 +70,7 @@ public:
|
||||
//! Returns the amount of points in set
|
||||
Standard_EXPORT virtual Standard_Integer NbSubElements() Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTI(Select3D_InteriorSensitivePointSet, Select3D_SensitiveSet)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_InteriorSensitivePointSet,Select3D_SensitiveSet)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <ElCLib.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveBox,Select3D_SensitiveEntity)
|
||||
|
||||
//==================================================
|
||||
// Function: Select3D_SensitiveBox
|
||||
// Purpose :
|
||||
|
@@ -74,7 +74,7 @@ public:
|
||||
//! transformation is set, it will be applied
|
||||
Standard_EXPORT virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTI(Select3D_SensitiveBox, Select3D_SensitiveEntity)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveBox,Select3D_SensitiveEntity)
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -23,6 +23,8 @@
|
||||
#include <Select3D_SensitiveCircle.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveCircle,Select3D_SensitivePoly)
|
||||
|
||||
static Standard_Integer GetCircleNbPoints (const Handle(Geom_Circle)& theCircle,
|
||||
const Standard_Integer theNbPnts)
|
||||
{
|
||||
|
@@ -99,7 +99,7 @@ public:
|
||||
//! Builds BVH tree for a circle's edge segments if needed
|
||||
Standard_EXPORT virtual void BVH() Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTI(Select3D_SensitiveCircle, Select3D_SensitivePoly)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveCircle,Select3D_SensitivePoly)
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -19,6 +19,8 @@
|
||||
#include <TColgp_Array1OfPnt.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveCurve,Select3D_SensitivePoly)
|
||||
|
||||
//==================================================
|
||||
// Function: Creation
|
||||
// Purpose :
|
||||
|
@@ -66,7 +66,7 @@ public:
|
||||
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_RTTI(Select3D_SensitiveCurve, Select3D_SensitivePoly)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveCurve,Select3D_SensitivePoly)
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <TopLoc_Location.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveEntity,SelectBasics_SensitiveEntity)
|
||||
|
||||
//=======================================================================
|
||||
//function : Select3D_SensitiveEntity
|
||||
//purpose :
|
||||
|
@@ -85,7 +85,7 @@ public:
|
||||
//! to this entity has init location set. Otherwise, returns identity matrix.
|
||||
Standard_EXPORT virtual gp_Trsf InvInitLocation() const Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTI(Select3D_SensitiveEntity, SelectBasics_SensitiveEntity)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveEntity,SelectBasics_SensitiveEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -26,6 +26,8 @@
|
||||
#include <Precision.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveFace,Select3D_SensitiveEntity)
|
||||
|
||||
//==================================================
|
||||
// Function: Hide this constructor to the next version...
|
||||
// Purpose : simply avoid interfering with the version update
|
||||
|
@@ -84,7 +84,7 @@ public:
|
||||
//! Returns the amount of sub-entities (points or planar convex polygons)
|
||||
Standard_EXPORT virtual Standard_Integer NbSubElements() Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTI(Select3D_SensitiveFace, Select3D_SensitiveEntity)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveFace,Select3D_SensitiveEntity)
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -19,6 +19,8 @@
|
||||
#include <TopLoc_Location.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveGroup,Select3D_SensitiveSet)
|
||||
|
||||
//=======================================================================
|
||||
//function : Creation
|
||||
//purpose :
|
||||
|
@@ -120,7 +120,7 @@ public:
|
||||
//! Returns the length of vector of sensitive entities
|
||||
Standard_EXPORT virtual Standard_Integer Size() const Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTI(Select3D_SensitiveGroup, Select3D_SensitiveSet)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveGroup,Select3D_SensitiveSet)
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -19,6 +19,8 @@
|
||||
#include <TopLoc_Location.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitivePoint,Select3D_SensitiveEntity)
|
||||
|
||||
//==================================================
|
||||
// Function: Creation
|
||||
// Purpose :
|
||||
|
@@ -61,7 +61,7 @@ public:
|
||||
//! transformation is set, it will be applied
|
||||
Standard_EXPORT virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTI(Select3D_SensitivePoint, Select3D_SensitiveEntity)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitivePoint,Select3D_SensitiveEntity)
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -19,6 +19,8 @@
|
||||
#include <Select3D_SensitivePoly.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitivePoly,Select3D_SensitiveSet)
|
||||
|
||||
//==================================================
|
||||
// Function: Select3D_SensitivePoly
|
||||
// Purpose :
|
||||
|
@@ -93,7 +93,7 @@ public:
|
||||
Standard_EXPORT virtual void Swap (const Standard_Integer theIdx1,
|
||||
const Standard_Integer theIdx2) Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTI (Select3D_SensitivePoly, Select3D_SensitiveSet)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitivePoly,Select3D_SensitiveSet)
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -20,6 +20,8 @@
|
||||
#include <Precision.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveSegment,Select3D_SensitiveEntity)
|
||||
|
||||
//=====================================================
|
||||
// Function : Create
|
||||
// Purpose : Constructor
|
||||
|
@@ -73,7 +73,7 @@ public:
|
||||
//! transformation is set, it will be applied
|
||||
Standard_EXPORT virtual Select3D_BndBox3d BoundingBox() Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTI(Select3D_SensitiveSegment, Select3D_SensitiveEntity)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveSegment,Select3D_SensitiveEntity)
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -17,6 +17,8 @@
|
||||
#include <Select3D_BVHPrimitiveContent.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveSet,Select3D_SensitiveEntity)
|
||||
|
||||
//=======================================================================
|
||||
// function : Select3D_SensitiveSet
|
||||
// purpose : Creates new empty sensitive set and its content
|
||||
|
@@ -91,7 +91,7 @@ public:
|
||||
Standard_EXPORT Standard_Integer GetLeafNodeSize() const;
|
||||
|
||||
public:
|
||||
DEFINE_STANDARD_RTTI(Select3D_SensitiveSet, Select3D_SensitiveEntity)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveSet,Select3D_SensitiveEntity)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -22,6 +22,8 @@
|
||||
#include <TopLoc_Location.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveTriangle,Select3D_SensitiveEntity)
|
||||
|
||||
//==================================================
|
||||
// Function: Creation
|
||||
// Purpose :
|
||||
|
@@ -73,7 +73,7 @@ public:
|
||||
|
||||
virtual gp_Pnt CenterOfGeometry() const Standard_OVERRIDE { return myCentroid; }
|
||||
|
||||
DEFINE_STANDARD_RTTI(Select3D_SensitiveTriangle, Select3D_SensitiveEntity)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveTriangle,Select3D_SensitiveEntity)
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -26,6 +26,8 @@
|
||||
#include <Select3D_SensitiveTriangulation.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveTriangulation,Select3D_SensitiveSet)
|
||||
|
||||
static Standard_Integer NbOfFreeEdges (const Handle(Poly_Triangulation)& theTriangulation)
|
||||
{
|
||||
Standard_Integer aNbFree = 0;
|
||||
|
@@ -111,7 +111,7 @@ public:
|
||||
inline const TopLoc_Location& GetInitLocation() const;
|
||||
|
||||
public:
|
||||
DEFINE_STANDARD_RTTI(Select3D_SensitiveTriangulation, Select3D_SensitiveSet)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveTriangulation,Select3D_SensitiveSet)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -22,6 +22,8 @@
|
||||
#include <Select3D_SensitiveSegment.hxx>
|
||||
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Select3D_SensitiveWire,Select3D_SensitiveSet)
|
||||
|
||||
//=====================================================
|
||||
// Function : Select3D_SensitiveWire
|
||||
// Purpose :
|
||||
|
@@ -79,7 +79,7 @@ public:
|
||||
Standard_EXPORT virtual void Swap (const Standard_Integer theIdx1,
|
||||
const Standard_Integer theIdx2) Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTI(Select3D_SensitiveWire, Select3D_SensitiveSet)
|
||||
DEFINE_STANDARD_RTTIEXT(Select3D_SensitiveWire,Select3D_SensitiveSet)
|
||||
|
||||
protected:
|
||||
|
||||
|
Reference in New Issue
Block a user