(#404) WIP - Quad to segment mapper to determine well path depth

This commit is contained in:
Pål Hagen
2015-09-10 14:03:59 +02:00
parent f8dc3b4b81
commit ea2bb226d5
6 changed files with 78 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ ${CEE_CURRENT_LIST_DIR}RivTernaryTextureCoordsCreator.h
${CEE_CURRENT_LIST_DIR}RivTernaryScalarMapperEffectGenerator.h
${CEE_CURRENT_LIST_DIR}RivScalarMapperUtils.h
${CEE_CURRENT_LIST_DIR}RivCellEdgeGeometryUtils.h
${CEE_CURRENT_LIST_DIR}RivPipeQuadToSegmentMapper.h
)
@@ -60,6 +61,7 @@ ${CEE_CURRENT_LIST_DIR}RivTernaryTextureCoordsCreator.cpp
${CEE_CURRENT_LIST_DIR}RivTernaryScalarMapperEffectGenerator.cpp
${CEE_CURRENT_LIST_DIR}RivScalarMapperUtils.cpp
${CEE_CURRENT_LIST_DIR}RivCellEdgeGeometryUtils.cpp
${CEE_CURRENT_LIST_DIR}RivPipeQuadToSegmentMapper.cpp
)

View File

@@ -18,6 +18,8 @@
#pragma once
//class RivPipeQuadToSegmentMapper;
class RivPipeGeometryGenerator : public cvf::Object
{
public:
@@ -70,6 +72,9 @@ private:
// Map from generated cylinder segments to pipe result indices
std::vector<size_t> m_filteredPipeSegmentToResult;
// TODO: implement
//RivPipeQuadToSegmentMapper* m_quadToSegmentMapper;
double m_radius;
double m_minimumBendAngle;
double m_bendScalingFactor;

View File

@@ -0,0 +1,27 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2015- Statoil ASA
// Copyright (C) 2015- Ceetron Solutions AS
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#include "RivPipeQuadToSegmentMapper.h"
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RivPipeQuadToSegmentMapper::RivPipeQuadToSegmentMapper()
{
}

View File

@@ -0,0 +1,35 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2015- Statoil ASA
// Copyright (C) 2015- Ceetron Solutions AS
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include <vector>
//==================================================================================================
///
/// TODO: Implement
//==================================================================================================
class RivPipeQuadToSegmentMapper
{
public:
RivPipeQuadToSegmentMapper();
private:
std::vector<size_t> m_quadsToSegment;
};

View File

@@ -22,12 +22,15 @@
#include "RimWellPath.h"
#include "RimWellPathCollection.h"
#include "RivPipeQuadToSegmentMapper.h"
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RivWellPathSourceInfo::RivWellPathSourceInfo(RimWellPath* wellPath)
RivWellPathSourceInfo::RivWellPathSourceInfo(RimWellPath* wellPath/*, RivPipeQuadToSegmentMapper* quadToSegmentMapper*/)
{
m_wellPath = wellPath;
//m_quadToSegmentMapper = quadToSegmentMapper;
}
//--------------------------------------------------------------------------------------------------

View File

@@ -24,18 +24,20 @@
#include "cafPdmPointer.h"
class RimWellPath;
//class RivPipeQuadToSegmentMapper;
//==================================================================================================
///
///
/// TODO: Implement and add RivPipeQuadToSegmentMapper
//==================================================================================================
class RivWellPathSourceInfo : public cvf::Object
{
public:
RivWellPathSourceInfo(RimWellPath* wellPath);
RivWellPathSourceInfo(RimWellPath* wellPath/*, RivPipeQuadToSegmentMapper* quadToSegmentMapper*/);
RimWellPath* wellPath() const;
private:
caf::PdmPointer<RimWellPath> m_wellPath;
caf::PdmPointer<RimWellPath> m_wellPath;
//RivPipeQuadToSegmentMapper* m_quadToSegmentMapper;
};