#define HYDROData_Bathymetry_HeaderFile
#include "HYDROData_IAltitudeObject.h"
-#include "HYDROData_QuadtreeNode.hxx"
-#include <vtkPolyData.h>
-#include <vtkIdList.h>
+#include <vector>
class QFile;
class gp_XYZ;
class gp_XY;
class Handle_HYDROData_PolylineXY;
-
+class HYDROData_QuadtreeNode;
+class vtkPolyData;
+class vtkIdList;
DEFINE_STANDARD_HANDLE(HYDROData_Bathymetry, HYDROData_IAltitudeObject)
class HYDROData_Bathymetry : public HYDROData_IAltitudeObject
{
public:
-
- typedef gp_XYZ AltitudePoint;
- typedef NCollection_Sequence<AltitudePoint> AltitudePoints;
+ struct AltitudePoint
+ {
+ AltitudePoint( double x=0, double y=0, double z=0 ) { X=x; Y=y; Z=z; }
+ double X;
+ double Y;
+ double Z;
+ };
+ typedef std::vector<AltitudePoint> AltitudePoints;
protected:
HYDRODATA_EXPORT virtual AltitudePoints GetAltitudePoints(bool IsConvertToGlobal = false) const;
HYDRODATA_EXPORT virtual HYDROData_QuadtreeNode* GetQuadtreeNodes() const;
+#ifndef LIGHT_MODE
HYDRODATA_EXPORT virtual vtkPolyData* GetVtkDelaunay2D() const;
//HYDRODATA_EXPORT bool interpolZtriangle(const gp_XY& point, vtkIdList* triangle, double* z);
+#endif
/**
* Remove all altitude points.
/**
* Returns altitude for given point.
* \param thePoint the point to examine
+ * \param theMethod interpolation model, default 0 = nearest point
* \return altitude value
*/
- HYDRODATA_EXPORT virtual double GetAltitudeForPoint( const gp_XY& thePoint ) const;
+ HYDRODATA_EXPORT virtual double GetAltitudeForPoint( const gp_XY& thePoint, int theMethod=0 ) const;
public:
// Public methods to work with files.
bool importFromXYZFile( QFile& theFile,
AltitudePoints& thePoints ) const;
static std::map<int, HYDROData_QuadtreeNode*> myQuadtrees;
+#ifndef LIGHT_MODE
static std::map<int, vtkPolyData*> myDelaunay2D;
-
+#endif
bool importFromASCFile( QFile& theFile,
AltitudePoints& thePoints ) const;