Skip to content

Commit b874e4f

Browse files
Merge pull request #252 from PauloCarvalhoRJ/NextRelease
Next release
2 parents 63d4ccb + 965d906 commit b874e4f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1201
-118
lines changed

GammaRay.pro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ SOURCES += main.cpp\
9393
vertpropcurves/verticalproportioncurvescanvaspicker.cpp \
9494
vertpropcurves/verticalproportioncurvesplot.cpp \
9595
viewer3d/v3dmouseinteractor.cpp \
96+
viewer3d/view3dtextconfigwidget.cpp \
9697
widgets/linechartwidget.cpp \
9798
widgets/qlistwidgetdnd.cpp \
9899
widgets/variogrammodellist.cpp \
@@ -353,6 +354,7 @@ HEADERS += mainwindow.h \
353354
vertpropcurves/verticalproportioncurvescanvaspicker.h \
354355
vertpropcurves/verticalproportioncurvesplot.h \
355356
viewer3d/v3dmouseinteractor.h \
357+
viewer3d/view3dtextconfigwidget.h \
356358
widgets/linechartwidget.h \
357359
widgets/qlistwidgetdnd.h \
358360
widgets/variogrammodellist.h \
@@ -569,6 +571,7 @@ FORMS += mainwindow.ui \
569571
gslib/gslibparams/widgets/widgetgslibpargrid.ui \
570572
gslib/gslibparams/widgets/widgetgslibparrepeat.ui \
571573
gslib/gslibparams/widgets/widgetgslibparcolor.ui \
574+
viewer3d/view3dtextconfigwidget.ui \
572575
widgets/linechartwidget.ui \
573576
vertpropcurves/verticalproportioncurvedialog.ui \
574577
widgets/variogrammodellist.ui \
@@ -804,7 +807,7 @@ win32 {
804807
# The application version
805808
# Don't forget to update the Util::importSettingsFromPreviousVersion() method to
806809
# enable the import of registry/user settings of previous versions.
807-
VERSION = 6.5
810+
VERSION = 6.6
808811

809812
# Define a preprocessor macro so we can get the application version in application code.
810813
DEFINES += APP_VERSION=\\\"$$VERSION\\\"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ If you enjoyed this project, you might also enjoy GeostatsPy: https://github.com
1212
Python script to convert Eclipse grids to Paraview-compatible VTU format: https://github.com/BinWang0213/PyGRDECL
1313

1414
VERSION HISTORY:<br>
15+
&nbsp;&nbsp;&nbsp;Version 6.6 - Mean, median and Gaussian filters, improvements and bug fixes.<br>
1516
&nbsp;&nbsp;&nbsp;Version 6.5 - vertical proportion curves, improvements Automatic Variogram Fitting, enhancements and several fixes.<br>
1617
&nbsp;&nbsp;&nbsp;Version 6.3 - improvements to data imputation with MCMC and parameter experiments for Automatic Variogram Fitting.<br>
1718
&nbsp;&nbsp;&nbsp;Version 6.2 - data imputation with Markov Chains-Monte Carlo simulation and filtering of data sets.<br>

art/iconsHD/v3Dfont32.png

1.63 KB
Loading

dialogs/faciestransitionmatrixoptionsdialog.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ FaciesTransitionMatrixOptionsDialog::~FaciesTransitionMatrixOptionsDialog()
1414
{
1515
delete ui;
1616
}
17+
18+
bool FaciesTransitionMatrixOptionsDialog::isIgnoreGapsChecked()
19+
{
20+
return ui->chkIgnoreGaps->isChecked();
21+
}

dialogs/faciestransitionmatrixoptionsdialog.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class FaciesTransitionMatrixOptionsDialog : public QDialog
1515
explicit FaciesTransitionMatrixOptionsDialog(QWidget *parent = nullptr);
1616
~FaciesTransitionMatrixOptionsDialog();
1717

18+
bool isIgnoreGapsChecked();
19+
1820
private:
1921
Ui::FaciesTransitionMatrixOptionsDialog *ui;
2022
};

dialogs/faciestransitionmatrixoptionsdialog.ui

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<item>
1818
<widget class="QLabel" name="label">
1919
<property name="text">
20-
<string>Options to make a Facies Transition Matrix file (currently fixed):</string>
20+
<string>Options to make a Facies Transition Matrix file (some are currently fixed):</string>
2121
</property>
2222
</widget>
2323
</item>
@@ -35,6 +35,13 @@
3535
</property>
3636
</widget>
3737
</item>
38+
<item>
39+
<widget class="QCheckBox" name="chkIgnoreGaps">
40+
<property name="text">
41+
<string>Ignore gaps (disconnected samples will be treated as connected in sequence)</string>
42+
</property>
43+
</widget>
44+
</item>
3845
<item>
3946
<widget class="QDialogButtonBox" name="buttonBox">
4047
<property name="orientation">

docs/GammaRayManual.docx

137 KB
Binary file not shown.

domain/attribute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Attribute : public ProjectComponent, public IJAbstractVariable, public ICa
4040
virtual QString getPresentationName();
4141
virtual QString getObjectLocator();
4242
virtual View3DViewData build3DViewObjects( View3DWidget * widget3D );
43-
virtual QString getTypeName(){ return "Attribute"; }
43+
virtual QString getTypeName() const { return "Attribute"; }
4444
virtual View3DConfigWidget* build3DViewerConfigWidget(View3DViewData viewObjects);
4545

