//
%ExportedHeaderCode
-
#include <HYDROData_Bathymetry.h>
-
#include <gp_XYZ.hxx>
-
%End
%ModuleCode
%End
-class HYDROData_Bathymetry : HYDROData_Object
+class HYDROData_Bathymetry : HYDROData_Entity
{
%ConvertToSubClassCode
- if ( !Handle(HYDROData_Bathymetry)::DownCast( sipCpp ).IsNull() )
- sipClass = sipClass_HYDROData_Bathymetry;
- else
- sipClass = NULL;
+ switch ( sipCpp->GetKind() )
+ {
+ case KIND_BATHYMETRY:
+ sipClass = sipClass_HYDROData_Bathymetry;
+ break;
+
+ default:
+ // We don't recognise the type.
+ sipClass = NULL;
+ }
%End
%TypeHeaderCode
%End
-
-public:
-
- //virtual const ObjectKind GetKind() const { return KIND_BATHYMETRY; }
-
-
public:
// Public methods to work with Bathymetry altitudes.
HYDROData_Bathymetry::AltitudePoints aPoints;
Py_BEGIN_ALLOW_THREADS
- aPoints = sipSelfWasArg ? sipCpp->HYDROData_Bathymetry::GetAltitudePoints() : sipCpp->GetAltitudePoints();
+ aPoints = sipSelfWasArg ? sipCpp->HYDROData_Bathymetry::GetAltitudePoints() :
+ sipCpp->GetAltitudePoints();
Py_END_ALLOW_THREADS
sipRes = convertToPythonAltitudeList( aPoints );
protected:
- //friend class HYDROData_Iterator;
-
/**
* Creates new object in the internal data structure. Use higher level objects
* to create objects with real content.