mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
49 lines
968 B
C++
49 lines
968 B
C++
/*
|
|
MDAL - Mesh Data Abstraction Library (MIT License)
|
|
Copyright (C) 2018 Peter Petrik (zilolv at gmail dot com)
|
|
*/
|
|
|
|
#ifndef MDAL_ASCII_DAT_HPP
|
|
#define MDAL_ASCII_DAT_HPP
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <memory>
|
|
#include <iosfwd>
|
|
#include <iostream>
|
|
#include <fstream>
|
|
|
|
#include "mdal_data_model.hpp"
|
|
#include "mdal.h"
|
|
|
|
namespace MDAL
|
|
{
|
|
|
|
class LoaderAsciiDat
|
|
{
|
|
public:
|
|
LoaderAsciiDat( const std::string &datFile );
|
|
void load( Mesh *mesh, MDAL_Status *status );
|
|
|
|
private:
|
|
void readVertexTimestep(
|
|
const Mesh *mesh,
|
|
std::shared_ptr<DatasetGroup> group,
|
|
double t,
|
|
bool isVector,
|
|
bool hasStatus,
|
|
std::ifstream &stream );
|
|
|
|
void readFaceTimestep(
|
|
const Mesh *mesh,
|
|
std::shared_ptr<DatasetGroup> group,
|
|
double t,
|
|
bool isVector,
|
|
std::ifstream &stream );
|
|
|
|
std::string mDatFile;
|
|
};
|
|
|
|
} // namespace MDAL
|
|
#endif //MDAL_ASCII_DAT_HPP
|