My Project
|
Public Types | |
enum | indexableElement { NODE = 0, EDGE = 1, FACE = 2, VOLUME = 3, PILLAR = 4 } |
Public Member Functions | |
virtual | ~AbstractRepresentation () |
class AbstractLocal3dCrs * | getLocalCrs () const |
virtual std::string | getLocalCrsUuid () const |
class AbstractHdfProxy * | getHdfProxy () const |
virtual std::string | getHdfProxyUuid () const =0 |
const std::vector< class AbstractProperty * > & | getPropertySet () const |
std::vector< class AbstractValuesProperty * > | getValuesPropertySet () const |
unsigned int | getValuesPropertyCount () const |
class AbstractValuesProperty * | getValuesProperty (const unsigned int &index) const |
void | setInterpretation (class AbstractFeatureInterpretation *interp) |
class AbstractFeatureInterpretation * | getInterpretation () const |
std::string | getInterpretationUuid () const |
std::string | getInterpretationContentType () const |
void | addSubRepresentation (SubRepresentation *subRep) |
std::vector< SubRepresentation * > | getSubRepresentationSet () const |
unsigned int | getSubRepresentationCount () const |
SubRepresentation * | getSubRepresentation (const unsigned int &index) const |
std::vector< SubRepresentation * > | getFaultSubRepresentationSet () const |
unsigned int | getFaultSubRepresentationCount () const |
SubRepresentation * | getFaultSubRepresentation (const unsigned int &index) const |
virtual ULONG64 | getXyzPointCountOfPatch (const unsigned int &patchIndex) const =0 |
ULONG64 | getXyzPointCountOfAllPatches () const |
virtual void | getXyzPointsOfPatch (const unsigned int &patchIndex, double *xyzPoints) const =0 |
void | getXyzPointsOfPatchInGlobalCrs (const unsigned int &patchIndex, double *xyzPoints) const |
void | getXyzPointsOfAllPatches (double *xyzPoints) const |
void | getXyzPointsOfAllPatchesInGlobalCrs (double *xyzPoints) const |
AbstractRepresentation * | getSeismicSupportOfPatch (const unsigned int &patchIndex) |
virtual unsigned int | getPatchCount () const =0 |
void | pushBackIntoRepresentationSet (class RepresentationSetRepresentation *repSet, bool xml=true) |
void | setHdfProxy (resqml2::AbstractHdfProxy *proxy) |
void | addSeismic3dCoordinatesToPatch (const unsigned int patchIndex, double *inlines, double *crosslines, const unsigned int &pointCount, resqml2::AbstractRepresentation *seismicSupport, resqml2::AbstractHdfProxy *proxy) |
void | addSeismic3dCoordinatesToPatch (const unsigned int patchIndex, const double &startInline, const double &incrInline, const unsigned int &countInline, const double &startCrossline, const double &incrCrossline, const unsigned int &countCrossline, resqml2::AbstractRepresentation *seismicSupport) |
void | addSeismic2dCoordinatesToPatch (const unsigned int patchIndex, double *lineAbscissa, const unsigned int &pointCount, resqml2::AbstractRepresentation *seismicSupport, resqml2::AbstractHdfProxy *proxy) |
void | getSeismicLineAbscissaOfPointsOfPatch (const unsigned int &patchIndex, double *values) |
Public Member Functions inherited from resqml2::AbstractObject | |
bool | isPartial () const |
std::string | getUuid () const |
std::string | getTitle () const |
std::string | getEditor () const |
time_t | getCreation () const |
std::string | getOriginator () const |
std::string | getDescription () const |
time_t | getLastUpdate () const |
std::string | getFormat () const |
std::string | getDescriptiveKeywords () const |
void | setTitle (const std::string &title) |
void | setEditor (const std::string &editor) |
void | setCreation (const time_t &creation) |
void | setOriginator (const std::string &originator) |
void | setDescription (const std::string &description) |
void | setLastUpdate (const time_t &lastUpdate) |
void | setFormat (const std::string &format) |
void | setDescriptiveKeywords (const std::string &descriptiveKeywords) |
void | setMetadata (const std::string &title, const std::string &editor, const time_t &creation, const std::string &originator, const std::string &description, const time_t &lastUpdate, const std::string &format, const std::string &descriptiveKeywords) |
void | serializeIntoStream (std::ostream *stream) |
gsoap_resqml2_0_1::eml__AbstractCitedDataObject * | getGsoapProxy () const |
soap * | getGsoapContext () const |
int | getGsoapType () const |
gsoap_resqml2_0_1::eml__DataObjectReference * | newResqmlReference () const |
gsoap_resqml2_0_1::resqml2__ContactElementReference * | newResqmlContactElementReference () const |
common::EpcDocument * | getEpcDocument () const |
virtual std::string | getXmlNamespace () const |
virtual std::string | getXmlTag () const =0 |
virtual std::string | getResqmlVersion () const |
std::string | getContentType () const |
std::string | getPartNameInEpcDocument () const |
std::string | serializeIntoString () |
void | addAlias (const std::string &authority, const std::string &title) |
unsigned int | getAliasCount () const |
std::string | getAliasAuthorityAtIndex (const unsigned int &index) const |
std::string | getAliasTitleAtIndex (const unsigned int &index) const |
const std::vector< resqml2::Activity * > & | getActivitySet () const |
void | addOrSetExtraMetadata (const std::string &key, const std::string &value) |
std::tr1::unordered_map< std::string, std::string > | getExtraMetadataSet () const |
std::string | getExtraMetadata (const std::string &key) |
unsigned int | getExtraMetadataCount () const |
std::string | getExtraMetadataKeyAtIndex (const unsigned int &index) const |
std::string | getExtraMetadataStringValueAtIndex (const unsigned int &index) const |
Static Public Attributes | |
static const char * | XML_TAG = "AbstractRepresentation" |
Protected Member Functions | |
AbstractRepresentation (common::EpcDocument *epcDoc, gsoap_resqml2_0_1::eml__DataObjectReference *partialObject) | |
AbstractRepresentation (class AbstractFeatureInterpretation *interp, class AbstractLocal3dCrs *crs) | |
AbstractRepresentation (gsoap_resqml2_0_1::resqml2__AbstractRepresentation *fromGsoap) | |
void | pushBackSeismicSupport (AbstractRepresentation *seismicSupport) |
void | setXmlInterpretation (class AbstractFeatureInterpretation *interp) |
virtual gsoap_resqml2_0_1::resqml2__PointGeometry * | getPointGeometry2_0_1 (const unsigned int &patchIndex) const |
gsoap_resqml2_0_1::resqml2__PointGeometry * | createPointGeometryPatch2_0_1 (const unsigned int &patchIndex, double *points, unsigned long long *numPoints, const unsigned int &numDimensionsInArray, resqml2::AbstractHdfProxy *proxy) |
std::string | getHdfProxyUuidFromPointGeometryPatch (gsoap_resqml2_0_1::resqml2__PointGeometry *patch) const |
gsoap_resqml2_0_1::resqml2__Seismic2dCoordinates * | getSeismic2dCoordinates (const unsigned int &patchIndex) const |
gsoap_resqml2_0_1::resqml2__Seismic3dCoordinates * | getSeismic3dCoordinates (const unsigned int &patchIndex) const |
virtual std::vector< epc::Relationship > | getAllEpcRelationships () const |
virtual void | importRelationshipSetFromEpc (common::EpcDocument *epcDoc) |
Protected Member Functions inherited from resqml2::AbstractObject | |
AbstractObject (common::EpcDocument *epcDoc, gsoap_resqml2_0_1::eml__DataObjectReference *partialObject) | |
Indicate whether methods update the XML (gSoap) or only the C++ classes of the API. More... | |
AbstractObject (gsoap_resqml2_0_1::eml__AbstractCitedDataObject *proxy=nullptr) | |
void | initMandatoryMetadata () |
void | setMetadata (const std::string &guid, const std::string &title, const std::string &editor, const time_t &creation, const std::string &originator, const std::string &description, const time_t &lastUpdate, const std::string &format, const std::string &descriptiveKeywords) |
Protected Attributes | |
class AbstractFeatureInterpretation * | interpretation |
resqml2::AbstractHdfProxy * | hdfProxy |
class AbstractLocal3dCrs * | localCrs |
std::vector< AbstractRepresentation * > | seismicSupportSet |
std::vector< SubRepresentation * > | subRepresentationSet |
std::vector< AbstractProperty * > | propertySet |
std::vector< AbstractRepresentation * > | seismicSupportedRepSet |
std::vector< class RepresentationSetRepresentation * > | representationSetRepresentationSet |
Protected Attributes inherited from resqml2::AbstractObject | |
gsoap_resqml2_0_1::eml__AbstractCitedDataObject * | gsoapProxy2_0_1 |
common::EpcDocument * | epcDocument |
std::vector< resqml2::Activity * > | activitySet |
bool | updateXml |
Friends | |
void | AbstractProperty::setRepresentation (AbstractRepresentation *rep) |
Additional Inherited Members | |
Static Protected Member Functions inherited from resqml2::AbstractObject | |
static void | addActivityToResqmlObject (resqml2::Activity *activity, AbstractObject *resqmlObject) |
|
inlineprotected |
Only to be used in partial transfer context
|
protected |
Set the domain of the interpretation according to the local CRS Does not set relationship with interp and crs because the gsoap proxy is not allocated yet. This must be done at concrete class level.
|
inlineprotected |
Creates an instance of this class by wrapping a gsoap instance.
|
inlinevirtual |
Destructor does nothing since the memory is managed by the gsoap context.
void AbstractRepresentation::addSeismic2dCoordinatesToPatch | ( | const unsigned int | patchIndex, |
double * | lineAbscissa, | ||
const unsigned int & | pointCount, | ||
resqml2::AbstractRepresentation * | seismicSupport, | ||
resqml2::AbstractHdfProxy * | proxy | ||
) |
Push back a patch of seismic 2D coordinates info. The index this patch will be located must be consistent with the index of the geometry patch it is related to.
The | index of the geometry patch which receives these seismic coordinates |
void AbstractRepresentation::addSeismic3dCoordinatesToPatch | ( | const unsigned int | patchIndex, |
double * | inlines, | ||
double * | crosslines, | ||
const unsigned int & | pointCount, | ||
resqml2::AbstractRepresentation * | seismicSupport, | ||
resqml2::AbstractHdfProxy * | proxy | ||
) |
Push back a patch of seismic 3D coordinates info. The index this patch will be located must be consistent with the index of the geometry patch it is related to.
void AbstractRepresentation::addSubRepresentation | ( | SubRepresentation * | subRep | ) |
Add a subrepresentation to this representation Does not add the inverse relationship i.e. from the subrepresentation to this representation.
|
protected |
Creates a point geometry patch.
patchIndex | The index of the patch which will contain this geometry. |
points | All the points to set ordered according the topology of the representation it is based on. It should be 3 * numPoints sized. |
numPoints | The number of points for each dimension of the array to write. |
numDimensionsInArray | The number of dimensions in the array to write. |
proxy | The HDF proxy where to write the points. It must be already opened for writing and won't be closed in this method. |
|
protectedvirtual |
Return all relationships (backward and forward ones) of the instance using EPC format.
Implements resqml2::AbstractObject.
Reimplemented in resqml2::AbstractGridRepresentation, resqml2_0_1::WellboreTrajectoryRepresentation, resqml2_0_1::PolylineRepresentation, resqml2_0_1::WellboreFrameRepresentation, resqml2::RepresentationSetRepresentation, resqml2_0_1::WellboreMarkerFrameRepresentation, resqml2_0_1::AbstractSurfaceRepresentation, and resqml2::AbstractColumnLayerGridRepresentation.
SubRepresentation * AbstractRepresentation::getFaultSubRepresentation | ( | const unsigned int & | index | ) | const |
Get a particular fault subrepresentation according to its position in the EPC document. It is mainly used in SWIG context for parsing the vector from a non C++ language.
unsigned int AbstractRepresentation::getFaultSubRepresentationCount | ( | ) | const |
Get the subrepresentation count into this EPC document which are representations of a fault. It is mainly used in SWIG context for parsing the vector from a non C++ language.
std::vector< SubRepresentation * > AbstractRepresentation::getFaultSubRepresentationSet | ( | ) | const |
Get all the subrepresentations of this instance which represent a fault.
AbstractHdfProxy * AbstractRepresentation::getHdfProxy | ( | ) | const |
Getter (read/write access) for the hdf Proxy
AbstractFeatureInterpretation * AbstractRepresentation::getInterpretation | ( | ) | const |
Get the interpretation of this representation
std::string AbstractRepresentation::getInterpretationContentType | ( | ) | const |
Get the interpretation content type of this representation
std::string AbstractRepresentation::getInterpretationUuid | ( | ) | const |
Get the interpretation uuid of this representation
AbstractLocal3dCrs * AbstractRepresentation::getLocalCrs | ( | ) | const |
Getter (read/write access) for the localCrs
|
virtual |
Get the Local 3d CRS uuid where the reference point ordinals are given
Reimplemented in resqml2_0_1::WellboreTrajectoryRepresentation, and resqml2_0_1::WellboreFrameRepresentation.
|
inlineprotectedvirtual |
Get the point geometry of a specific patch of the representation.
Reimplemented in resqml2_0_1::AbstractIjkGridRepresentation, resqml2::RepresentationSetRepresentation, resqml2_0_1::WellboreFrameRepresentation, and resqml2_0_1::RepresentationSetRepresentation.
const std::vector< AbstractProperty * > & AbstractRepresentation::getPropertySet | ( | ) | const |
Getter (read only) of all the properties which use this representation as support.
void AbstractRepresentation::getSeismicLineAbscissaOfPointsOfPatch | ( | const unsigned int & | patchIndex, |
double * | values | ||
) |
Get all the abscissa of the points of a specific patch related to seismic line 2d.
AbstractRepresentation * AbstractRepresentation::getSeismicSupportOfPatch | ( | const unsigned int & | patchIndex | ) |
Get the seismic support representation set of this representation Get the seismic support representation uuid set of this representation. Useful when one of the seismic support representation is not accessible. At least we know its uuid. Get the count of seismic points in a particular patch of this representation Get the seismic support of a specific patch.
SubRepresentation * AbstractRepresentation::getSubRepresentation | ( | const unsigned int & | index | ) | const |
Get a particular subrepresentation according to its position in the EPC document. It is mainly used in SWIG context for parsing the vector from a non C++ language.
unsigned int AbstractRepresentation::getSubRepresentationCount | ( | ) | const |
Get the subrepresentation count into this EPC document. It is mainly used in SWIG context for parsing the vector from a non C++ language.
std::vector< SubRepresentation * > AbstractRepresentation::getSubRepresentationSet | ( | ) | const |
Get all the subrepresentations of this instance.
AbstractValuesProperty * AbstractRepresentation::getValuesProperty | ( | const unsigned int & | index | ) | const |
Getter of a particular values property which use this representation as support. It is identified by its index. Necessary for now in SWIG context because I ma not sure if I can always wrap a vector of polymorphic class yet. Throw an out of bound exception if the index is superior or equal to the count of values property.
unsigned int AbstractRepresentation::getValuesPropertyCount | ( | ) | const |
Getter of the count of values properties which use this representation as support. Necessary for now in SWIG context because I ma not sure if I can always wrap a vector of polymorphic class yet.
std::vector< AbstractValuesProperty * > AbstractRepresentation::getValuesPropertySet | ( | ) | const |
Getter of all the properties values which use this representation as support.
ULONG64 AbstractRepresentation::getXyzPointCountOfAllPatches | ( | ) | const |
Get the xyz point count of all patches of this representation.
|
pure virtual |
Get the xyz point count in a given patch.
Implemented in resqml2_0_1::AbstractIjkGridRepresentation, resqml2::GridConnectionSetRepresentation, resqml2::SubRepresentation, resqml2_0_1::UnstructuredGridRepresentation, resqml2_0_1::WellboreTrajectoryRepresentation, resqml2_0_1::PolylineRepresentation, resqml2_0_1::WellboreFrameRepresentation, resqml2_0_1::PolylineSetRepresentation, resqml2_0_1::IjkGridParametricRepresentation, resqml2_0_1::Grid2dRepresentation, resqml2_0_1::TriangulatedSetRepresentation, resqml2_0_1::IjkGridLatticeRepresentation, resqml2_0_1::Grid2dSetRepresentation, resqml2::RepresentationSetRepresentation, resqml2_0_1::PlaneSetRepresentation, resqml2_0_1::PointSetRepresentation, resqml2_0_1::IjkGridExplicitRepresentation, and resqml2_0_1::IjkGridNoGeometryRepresentation.
void AbstractRepresentation::getXyzPointsOfAllPatches | ( | double * | xyzPoints | ) | const |
Get all the XYZ points of all patches of this individual representation XYZ points are given in the local CRS.
xyzPoints | A linearized 2d array where the first (quickest) dimension is coordinate dimension (XYZ) and second dimension is vertex dimension. It must be pre allocated. |
void AbstractRepresentation::getXyzPointsOfAllPatchesInGlobalCrs | ( | double * | xyzPoints | ) | const |
Get all the XYZ points of all patches of this individual representation XYZ points are given in the global CRS.
xyzPoints | A linearized 2d array where the first (quickest) dimension is coordinate dimension (XYZ) and second dimension is vertex dimension. It must be pre allocated. |
|
pure virtual |
Get all the XYZ points of a particular patch of this representation. XYZ points are given in the local CRS.
xyzPoints | A linearized 2d array where the first (quickest) dimension is coordinate dimension (XYZ) and second dimension is vertex dimension. It must be pre allocated. |
Implemented in resqml2_0_1::AbstractIjkGridRepresentation, resqml2::GridConnectionSetRepresentation, resqml2::SubRepresentation, resqml2_0_1::UnstructuredGridRepresentation, resqml2_0_1::WellboreTrajectoryRepresentation, resqml2_0_1::IjkGridParametricRepresentation, resqml2_0_1::PolylineRepresentation, resqml2_0_1::WellboreFrameRepresentation, resqml2_0_1::PolylineSetRepresentation, resqml2_0_1::Grid2dRepresentation, resqml2_0_1::TriangulatedSetRepresentation, resqml2_0_1::IjkGridLatticeRepresentation, resqml2_0_1::Grid2dSetRepresentation, resqml2::RepresentationSetRepresentation, resqml2_0_1::PlaneSetRepresentation, resqml2_0_1::PointSetRepresentation, resqml2_0_1::IjkGridExplicitRepresentation, and resqml2_0_1::IjkGridNoGeometryRepresentation.
void AbstractRepresentation::getXyzPointsOfPatchInGlobalCrs | ( | const unsigned int & | patchIndex, |
double * | xyzPoints | ||
) | const |
Get all the XYZ points of a particular patch of this representation. XYZ points are given in the global CRS.
xyzPoints | A linearized 2d array where the first (quickest) dimension is coordinate dimension (XYZ) and second dimension is vertex dimension. It must be pre allocated. |
|
protectedvirtual |
Resolve all relationships of the object in an epc document
Implements resqml2::AbstractObject.
Reimplemented in resqml2::AbstractGridRepresentation, resqml2_0_1::WellboreTrajectoryRepresentation, resqml2_0_1::WellboreFrameRepresentation, resqml2::RepresentationSetRepresentation, resqml2_0_1::WellboreMarkerFrameRepresentation, resqml2_0_1::AbstractSurfaceRepresentation, and resqml2::AbstractColumnLayerGridRepresentation.
void AbstractRepresentation::pushBackIntoRepresentationSet | ( | class RepresentationSetRepresentation * | repSet, |
bool | xml = true |
||
) |
Pushes back this representaiton into a representation set
repSet | The representation set representation which will contain this representation. |
xml | If set to true (default), then xml relationships will be updated. If set to no, only memory (and epc) relationships will be updated. |
|
protected |
Push back the seismic support of this representation and sets the opposite relationship i.e. from the base rep to the child rep. Only updates memory, no XML.
void AbstractRepresentation::setInterpretation | ( | class AbstractFeatureInterpretation * | interp | ) |
Set the interpretation which is associated to this representation. And push back this representation as a representation of the interpreation as well.
|
protected |
Set the interpretation of the isntance only at the XML level