#3464 Well Path Export. Use formmatter to export data. Several formatting issues

This commit is contained in:
Bjørn Erik Jensen
2018-11-01 10:04:50 +01:00
parent 2bd70b705e
commit f90fed9aa1
3 changed files with 45 additions and 7 deletions

View File

@@ -43,12 +43,19 @@ class RicExportSelectedWellPathsFeature : public caf::CmdFeature
CAF_CMD_HEADER_INIT;
static void handleAction(const std::vector<RimWellPath*>& wellPaths);
static void exportWellPath(const RimWellPath* wellPath, double mdStepSize, const QString& folder);
static void exportWellPath(const RimWellPath* wellPath,
double mdStepSize,
const QString& folder,
bool writeProjectInfo = true);
static RicExportWellPathsUi* openDialog();
static QFilePtr openFileForExport(const QString& folderName, const QString& fileName);
static QTextStreamPtr createOutputFileStream(QFile& file);
static void writeWellPathGeometryToStream(QTextStream& stream, const RigWellPath* geometry, const QString& wellName, double mdStepSize);
static void writeWellPathGeometryToStream(QTextStream& stream,
const RigWellPath* geometry,
const QString& wellName,
double mdStepSize,
bool writeProjectInfo = true);
private:
bool isCommandEnabled() override;