4646
//IJAbstractVariable interface

domain/auxiliary/faciestransitionmatrixmaker.cpp

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ namespace FTMMakerAdapters {
9898
SegmentSet* segmentSet,
9999
int dataColumnWithFaciesCodes,
100100
DataSetOrderForFaciesString dataIndexOrder,
101-
int groupByVariableIndex ){
101+
int groupByVariableIndex,
102+
bool ignoreGaps ){
102103

103104
std::vector< std::vector< int > > result;
104105

@@ -167,10 +168,10 @@ namespace FTMMakerAdapters {
167168
faciesSequence.push_back( faciesCode );
168169
}else{ // for the other segments...
169170
//if the current segment doesn't connect to the previous...
170-
if( ! Util::areConnected( currentHeadX, currentHeadY, currentHeadZ,
171-
currentTailX, currentTailY, currentTailZ,
172-
previousHeadX, previousHeadY, previousHeadZ,
173-
previousTailX, previousTailY, previousTailZ ) ){
171+
if( ! ignoreGaps && ! Util::areConnected( currentHeadX, currentHeadY, currentHeadZ,
172+
currentTailX, currentTailY, currentTailZ,
173+
previousHeadX, previousHeadY, previousHeadZ,
174+
previousTailX, previousTailY, previousTailZ ) ){
174175
// ...append the previous string to the result to be returned.
175176
if( ! faciesSequence.empty() )
176177
result.push_back( faciesSequence );
@@ -261,10 +262,15 @@ namespace FTMMakerAdapters {
261262
DataFile* dataFile,
262263
int dataColumnWithFaciesCodes,
263264
DataSetOrderForFaciesString dataIndexOrder,
264-
int groupByVariableIndex ){
265+
int groupByVariableIndex,
266+
bool ignoreGaps ){
265267
if( dataFile->getFileType() == "SEGMENTSET" ){
266268
SegmentSet* segmentSet = dynamic_cast<SegmentSet*>( dataFile );
267-
return getFaciesSequence<SegmentSet>( segmentSet, dataColumnWithFaciesCodes, dataIndexOrder, groupByVariableIndex );
269+
return getFaciesSequence<SegmentSet>( segmentSet,
270+
dataColumnWithFaciesCodes,
271+
dataIndexOrder,
272+
groupByVariableIndex,
273+
ignoreGaps );
268274
} else {
269275
Application::instance()->logError("FTMMakerAdapters::getFaciesSequence<DataFile>(): Unsupported data file type: "
270276
+ dataFile->getFileType() + ". Returned empty sequence." );

domain/auxiliary/faciestransitionmatrixmaker.h

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@ namespace FTMMakerAdapters {
4343
* to be used to group the data. That is, to treat each group as a separate data set. This is
4444
* mainly useful with single files that contains data from multiple sources (e.g. drill holes).
4545
* The variable is normally some interger valued id (e.g. well number).
46+
* @param ignoreGaps If true, samples not connected in space are treated as if they were connected
47+
* in the sequence.
4648
*/
4749
template <typename Klass> std::vector< std::vector< int > > getFaciesSequence(
4850
Klass* dataFile,
4951
int dataColumnWithFaciesCodes,
5052
DataSetOrderForFaciesString dataIndexOrder,
51-
int groupByVariableIndex = -1 );
53+
int groupByVariableIndex = -1,
54+
bool ignoreGaps = false );
5255
}
5356

5457
/** This is a template class used to make facies transition matrices for different
@@ -107,9 +110,10 @@ class FaciesTransitionMatrixMaker
107110
/**
108111
* Computes a facies transition matrix by simply counting facies changes between data elements
109112
* along some sequence (e.g. from last to first) of the object passed in the constructor.
110-
*
113+
* @param ignoreGaps If true, samples not connected in space are treated as if they were connected
114+
* in the sequence.
111115
*/
112-
FaciesTransitionMatrix makeSimple( DataSetOrderForFaciesString dataIndexOrder ){
116+
FaciesTransitionMatrix makeSimple( DataSetOrderForFaciesString dataIndexOrder, bool ignoreGaps ){
113117
//retrieve category definition
114118
CategoryDefinition* cd = FTMMakerAdapters::getAssociatedCategoryDefinition( m_dataFileWithFacies, m_variableIndex );
115119
assert( cd && "FaciesTransitionMatrixMaker::makeSimple(): null CategoryDefinition." );
@@ -119,7 +123,11 @@ class FaciesTransitionMatrixMaker
119123
ftm.initialize();
120124

121125
std::vector< std::vector< int > > faciesStrings =
122-
FTMMakerAdapters::getFaciesSequence( m_dataFileWithFacies, m_variableIndex, dataIndexOrder, m_groupByColumn );
126+
FTMMakerAdapters::getFaciesSequence( m_dataFileWithFacies,
127+
m_variableIndex,
128+
dataIndexOrder,
129+
m_groupByColumn,
130+
ignoreGaps );
123131

124132
//each facies string is treated separately (e.g. traces of a seismic volume)
125133
for( const std::vector< int >& faciesString : faciesStrings ){

0 commit comments

Comments
 (0)