Files
ResInsight/ApplicationLibCode/FileInterface/RifSeismicZGYReader.h
T

66 lines
2.1 KiB
C++
Raw Normal View History

2023-03-24 15:36:10 +01:00
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2022 Equinor ASA
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
2023-04-21 16:38:04 +02:00
#include "RifSeismicReader.h"
2023-03-24 15:36:10 +01:00
namespace ZGYAccess
{
class ZGYReader;
} // namespace ZGYAccess
2023-04-21 16:38:04 +02:00
class RifSeismicZGYReader : public RifSeismicReader
2023-03-24 15:36:10 +01:00
{
public:
RifSeismicZGYReader();
2023-04-23 02:07:37 +00:00
~RifSeismicZGYReader() override;
2023-03-24 15:36:10 +01:00
2023-04-21 16:38:04 +02:00
bool open( QString filename ) override;
void close() override;
2023-03-24 15:36:10 +01:00
2023-04-21 16:38:04 +02:00
bool isValid() override;
2023-03-24 15:36:10 +01:00
2023-04-21 16:38:04 +02:00
bool isOpen() const override;
2023-03-24 15:36:10 +01:00
2023-04-21 16:38:04 +02:00
std::vector<std::pair<QString, QString>> metaData() override;
2023-03-24 15:36:10 +01:00
2023-04-21 16:38:04 +02:00
void histogramData( std::vector<double>& xvals, std::vector<double>& yvals ) override;
2023-03-24 15:36:10 +01:00
2023-04-21 16:38:04 +02:00
std::pair<double, double> dataRange() override;
2023-03-24 15:36:10 +01:00
2023-04-21 16:38:04 +02:00
std::vector<cvf::Vec3d> worldCorners() override;
2023-03-24 15:36:10 +01:00
2023-04-21 16:38:04 +02:00
cvf::Vec3i inlineMinMaxStep() override;
cvf::Vec3i xlineMinMaxStep() override;
2023-03-24 15:36:10 +01:00
2023-04-21 16:38:04 +02:00
double zStep() override;
int zSize() override;
2023-03-24 15:36:10 +01:00
2023-04-21 16:38:04 +02:00
cvf::Vec3d convertToWorldCoords( int iLine, int xLine, double depth ) override;
std::pair<int, int> convertToInlineXline( double worldx, double worldy ) override;
2023-03-24 15:36:10 +01:00
std::shared_ptr<ZGYAccess::SeismicSliceData>
2023-04-21 16:38:04 +02:00
slice( RiaDefines::SeismicSliceDirection direction, int sliceIndex, int zStartIndex = -1, int zSize = 0 ) override;
std::shared_ptr<ZGYAccess::SeismicSliceData> trace( int inlineIndex, int xlineIndex, int zStartIndex = -1, int zSize = 0 ) override;
2023-03-24 15:36:10 +01:00
private:
QString m_filename;
std::unique_ptr<ZGYAccess::ZGYReader> m_reader;
};