-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-// GEOM OBJECT : interactive object for Geometry entities visualization
-// File : GEOM_TopWireframeShape.hxx
-// Module : GEOM
-//
#ifndef _GEOM_TopWireframeShape_HeaderFile
#define _GEOM_TopWireframeShape_HeaderFile
-#include "GEOM_OBJECT_defs.hxx"
+#include <SALOME_AISShape.hxx>
-#ifndef _Standard_HeaderFile
#include <Standard.hxx>
-#endif
-#ifndef _Handle_GEOM_TopWireframeShape_HeaderFile
-#include "Handle_GEOM_TopWireframeShape.hxx"
-#endif
-
-#ifndef _SALOME_AISShape_HeaderFile
-#include "SALOME_AISShape.hxx"
-#endif
-#ifndef _Standard_Boolean_HeaderFile
-#include <Standard_Boolean.hxx>
-#endif
-
-class GEOM_OBJECT_EXPORT GEOM_TopWireframeShape : public SALOME_AISShape {
+#include <Standard_DefineHandle.hxx>
+class GEOM_TopWireframeShape : public SALOME_AISShape
+{
public:
+ Standard_EXPORT GEOM_TopWireframeShape(const TopoDS_Shape& shape);
+ Standard_EXPORT ~GEOM_TopWireframeShape();
- inline void* operator new(size_t,void* anAddress)
- {
- return anAddress;
- }
- inline void* operator new(size_t size)
- {
- return Standard::Allocate(size);
- }
- inline void operator delete(void *anAddress)
- {
- if (anAddress) Standard::Free((Standard_Address&)anAddress);
- }
- // inline void operator delete(void *anAddress, size_t size)
- // {
- // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
- // }
+ Standard_EXPORT virtual Standard_Boolean hasIO();
+ Standard_EXPORT void setIO(const Handle(SALOME_InteractiveObject)& io);
+ Standard_EXPORT virtual Handle(SALOME_InteractiveObject) getIO();
- // Methods PUBLIC
- //
- GEOM_TopWireframeShape(const TopoDS_Shape& shape);
- virtual Handle_SALOME_InteractiveObject getIO();
- virtual Standard_Boolean hasIO();
- virtual Standard_Boolean isTopLevel();
- virtual Standard_Boolean switchTopLevel();
- virtual Standard_Boolean toActivate();
- virtual void setTopLevel(Standard_Boolean);
- virtual Standard_CString getName();
- virtual void setName(const Standard_CString aName);
- virtual void highlightSubShapes(const TColStd_IndexedMapOfInteger& aIndexMap, const Standard_Boolean aHighlight );
- ~GEOM_TopWireframeShape();
+ Standard_EXPORT virtual void setName(const Standard_CString aName);
+ Standard_EXPORT virtual Standard_CString getName();
- // Type management
- //
- friend Handle_Standard_Type& GEOM_TopWireframeShape_Type_();
- const Handle(Standard_Type)& DynamicType() const;
- Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
+ Standard_EXPORT virtual Standard_Boolean isTopLevel();
+ Standard_EXPORT virtual void setTopLevel(Standard_Boolean);
+ Standard_EXPORT virtual Standard_Boolean switchTopLevel();
+ Standard_EXPORT virtual Standard_Boolean toActivate();
- void setIO(const Handle(SALOME_InteractiveObject)& io);
+ Standard_EXPORT virtual void highlightSubShapes(const TColStd_IndexedMapOfInteger& aIndexMap, const Standard_Boolean aHighlight );
-protected:
-
- // Methods PROTECTED
- //
-
- // Fields PROTECTED
- //
-
-private:
-
- // Methods PRIVATE
- //
-
- // Fields PRIVATE
- //
+public:
+ DEFINE_STANDARD_RTTIEXT(GEOM_TopWireframeShape,SALOME_AISShape)
};
-// other inline functions and methods (like "C++: function call" methods)
-//
+DEFINE_STANDARD_HANDLE(GEOM_TopWireframeShape, SALOME_AISShape)
#endif