Salome HOME
Migration to OCCT 7.0
[modules/gui.git] / src / ViewerData / ViewerData_AISShape.hxx
index 8ea403b59aede5709ab7ebd02480a87c1dce513b..bdb8246f459b40866b312fe8871c0aefc33d2eff 100644 (file)
@@ -35,6 +35,8 @@
 #include <Standard.hxx>
 #include <Standard_DefineHandle.hxx>
 
+#include <Basics_OCCTVersion.hxx>
+
 class ViewerData_AISShape
 #ifdef USE_TEXTURED_SHAPE
   : public AIS_TexturedShape
@@ -62,13 +64,18 @@ protected:
   bool myIsClippable;
 
 public:
-  DEFINE_STANDARD_RTTI(ViewerData_AISShape)  
+
+#ifdef USE_TEXTURED_SHAPE
+  OCCT_DEFINE_STANDARD_RTTIEXT(ViewerData_AISShape,AIS_TexturedShape)
+#else
+  OCCT_DEFINE_STANDARD_RTTIEXT(ViewerData_AISShape,AIS_Shape)
+#endif
 };
 
 #ifdef USE_TEXTURED_SHAPE
-DEFINE_STANDARD_HANDLE(ViewerData_AISShape, AIS_TexturedShape)
+  DEFINE_STANDARD_HANDLE(ViewerData_AISShape, AIS_TexturedShape)
 #else
-DEFINE_STANDARD_HANDLE(ViewerData_AISShape, AIS_Shape)
+  DEFINE_STANDARD_HANDLE(ViewerData_AISShape, AIS_Shape)
 #endif
 
 #endif // _ViewerData_AISShape_HeaderFile