1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0024947: Redesign OCCT legacy type system -- automatic

Automatic upgrade with command "occt_upgdare . -rtti"
This commit is contained in:
abv
2015-07-11 11:06:11 +03:00
parent 69ff08ff28
commit ec357c5cbb
816 changed files with 1280 additions and 690 deletions

View File

@@ -16,5 +16,5 @@
#include <IVtk_IShape.hxx>
// Handle implementation
IMPLEMENT_STANDARD_HANDLE(IVtk_IShape, IVtk_Interface)
IMPLEMENT_STANDARD_RTTIEXT(IVtk_IShape, IVtk_Interface)

View File

@@ -37,7 +37,7 @@ public:
//! Get ids of sub-shapes composing a sub-shape with the given id
virtual IVtk_ShapeIdList GetSubIds (const IVtk_IdType theId) const = 0;
DEFINE_STANDARD_RTTI( IVtk_IShape )
DEFINE_STANDARD_RTTI(IVtk_IShape, IVtk_Interface)
private:
IVtk_IdType myId;

View File

@@ -16,5 +16,5 @@
#include <IVtk_IShapeData.hxx>
// Handle implementation
IMPLEMENT_STANDARD_HANDLE(IVtk_IShapeData, IVtk_Interface)
IMPLEMENT_STANDARD_RTTIEXT(IVtk_IShapeData, IVtk_Interface)

View File

@@ -30,7 +30,7 @@ public:
virtual ~IVtk_IShapeData() { }
DEFINE_STANDARD_RTTI( IVtk_IShapeData )
DEFINE_STANDARD_RTTI(IVtk_IShapeData, IVtk_Interface)
//! Insert a coordinate
//! @param [in] theX X coordinate

View File

@@ -16,8 +16,7 @@
#include <IVtk_IShapeMesher.hxx>
// Handle implementation
IMPLEMENT_STANDARD_HANDLE(IVtk_IShapeMesher, IVtk_Interface)
IMPLEMENT_STANDARD_RTTIEXT(IVtk_IShapeMesher, IVtk_Interface)
//! Excutes the mesh generation algorithms. To be defined in implementation class.
void IVtk_IShapeMesher::initialize (const IVtk_IShape::Handle& theShape,

View File

@@ -32,7 +32,7 @@ public:
Standard_EXPORT void Build (const IVtk_IShape::Handle& theShape, const IVtk_IShapeData::Handle& theData);
DEFINE_STANDARD_RTTI( IVtk_IShapeMesher )
DEFINE_STANDARD_RTTI(IVtk_IShapeMesher, IVtk_Interface)
protected:
Standard_EXPORT virtual void initialize (const IVtk_IShape::Handle& theShapeObj,

View File

@@ -16,5 +16,5 @@
#include <IVtk_IShapePickerAlgo.hxx>
// Handle implementation
IMPLEMENT_STANDARD_HANDLE(IVtk_IShapePickerAlgo, IVtk_Interface)
IMPLEMENT_STANDARD_RTTIEXT(IVtk_IShapePickerAlgo, IVtk_Interface)

View File

@@ -30,7 +30,7 @@ public:
virtual ~IVtk_IShapePickerAlgo() { }
DEFINE_STANDARD_RTTI( IVtk_IShapePickerAlgo )
DEFINE_STANDARD_RTTI(IVtk_IShapePickerAlgo, IVtk_Interface)
virtual void SetView (const IVtk_IView::Handle& theView) = 0;
virtual int NbPicked() = 0;

View File

@@ -16,5 +16,5 @@
#include <IVtk_IView.hxx>
// Handle implementation
IMPLEMENT_STANDARD_HANDLE(IVtk_IView, IVtk_Interface)
IMPLEMENT_STANDARD_RTTIEXT(IVtk_IView, IVtk_Interface)

View File

@@ -87,7 +87,7 @@ public:
Standard_Real& theWidth,
Standard_Real& theHeight) const = 0;
DEFINE_STANDARD_RTTI( IVtk_IView )
DEFINE_STANDARD_RTTI(IVtk_IView, IVtk_Interface)
};
#endif // __IVTK_IVIEW_H__

View File

@@ -16,5 +16,5 @@
#include <IVtk_Interface.hxx>
// Handle implementation
IMPLEMENT_STANDARD_HANDLE(IVtk_Interface, Standard_Transient)
IMPLEMENT_STANDARD_RTTIEXT(IVtk_Interface, Standard_Transient)

View File

@@ -16,7 +16,7 @@
#ifndef __IVTK_INTERFACE_H__
#define __IVTK_INTERFACE_H__
#include <Standard_DefineHandle.hxx>
#include <Standard_Type.hxx>
#include <Standard_Transient.hxx>
DEFINE_STANDARD_HANDLE( IVtk_Interface, Standard_Transient )
@@ -32,7 +32,7 @@ class IVtk_Interface : public Standard_Transient
public:
typedef Handle(IVtk_Interface) Handle;
DEFINE_STANDARD_RTTI(IVtk_Interface)
DEFINE_STANDARD_RTTI(IVtk_Interface, Standard_Transient)
virtual ~IVtk_Interface() { }
};