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:
@@ -24,6 +24,8 @@
|
||||
#include <gp_Vec2d.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Axis2D,Draw_Drawable2D)
|
||||
|
||||
extern Standard_Boolean Draw_Bounds;
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -51,7 +51,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Axis2D,Draw_Drawable2D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Axis2D,Draw_Drawable2D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -24,6 +24,8 @@
|
||||
#include <gp_Vec.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Axis3D,Draw_Drawable3D)
|
||||
|
||||
extern Standard_Boolean Draw_Bounds;
|
||||
|
||||
|
||||
|
@@ -51,7 +51,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Axis3D,Draw_Drawable3D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Axis3D,Draw_Drawable3D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Box,Draw_Drawable3D)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Box
|
||||
//purpose :
|
||||
|
@@ -53,7 +53,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Box,Draw_Drawable3D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Box,Draw_Drawable3D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <OSD_Timer.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Chronometer,Draw_Drawable3D)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Chronometer
|
||||
//purpose :
|
||||
|
@@ -58,7 +58,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Chronometer,Draw_Drawable3D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Chronometer,Draw_Drawable3D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <gp_Circ2d.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Circle2D,Draw_Drawable2D)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Circle2D
|
||||
//purpose :
|
||||
|
@@ -46,7 +46,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Circle2D,Draw_Drawable2D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Circle2D,Draw_Drawable2D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <gp_Circ.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Circle3D,Draw_Drawable3D)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Circle3D
|
||||
//purpose :
|
||||
|
@@ -46,7 +46,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Circle3D,Draw_Drawable3D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Circle3D,Draw_Drawable3D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -16,6 +16,8 @@
|
||||
#include <Draw_Drawable2D.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Drawable2D,Draw_Drawable3D)
|
||||
|
||||
Standard_Boolean Draw_Drawable2D::Is3D() const
|
||||
{
|
||||
return Standard_False;
|
||||
|
@@ -40,7 +40,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Drawable2D,Draw_Drawable3D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Drawable2D,Draw_Drawable3D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -19,6 +19,8 @@
|
||||
#include <Draw_Drawable3D.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Drawable3D,MMgt_TShared)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Drawable3D
|
||||
//purpose :
|
||||
|
@@ -76,7 +76,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Drawable3D,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Drawable3D,MMgt_TShared)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -24,6 +24,8 @@
|
||||
#include <gp_Trsf.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Grid,Draw_Drawable3D)
|
||||
|
||||
static Standard_Real MinimumStep = 1.e-3 ;
|
||||
static Standard_Real Ratio = 200.0 ;
|
||||
|
||||
|
@@ -60,7 +60,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Grid,Draw_Drawable3D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Grid,Draw_Drawable3D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Marker2D,Draw_Drawable2D)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Marker2D
|
||||
//purpose :
|
||||
|
@@ -57,7 +57,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Marker2D,Draw_Drawable2D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Marker2D,Draw_Drawable2D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Marker3D,Draw_Drawable3D)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Marker3D
|
||||
//purpose :
|
||||
|
@@ -57,7 +57,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Marker3D,Draw_Drawable3D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Marker3D,Draw_Drawable3D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -20,6 +20,8 @@
|
||||
#include <Draw_Number.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Number,Draw_Drawable3D)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Number
|
||||
//purpose :
|
||||
|
@@ -60,7 +60,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Number,Draw_Drawable3D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Number,Draw_Drawable3D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -19,6 +19,8 @@
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TCollection_ExtendedString.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Printer,Message_Printer)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Printer
|
||||
//purpose :
|
||||
|
@@ -64,7 +64,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Printer,Message_Printer)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Printer,Message_Printer)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -22,6 +22,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_ProgressIndicator,Message_ProgressIndicator)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_ProgressIndicator
|
||||
//purpose :
|
||||
|
@@ -77,7 +77,7 @@ public:
|
||||
//! note that it uses static variable and thus not thread-safe!
|
||||
Standard_EXPORT static Standard_Address& StopIndicator();
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_ProgressIndicator,Message_ProgressIndicator)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_ProgressIndicator,Message_ProgressIndicator)
|
||||
|
||||
private:
|
||||
Standard_Boolean myTextMode;
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Segment2D,Draw_Drawable2D)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Segment2D
|
||||
//purpose :
|
||||
|
@@ -59,7 +59,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Segment2D,Draw_Drawable2D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Segment2D,Draw_Drawable2D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Segment3D,Draw_Drawable3D)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Segment3D
|
||||
//purpose :
|
||||
|
@@ -53,7 +53,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Segment3D,Draw_Drawable3D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Segment3D,Draw_Drawable3D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Text2D,Draw_Drawable2D)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Text2D
|
||||
//purpose :
|
||||
|
@@ -52,7 +52,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Text2D,Draw_Drawable2D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Text2D,Draw_Drawable2D)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(Draw_Text3D,Draw_Drawable3D)
|
||||
|
||||
//=======================================================================
|
||||
//function : Draw_Text3D
|
||||
//purpose :
|
||||
|
@@ -52,7 +52,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(Draw_Text3D,Draw_Drawable3D)
|
||||
DEFINE_STANDARD_RTTIEXT(Draw_Text3D,Draw_Drawable3D)
|
||||
|
||||
protected:
|
||||
|
||||
|
Reference in New Issue
Block a user