#include <TCollection_AsciiString.hxx>
#include <NCollection_DefineDataMap.hxx>
-#include <NCollection_DefineBaseCollection.hxx>
#define UNIT_SYSTEM_SI "SI"
DDS_MT_ERROR, DDS_MT_ALARM,
DDS_MT_INFO, DDS_MT_NONE } DDS_MsgType;
-DEFINE_BASECOLLECTION(DDS_BaseColOfAsciiString,TCollection_AsciiString)
-
#endif
DEFINE_STANDARD_RTTI(DDS_DicGroup)
};
-DEFINE_BASECOLLECTION(DDS_BaseCollectionOfDicGroups, Handle(DDS_DicGroup))
-DEFINE_INDEXEDDATAMAP(DDS_IndexedDataMapOfDicGroups, DDS_BaseCollectionOfDicGroups,
- TCollection_AsciiString, Handle(DDS_DicGroup))
+typedef NCollection_IndexedDataMap<TCollection_AsciiString, Handle(DDS_DicGroup)> DDS_IndexedDataMapOfDicGroups;
#endif
DEFINE_STANDARD_HANDLE(DDS_DicItem, MMgt_TShared)
-DEFINE_BASECOLLECTION(DDS_BaseCollectionOfDicItems, Handle(DDS_DicItem))
-DEFINE_INDEXEDDATAMAP(DDS_IndexedDataMapOfDicItems, DDS_BaseCollectionOfDicItems,
- TCollection_AsciiString, Handle(DDS_DicItem))
+typedef NCollection_IndexedDataMap<TCollection_AsciiString, Handle(DDS_DicItem)> DDS_IndexedDataMapOfDicItems;
#endif
/*!
* Sets the bounding box (MinMax values).
*/
+#if OCC_VERSION_LARGE > 0x06070100 // for OCC-6.7.2 and higher version
+void OCCViewer_Trihedron::bounds( Graphic3d_BndBox4f& theMinMax ) const
+{
+ Graphic3d_Vec4 aMinPt (-1.f, -1.f, -1.f, 1.f);
+ Graphic3d_Vec4 aMaxPt (1.f, 1.f, 1.f, 1.f);
+
+ theMinMax.Add (aMinPt);
+ theMinMax.Add (aMaxPt);
+}
+#else
void OCCViewer_Trihedron::bounds( Graphic3d_CBounds& aMinMax ) const
{
Standard_Real aXMin = -1, aYMin = -1, aZMin = -1;
Standard_Real aXMax = 1, aYMax = 1, aZMax = 1;
-
+
if( aMinMax.XMin > aXMin ) aMinMax.XMin = aXMin;
if( aMinMax.YMin > aYMin ) aMinMax.YMin = aYMin;
if( aMinMax.ZMin > aZMin ) aMinMax.ZMin = aZMin;
if( aMinMax.YMax < aYMax ) aMinMax.YMax = aYMax;
if( aMinMax.ZMax < aZMax ) aMinMax.ZMax = aZMax;
}
+#endif
/*!
* Redefined method. Calculates the object presentation.
#include "OCCViewer.h"
#include <AIS_InteractiveObject.hxx>
-#include <Graphic3d_CBounds.hxx>
+#include <Basics_OCCTVersion.hxx>
+#if OCC_VERSION_LARGE > 0x06070100 // for OCC-6.7.2 and higher version
+ #include <Graphic3d_BndBox4f.hxx>
+#else
+ #include <Graphic3d_CBounds.hxx>
+#endif
#include <Standard_DefineHandle.hxx>
/*!
virtual void ComputeSelection( const Handle( SelectMgr_Selection )&,
const Standard_Integer );
+#if OCC_VERSION_LARGE > 0x06070100
+ virtual void bounds( Graphic3d_BndBox4f& ) const;
+#else
virtual void bounds( Graphic3d_CBounds& ) const;
+#endif
virtual void display();