mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#266) Added interface for all/activeCellsBoundingBox and displayModelOffset
This commit is contained in:
@@ -326,7 +326,7 @@ float RigFemPart::characteristicElementSize()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::BoundingBox RigFemPart::boundingBox()
|
||||
cvf::BoundingBox RigFemPart::boundingBox() const
|
||||
{
|
||||
if (m_boundingBox.isValid()) return m_boundingBox;
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
int neighborFace(int elementIndex, int faceIndex) const
|
||||
{ return m_elmNeighbors[elementIndex].faceInNeighborElm[faceIndex]; }
|
||||
|
||||
cvf::BoundingBox boundingBox();
|
||||
cvf::BoundingBox boundingBox() const;
|
||||
float characteristicElementSize();
|
||||
const std::vector<int>& possibleGridCornerElements() const { return m_possibleGridCornerElements; }
|
||||
void findIntersectingCells(const cvf::BoundingBox& inputBB, std::vector<size_t>* elementIndices) const;
|
||||
@@ -107,7 +107,7 @@ private:
|
||||
std::vector<int> m_possibleGridCornerElements;
|
||||
|
||||
float m_characteristicElementSize;
|
||||
cvf::BoundingBox m_boundingBox;
|
||||
mutable cvf::BoundingBox m_boundingBox;
|
||||
|
||||
mutable cvf::ref<cvf::BoundingBoxTree> m_elementSearchTree;
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ float RigFemPartCollection::characteristicElementSize()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::BoundingBox RigFemPartCollection::boundingBox()
|
||||
cvf::BoundingBox RigFemPartCollection::boundingBox() const
|
||||
{
|
||||
cvf::BoundingBox bBox;
|
||||
for (int i = 0; i < partCount(); i++)
|
||||
|
||||
@@ -37,7 +37,7 @@ public:
|
||||
|
||||
size_t totalElementCount() const;
|
||||
float characteristicElementSize();
|
||||
cvf::BoundingBox boundingBox();
|
||||
cvf::BoundingBox boundingBox() const;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user