#include <QPolygonF>
#include <QStringList>
+#ifndef LIGHT_MODE
#include <vtkPoints.h>
#include <vtkDelaunay2D.h>
#include <vtkPolyData.h>
#include <vtkSmartPointer.h>
#include <vtkIdList.h>
+#endif
#include <iostream>
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Bathymetry, HYDROData_IAltitudeObject)
//HYDROData_QuadtreeNode* HYDROData_Bathymetry::myQuadtree = 0;
+#ifndef LIGHT_MODE
std::map<int, HYDROData_QuadtreeNode*> HYDROData_Bathymetry::myQuadtrees;
std::map<int, vtkPolyData*> HYDROData_Bathymetry::myDelaunay2D;
+#endif
HYDROData_Bathymetry::HYDROData_Bathymetry()
return aPoints;
}
-
+#ifndef LIGHT_MODE
HYDROData_QuadtreeNode* HYDROData_Bathymetry::GetQuadtreeNodes() const
{
TDF_Label aLabel = myLab.FindChild(DataTag_AltitudePoints, false);
return myDelaunay2D[labkey];
}
-
+#endif
void HYDROData_Bathymetry::RemoveAltitudePoints()
{
TDF_Label aLabel = myLab.FindChild( DataTag_AltitudePoints, false );
theResPoint.SetZ( aResVal );
}
-
+#ifndef LIGHT_MODE
bool interpolZtriangle(const gp_XY& point, vtkPolyData* delaunay2D, vtkIdList* triangle, double& z)
{
}
return aResAltitude;
}
-
+#endif
void HYDROData_Bathymetry::SetFilePath( const TCollection_AsciiString& theFilePath )
{
TDataStd_AsciiString::Set( myLab.FindChild( DataTag_FilePath ), theFilePath );
#include "HYDROData_IAltitudeObject.h"
#include "HYDROData_QuadtreeNode.hxx"
+
+#ifndef LIGHT_MODE
#include <vtkPolyData.h>
#include <vtkIdList.h>
+#endif
class QFile;
class gp_XYZ;
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.
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;