QGIS/external/mdal/frmts/mdal_xms_tin.hpp
Vincent Cloarec 17a95ef0a5
[MESH][FEATURE] update to MDAL 0.5.91 Multi meshes in one file (#35669)
Allow load of multiple (sub-)meshes from a single file. If file contains multiple meshes (e.g. UGRID file), user needs to select the meshes to load from the dialog.
2020-04-14 08:17:15 +02:00

40 lines
866 B
C++

/*
MDAL - Mesh Data Abstraction Library (MIT License)
Copyright (C) 2020 Peter Petrik (zilolv at gmail dot com)
*/
#ifndef MDAL_TIN_HPP
#define MDAL_TIN_HPP
#include <string>
#include <memory>
#include "mdal_data_model.hpp"
#include "mdal_memory_data_model.hpp"
#include "mdal.h"
#include "mdal_driver.hpp"
#define MAX_VERTICES_PER_FACE_TIN 3
namespace MDAL
{
/**
* TIN format specification https://www.xmswiki.com/wiki/TIN_Files
*/
class DriverXmsTin: public Driver
{
public:
DriverXmsTin();
~DriverXmsTin() override;
DriverXmsTin *create() override;
int faceVerticesMaximumCount() const override;
bool canReadMesh( const std::string &uri ) override;
std::unique_ptr< Mesh > load( const std::string &meshFile, const std::string &meshName = "" ) override;
};
} // namespace MDAL
#endif //MDAL_TIN_HPP