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:
@@ -44,18 +44,18 @@ public:
|
||||
Standard_EXPORT GeoAlgo_Sol(const Standard_CString aGroundName);
|
||||
Standard_EXPORT void Build(const Standard_CString aGroundName) ;
|
||||
Standard_EXPORT void Build(const TColgp_SequenceOfXYZ& aSeqofPoints) ;
|
||||
Standard_EXPORT Handle_Geom_BSplineSurface Surface() const;
|
||||
Standard_EXPORT Handle(Geom_BSplineSurface) Surface() const;
|
||||
Standard_EXPORT Standard_Boolean IsDone() const;
|
||||
|
||||
private:
|
||||
|
||||
// Methods PRIVATE
|
||||
//
|
||||
Standard_EXPORT Handle_Geom_BSplineSurface Read(const Standard_CString aGroundName) ;
|
||||
Standard_EXPORT Handle(Geom_BSplineSurface) Read(const Standard_CString aGroundName) ;
|
||||
|
||||
// Fields PRIVATE
|
||||
//
|
||||
Handle_Geom_BSplineSurface myGround;
|
||||
Handle(Geom_BSplineSurface) myGround;
|
||||
Standard_Boolean myIsDone;
|
||||
|
||||
};
|
||||
|
@@ -1119,7 +1119,7 @@ void CGeometryDoc::OnCreateSol()
|
||||
TopoDS_Face aface = BRepBuilderAPI_MakeFace(GeomSol, Precision::Confusion());
|
||||
if (!BRepAlgo::IsValid(aface))
|
||||
MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"Error : The plate surface is not valid!", L"CasCade Error", MB_ICONERROR);
|
||||
Handle_AIS_Shape anAISShape=new AIS_Shape(aface);
|
||||
Handle(AIS_Shape) anAISShape=new AIS_Shape(aface);
|
||||
myAISContext->Display(anAISShape, Standard_False);
|
||||
Fit();
|
||||
}
|
||||
@@ -1211,7 +1211,7 @@ void CGeometryDoc::simplify(const TopoDS_Shape& aShape)
|
||||
" TopLoc_Location aLocation;\n"
|
||||
"\n"
|
||||
" // takes the triangulation of the face aFace\n"
|
||||
" Handle_Poly_Triangulation aTr = BRep_Tool::Triangulation(aFace,aLocation);\n"
|
||||
" Handle(Poly_Triangulation) aTr = BRep_Tool::Triangulation(aFace,aLocation);\n"
|
||||
"\n"
|
||||
" if(!aTr.IsNull())\n"
|
||||
" { \n"
|
||||
@@ -1337,7 +1337,7 @@ void CGeometryDoc::simplify(const TopoDS_Shape& aShape)
|
||||
" TopoDS_Face aFace;\n"
|
||||
" B.MakeFace(aFace, aSurf, Precision::Confusion());\n"
|
||||
" B.Add(aFace, aWire);\n"
|
||||
" Handle_ShapeFix_Shape sfs = new ShapeFix_Shape(aFace);\n"
|
||||
" Handle(ShapeFix_Shape) sfs = new ShapeFix_Shape(aFace);\n"
|
||||
" sfs->Perform();\n"
|
||||
" TopoDS_Shape aFixedFace = sfs->Shape();\n"
|
||||
" if (aFixedFace.IsNull()) \n"
|
||||
@@ -1364,7 +1364,7 @@ void CGeometryDoc::simplify(const TopoDS_Shape& aShape)
|
||||
TopLoc_Location aLocation;
|
||||
|
||||
// takes the triangulation of the face aFace
|
||||
Handle_Poly_Triangulation aTr = BRep_Tool::Triangulation(aFace,aLocation);
|
||||
Handle(Poly_Triangulation) aTr = BRep_Tool::Triangulation(aFace,aLocation);
|
||||
|
||||
if(!aTr.IsNull())
|
||||
{
|
||||
@@ -1492,14 +1492,14 @@ void CGeometryDoc::simplify(const TopoDS_Shape& aShape)
|
||||
TopoDS_Face aFace;
|
||||
B.MakeFace(aFace, aSurf, Precision::Confusion());
|
||||
B.Add(aFace, aWire);
|
||||
Handle_ShapeFix_Shape sfs = new ShapeFix_Shape(aFace);
|
||||
Handle(ShapeFix_Shape) sfs = new ShapeFix_Shape(aFace);
|
||||
sfs->Perform();
|
||||
TopoDS_Shape aFixedFace = sfs->Shape();
|
||||
if (aFixedFace.IsNull())
|
||||
return;
|
||||
|
||||
// output surface, make it half transparent
|
||||
Handle_AIS_InteractiveObject aSurfIO = drawSurface(
|
||||
Handle(AIS_InteractiveObject) aSurfIO = drawSurface(
|
||||
aSurf, Quantity_NOC_LEMONCHIFFON3, Standard_False);
|
||||
aSurfIO->SetTransparency(0.5);
|
||||
myAISContext->Display(aSurfIO,Standard_False);
|
||||
@@ -1517,8 +1517,8 @@ void CGeometryDoc::simplify(const TopoDS_Shape& aShape)
|
||||
drawShape(aFixedFace);
|
||||
}
|
||||
|
||||
Handle_AIS_InteractiveObject CGeometryDoc::drawSurface
|
||||
(const Handle_Geom_Surface& theSurface,
|
||||
Handle(AIS_InteractiveObject) CGeometryDoc::drawSurface
|
||||
(const Handle(Geom_Surface)& theSurface,
|
||||
const Quantity_Color& theColor,
|
||||
const Standard_Boolean toDisplay)
|
||||
{
|
||||
@@ -1529,7 +1529,7 @@ Handle_AIS_InteractiveObject CGeometryDoc::drawSurface
|
||||
fixParam(v1);
|
||||
fixParam(v2);
|
||||
|
||||
Handle_AIS_Shape aGraphicSurface =
|
||||
Handle(AIS_Shape) aGraphicSurface =
|
||||
new AIS_Shape(BRepBuilderAPI_MakeFace (theSurface, u1, u2, v1, v2, Precision::Confusion()));
|
||||
|
||||
myAISContext->SetMaterial(aGraphicSurface, Graphic3d_NOM_PLASTIC, toDisplay);
|
||||
@@ -1569,7 +1569,7 @@ Standard_Boolean CGeometryDoc::WaitForInput (unsigned long aMilliSeconds)
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
Handle_AIS_Point CGeometryDoc::drawPoint
|
||||
Handle(AIS_Point) CGeometryDoc::drawPoint
|
||||
(const gp_Pnt& aPnt,
|
||||
const Quantity_Color& theColor,
|
||||
const Standard_Boolean toDisplay)
|
||||
@@ -1586,12 +1586,12 @@ Handle_AIS_Point CGeometryDoc::drawPoint
|
||||
return aGraphicPoint;
|
||||
}
|
||||
|
||||
Handle_AIS_Shape CGeometryDoc::drawShape
|
||||
Handle(AIS_Shape) CGeometryDoc::drawShape
|
||||
(const TopoDS_Shape& theShape,
|
||||
const Graphic3d_NameOfMaterial theMaterial,
|
||||
const Standard_Boolean toDisplay)
|
||||
{
|
||||
Handle_AIS_Shape aGraphicShape = new AIS_Shape(theShape);
|
||||
Handle(AIS_Shape) aGraphicShape = new AIS_Shape(theShape);
|
||||
|
||||
myAISContext->SetMaterial(aGraphicShape, theMaterial, toDisplay);
|
||||
if (toDisplay)
|
||||
|
@@ -30,26 +30,26 @@ public:
|
||||
void DragEvent2D (const Standard_Integer x ,
|
||||
const Standard_Integer y ,
|
||||
const Standard_Integer TheState,
|
||||
const Handle_V3d_View& aView );
|
||||
const Handle(V3d_View)& aView );
|
||||
void InputEvent2D (const Standard_Integer x ,
|
||||
const Standard_Integer y ,
|
||||
const Handle_V3d_View& aView );
|
||||
const Handle(V3d_View)& aView );
|
||||
void MoveEvent2D (const Standard_Integer x ,
|
||||
const Standard_Integer y ,
|
||||
const Handle_V3d_View& aView );
|
||||
const Handle(V3d_View)& aView );
|
||||
void ShiftMoveEvent2D (const Standard_Integer x ,
|
||||
const Standard_Integer y ,
|
||||
const Handle_V3d_View& aView );
|
||||
const Handle(V3d_View)& aView );
|
||||
void ShiftDragEvent2D (const Standard_Integer x ,
|
||||
const Standard_Integer y ,
|
||||
const Standard_Integer TheState,
|
||||
const Handle_V3d_View& aView );
|
||||
const Handle(V3d_View)& aView );
|
||||
void ShiftInputEvent2D (const Standard_Integer x ,
|
||||
const Standard_Integer y ,
|
||||
const Handle_V3d_View& aView );
|
||||
const Handle(V3d_View)& aView );
|
||||
void Popup2D (const Standard_Integer x ,
|
||||
const Standard_Integer y ,
|
||||
const Handle_V3d_View& aView );
|
||||
const Handle(V3d_View)& aView );
|
||||
|
||||
//-------------------- 3D -------------------//
|
||||
|
||||
@@ -61,21 +61,21 @@ public:
|
||||
const Standard_Integer theMouseY,
|
||||
const Handle(V3d_View)& theView);
|
||||
|
||||
Handle_AIS_InteractiveObject drawSurface
|
||||
(const Handle_Geom_Surface& theSurface,
|
||||
Handle(AIS_InteractiveObject) drawSurface
|
||||
(const Handle(Geom_Surface)& theSurface,
|
||||
const Quantity_Color& theColor,
|
||||
const Standard_Boolean toDisplay);
|
||||
|
||||
Standard_Boolean WaitForInput (unsigned long aMilliSeconds);
|
||||
// Waits for a user input or a period of time has been elapsed
|
||||
|
||||
Handle_AIS_Point drawPoint (const gp_Pnt& thePnt,
|
||||
Handle(AIS_Point) drawPoint (const gp_Pnt& thePnt,
|
||||
const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_GREEN),
|
||||
const Standard_Boolean toDisplay = Standard_True);
|
||||
// creates a presentation of the given point
|
||||
// and displays it in the viewer if toDisplay = Standard_True
|
||||
|
||||
Handle_AIS_Shape drawShape (const TopoDS_Shape& theShape,
|
||||
Handle(AIS_Shape) drawShape (const TopoDS_Shape& theShape,
|
||||
const Graphic3d_NameOfMaterial theMaterial = Graphic3d_NOM_BRASS,
|
||||
const Standard_Boolean toDisplay = Standard_True);
|
||||
// creates a presentation of the given shape with the given material
|
||||
@@ -224,16 +224,16 @@ public:
|
||||
int Current;
|
||||
void Minimize3D();
|
||||
void Minimize2D();
|
||||
Handle_V3d_Viewer GetViewer2D() { return myViewer2D; };
|
||||
Handle_AIS_InteractiveContext& GetISessionContext() { return myAISContext2D; };
|
||||
Handle(V3d_Viewer) GetViewer2D() { return myViewer2D; };
|
||||
Handle(AIS_InteractiveContext)& GetISessionContext() { return myAISContext2D; };
|
||||
BOOL FitMode;
|
||||
|
||||
public:
|
||||
CResultDialog myCResultDialog;
|
||||
|
||||
private:
|
||||
Handle_V3d_Viewer myViewer2D;
|
||||
Handle_AIS_InteractiveContext myAISContext2D;
|
||||
Handle(V3d_Viewer) myViewer2D;
|
||||
Handle(AIS_InteractiveContext) myAISContext2D;
|
||||
|
||||
|
||||
};
|
||||
|
@@ -8,11 +8,10 @@
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
#include <Geom2d_BSplineCurve.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_HANDLE(ISession2D_Curve,AIS_InteractiveObject)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ISession2D_Curve,AIS_InteractiveObject)
|
||||
|
||||
|
||||
ISession2D_Curve::ISession2D_Curve(const Handle_Geom2d_Curve aGeom2dCurve,
|
||||
ISession2D_Curve::ISession2D_Curve(const Handle(Geom2d_Curve) aGeom2dCurve,
|
||||
const Aspect_TypeOfLine aTypeOfLine,
|
||||
const Aspect_WidthOfLine aWidthOfLine,
|
||||
const Standard_Integer aColorIndex)
|
||||
|
@@ -15,7 +15,7 @@
|
||||
#include <Standard_IStream.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
|
||||
class TColGeom2d_HSequenceOfCurve;
|
||||
#include <TColGeom2d_HSequenceOfCurve.hxx>
|
||||
class PrsMgr_PresentationManager2d;
|
||||
class Graphic2d_GraphicObject;
|
||||
class SelectMgr_Selection;
|
||||
@@ -33,7 +33,7 @@ public:
|
||||
//
|
||||
|
||||
ISession2D_Curve
|
||||
(const Handle_Geom2d_Curve aGeom2dCurve,
|
||||
(const Handle(Geom2d_Curve) aGeom2dCurve,
|
||||
const Aspect_TypeOfLine aTypeOfline = Aspect_TOL_SOLID,
|
||||
const Aspect_WidthOfLine aWidthOfLine = Aspect_WOL_MEDIUM,
|
||||
const Standard_Integer aColorIndex = 4);
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
inline Standard_Real GetDiscretisation() const;
|
||||
inline void SetDiscretisation(const Standard_Real aNewDiscretisation) ;
|
||||
|
||||
DEFINE_STANDARD_RTTI(ISession2D_Curve,AIS_InteractiveObject)
|
||||
DEFINE_STANDARD_RTTIEXT(ISession2D_Curve,AIS_InteractiveObject)
|
||||
|
||||
private:
|
||||
|
||||
@@ -70,7 +70,7 @@ private:
|
||||
|
||||
// Fields PRIVATE
|
||||
//
|
||||
Handle_Geom2d_Curve myGeom2dCurve;
|
||||
Handle(Geom2d_Curve) myGeom2dCurve;
|
||||
Aspect_TypeOfLine myTypeOfLine;
|
||||
Aspect_WidthOfLine myWidthOfLine;
|
||||
Standard_Integer myColorIndex;
|
||||
|
@@ -7,7 +7,6 @@
|
||||
#include "ISession_Curve.h"
|
||||
#include <StdPrs_PoleCurve.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
@@ -20,7 +20,7 @@ public:
|
||||
ISession_Curve(Handle(Geom_Curve)& aCurve);
|
||||
virtual ~ISession_Curve();
|
||||
|
||||
DEFINE_STANDARD_RTTI(ISession_Curve,AIS_InteractiveObject)
|
||||
DEFINE_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -13,7 +13,6 @@
|
||||
static char THIS_FILE[]=__FILE__;
|
||||
#endif
|
||||
|
||||
IMPLEMENT_STANDARD_HANDLE(ISession_Direction,AIS_InteractiveObject)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ISession_Direction,AIS_InteractiveObject)
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@@ -26,7 +26,7 @@ public:
|
||||
ISession_Direction (const gp_Pnt2d& aPnt2d,const gp_Vec2d& aVec2d);
|
||||
|
||||
virtual ~ISession_Direction();
|
||||
DEFINE_STANDARD_RTTI(ISession_Direction,AIS_InteractiveObject)
|
||||
DEFINE_STANDARD_RTTIEXT(ISession_Direction,AIS_InteractiveObject)
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -12,7 +12,7 @@
|
||||
static char THIS_FILE[]=__FILE__;
|
||||
//#define new DEBUG_NEW
|
||||
#endif
|
||||
IMPLEMENT_STANDARD_HANDLE(ISession_Point,AIS_InteractiveObject)
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ISession_Point,AIS_InteractiveObject)
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@@ -22,7 +22,7 @@ public:
|
||||
ISession_Point(const gp_Pnt2d& aPoint,Standard_Real Elevation = 0);
|
||||
ISession_Point(const gp_Pnt& aPoint);
|
||||
virtual ~ISession_Point();
|
||||
DEFINE_STANDARD_RTTI(ISession_Point,AIS_InteractiveObject)
|
||||
DEFINE_STANDARD_RTTIEXT(ISession_Point,AIS_InteractiveObject)
|
||||
|
||||
private :
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
static char THIS_FILE[]=__FILE__;
|
||||
//#define new DEBUG_NEW
|
||||
#endif
|
||||
IMPLEMENT_STANDARD_HANDLE(ISession_Surface,AIS_InteractiveObject)
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ISession_Surface,AIS_InteractiveObject)
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@@ -20,7 +20,7 @@ public:
|
||||
ISession_Surface(Handle(Geom_Surface)& aSurface);
|
||||
virtual ~ISession_Surface();
|
||||
|
||||
DEFINE_STANDARD_RTTI(ISession_Surface,AIS_InteractiveObject)
|
||||
DEFINE_STANDARD_RTTIEXT(ISession_Surface,AIS_InteractiveObject)
|
||||
private:
|
||||
|
||||
Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0);
|
||||
|
@@ -11,7 +11,7 @@
|
||||
static char THIS_FILE[]=__FILE__;
|
||||
//#define new DEBUG_NEW
|
||||
#endif
|
||||
IMPLEMENT_STANDARD_HANDLE(ISession_Text,AIS_InteractiveObject)
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ISession_Text,AIS_InteractiveObject)
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
@@ -69,7 +69,7 @@ inline Quantity_Factor GetScale() const;
|
||||
inline void SetScale (const Quantity_Factor aNewScale) ;
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI(ISession_Text,AIS_InteractiveObject)
|
||||
DEFINE_STANDARD_RTTIEXT(ISession_Text,AIS_InteractiveObject)
|
||||
|
||||
private:
|
||||
|
||||
|
Reference in New Issue
Block a user