Skip to content

Commit

Permalink
* Remove Grid2dSetRepresentation support (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippeVerney authored Oct 16, 2018
1 parent 2b6502a commit cfdacae
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 982 deletions.
4 changes: 0 additions & 4 deletions cmake/swigResqml2CsInclude.i
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,6 @@ public static f2i.energisticsStandardsApi.${FESAPI_COMMON_NS}.AbstractObject res
{
return new f2i.energisticsStandardsApi.${FESAPI_RESQML2_0_1_NS}.Grid2dRepresentation(cPtr, owner);
}
else if (type == "Grid2dSetRepresentation")
{
return new f2i.energisticsStandardsApi.${FESAPI_RESQML2_0_1_NS}.Grid2dSetRepresentation(cPtr, owner);
}
else if (type == "GridConnectionSetRepresentation")
{
return new f2i.energisticsStandardsApi.${FESAPI_RESQML2_0_1_NS}.GridConnectionSetRepresentation(cPtr, owner);
Expand Down
4 changes: 0 additions & 4 deletions cmake/swigResqml2JavaInclude.i
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@ Basically this file add methods resqml2_0_instantiate* which will create the rig
{
return new com.f2i.energisticsStandardsApi.${FESAPI_RESQML2_0_1_NS}.Grid2dRepresentation(cPtr, owner);
}
else if (type.equals("Grid2dSetRepresentation"))
{
return new com.f2i.energisticsStandardsApi.${FESAPI_RESQML2_0_1_NS}.Grid2dSetRepresentation(cPtr, owner);
}
else if (type.equals("GridConnectionSetRepresentation"))
{
return new com.f2i.energisticsStandardsApi.${FESAPI_RESQML2_0_1_NS}.GridConnectionSetRepresentation(cPtr, owner);
Expand Down
1 change: 0 additions & 1 deletion example/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ under the License.
#include "resqml2_0_1/StructuralOrganizationInterpretation.h"
#include "resqml2_0_1/StratigraphicUnitInterpretation.h"
#include "resqml2_0_1/Grid2dRepresentation.h"
#include "resqml2_0_1/Grid2dSetRepresentation.h"
#include "resqml2_0_1/SeismicLatticeFeature.h"
#include "resqml2_0_1/SeismicLineSetFeature.h"
#include "resqml2_0_1/WellboreFeature.h"
Expand Down
23 changes: 0 additions & 23 deletions src/common/EpcDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ under the License.
#include "resqml2_0_1/PointSetRepresentation.h"
#include "resqml2_0_1/PlaneSetRepresentation.h"
#include "resqml2_0_1/SeismicLatticeFeature.h"
#include "resqml2_0_1/Grid2dSetRepresentation.h"
#include "resqml2_0_1/Grid2dRepresentation.h"
#include "resqml2_0_1/HdfProxy.h"
#include "resqml2_0_1/TriangulatedSetRepresentation.h"
Expand Down Expand Up @@ -978,7 +977,6 @@ COMMON_NS::AbstractObject* EpcDocument::getResqml2_0_1WrapperFromGsoapContext(co
else if CHECK_AND_GET_RESQML_2_0_1_FESAPI_WRAPPER_FROM_GSOAP_CONTEXT(PointSetRepresentation)
else if CHECK_AND_GET_RESQML_2_0_1_FESAPI_WRAPPER_FROM_GSOAP_CONTEXT(PlaneSetRepresentation)
else if CHECK_AND_GET_RESQML_2_0_1_FESAPI_WRAPPER_FROM_GSOAP_CONTEXT(PolylineRepresentation)
else if CHECK_AND_GET_RESQML_2_0_1_FESAPI_WRAPPER_FROM_GSOAP_CONTEXT(Grid2dSetRepresentation)
else if CHECK_AND_GET_RESQML_2_0_1_FESAPI_WRAPPER_FROM_GSOAP_CONTEXT(Grid2dRepresentation)
else if CHECK_AND_GET_RESQML_2_0_1_FESAPI_WRAPPER_FROM_GSOAP_CONTEXT(TriangulatedSetRepresentation)
else if CHECK_AND_GET_RESQML_2_0_1_FESAPI_WRAPPER_FROM_GSOAP_CONTEXT(BlockedWellboreRepresentation)
Expand Down Expand Up @@ -1203,26 +1201,6 @@ vector<TriangulatedSetRepresentation*> EpcDocument::getFractureTriangulatedSetRe
return result;
}

vector<Grid2dSetRepresentation*> EpcDocument::getHorizonGrid2dSetRepSet() const
{
vector<Grid2dSetRepresentation*> result;

vector<Horizon*> horizonSet = getHorizonSet();
for (size_t featureIndex = 0; featureIndex < horizonSet.size(); ++featureIndex) {
vector<RESQML2_NS::AbstractFeatureInterpretation*> interpSet = horizonSet[featureIndex]->getInterpretationSet();
for (size_t interpIndex = 0; interpIndex < interpSet.size(); ++interpIndex) {
vector<RESQML2_NS::AbstractRepresentation*> repSet = interpSet[interpIndex]->getRepresentationSet();
for (size_t repIndex = 0; repIndex < repSet.size(); ++repIndex) {
if (repSet[repIndex]->getGsoapType() == SOAP_TYPE_gsoap_resqml2_0_1_resqml2__obj_USCOREGrid2dSetRepresentation) {
result.push_back(static_cast<Grid2dSetRepresentation*>(repSet[repIndex]));
}
}
}
}

return result;
}

vector<Grid2dRepresentation*> EpcDocument::getHorizonGrid2dRepSet() const
{
vector<Grid2dRepresentation*> result;
Expand Down Expand Up @@ -1558,7 +1536,6 @@ COMMON_NS::AbstractObject* EpcDocument::createPartial(gsoap_resqml2_0_1::eml20__
else if CREATE_RESQML_2_0_1_FESAPI_PARTIAL_WRAPPER(PointSetRepresentation)
else if CREATE_RESQML_2_0_1_FESAPI_PARTIAL_WRAPPER(PlaneSetRepresentation)
else if CREATE_RESQML_2_0_1_FESAPI_PARTIAL_WRAPPER(PolylineRepresentation)
else if CREATE_RESQML_2_0_1_FESAPI_PARTIAL_WRAPPER(Grid2dSetRepresentation)
else if CREATE_RESQML_2_0_1_FESAPI_PARTIAL_WRAPPER(Grid2dRepresentation)
else if CREATE_RESQML_2_0_1_FESAPI_PARTIAL_WRAPPER(TriangulatedSetRepresentation)
else if CREATE_RESQML_2_0_1_FESAPI_PARTIAL_WRAPPER(BlockedWellboreRepresentation)
Expand Down
6 changes: 0 additions & 6 deletions src/common/EpcDocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ namespace RESQML2_0_1_NS
class PolylineSetRepresentation;
class PolylineRepresentation;
class TriangulatedSetRepresentation;
class Grid2dSetRepresentation;
class Grid2dRepresentation;
class WellboreTrajectoryRepresentation;
class DeviationSurveyRepresentation;
Expand Down Expand Up @@ -417,11 +416,6 @@ namespace COMMON_NS
* Get all the geobodies contained into the EPC document
*/
const std::vector<RESQML2_0_1_NS::GeobodyFeature*> & getGeobodySet() const;

/**
* Get all the individual representations of horizons which are associated to grid 2d set topology
*/
std::vector<RESQML2_0_1_NS::Grid2dSetRepresentation*> getHorizonGrid2dSetRepSet() const;

/**
* Get all the individual representations of horizons which are associated to grid 2d set topology
Expand Down
9 changes: 1 addition & 8 deletions src/resqml2_0_1/Grid2dRepresentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ under the License.
-----------------------------------------------------------------------*/
#pragma once

#include "resqml2_0_1/Grid2dSetRepresentation.h"
#include "resqml2_0_1/AbstractSurfaceRepresentation.h"

namespace RESQML2_0_1_NS
{
Expand Down Expand Up @@ -352,13 +352,6 @@ namespace RESQML2_0_1_NS

// Backward relationships
std::vector<AbstractRepresentation *> supportedRepresentationSet;

friend void Grid2dSetRepresentation::pushBackGeometryPatch(
double * zValues,
const unsigned int & numI, const unsigned int & numJ, COMMON_NS::AbstractHdfProxy* proxy,
Grid2dRepresentation * supportingGrid2dRepresentation,
const unsigned int & startIndexI, const unsigned int & startIndexJ,
const int & indexIncrementI, const int & indexIncrementJ);
};
}

248 changes: 0 additions & 248 deletions src/resqml2_0_1/Grid2dSetRepresentation.cpp

This file was deleted.

Loading

0 comments on commit cfdacae

Please sign in to comment.