#4259 Implement mapaxes keyword with possibility to export in local coordinates

This commit is contained in:
Gaute Lindkvist
2019-04-01 12:47:28 +02:00
parent 8f6a0f8177
commit 5164a61c55
7 changed files with 141 additions and 4 deletions

View File

@@ -94,11 +94,19 @@ public:
bool isTempGrid() const override;
const std::string& associatedWellPathName() const override;
void setUseMapAxes(bool useMapAxes);
bool useMapAxes() const;
void setMapAxes(const std::array<double, 6>& mapAxes);
const std::array<double, 6>& mapAxes() const;
std::array<float, 6> mapAxesF() const;
cvf::Mat4d mapAxisTransform() const;
private:
void initAllSubCellsMainGridCellIndex();
void buildCellSearchTree();
bool hasFaultWithName(const QString& name) const;
static std::array<double, 6> defaultMapAxes();
private:
std::vector<cvf::Vec3d> m_nodes; ///< Global vertex table
std::vector<RigCell> m_cells; ///< Global array of all cells in the reservoir (including the ones in LGR's)
@@ -116,5 +124,8 @@ private:
bool m_flipXAxis;
bool m_flipYAxis;
bool m_useMapAxes;
std::array<double, 6> m_mapAxes;
};