///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) Statoil ASA // Copyright (C) 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 // for more details. // ///////////////////////////////////////////////////////////////////////////////// #pragma once #include "cvfArray.h" #include "cvfColor4.h" #include "cvfMatrix4.h" #include "cvfObject.h" #include "cvfVector3.h" #include "cafPdmPointer.h" #include "cvfCollection.h" #include #include #include namespace cvf { class ModelBasicList; class Transform; class Part; class ScalarMapper; class DrawableGeo; } // namespace cvf class RigFemPart; class RigFemResultAddress; class RigGeoMechCaseData; class RigMainGrid; class RigResultAccessor; class Rim3dView; class RimCellEdgeColors; class RimEclipseCellColors; class RimExtrudedCurveIntersection; class RivTernaryScalarMapper; class RivExtrudedCurveIntersectionGeometryGenerator; class RivIntersectionHexGridInterface; class RivIntersectionVertexWeights; class RivPipeGeometryGenerator; class RivIntersectionGeometryGeneratorIF; //================================================================================================== /// /// //================================================================================================== class RivExtrudedCurveIntersectionPartMgr : public cvf::Object { public: explicit RivExtrudedCurveIntersectionPartMgr( RimExtrudedCurveIntersection* rimIntersection, bool isFlattened = false ); void applySingleColorEffect(); void updateCellResultColor( size_t timeStepIndex, const cvf::ScalarMapper* explicitScalarColorMapper, const RivTernaryScalarMapper* explicitTernaryColorMapper ); void appendIntersectionFacesToModel( cvf::ModelBasicList* model, cvf::Transform* scaleTransform ); void appendMeshLinePartsToModel( cvf::ModelBasicList* model, cvf::Transform* scaleTransform ); void appendPolylinePartsToModel( Rim3dView& view, cvf::ModelBasicList* model, cvf::Transform* scaleTransform ); cvf::Mat4d unflattenTransformMatrix( const cvf::Vec3d& intersectionPointFlat ) const; const RivIntersectionGeometryGeneratorIF* intersectionGeometryGenerator() const; private: void generatePartGeometry(); void createFaultLabelParts( const std::vector>& labelAndAnchors ); void createPolyLineParts( bool useBufferObjects ); void createExtrusionDirParts( bool useBufferObjects ); void createAnnotationSurfaceParts( bool useBufferObjects ); private: caf::PdmPointer m_rimIntersection; cvf::ref m_intersectionGenerator; cvf::ref m_intersectionFaces; cvf::ref m_intersectionGridLines; cvf::ref m_intersectionFaultGridLines; cvf::ref m_faultMeshLabels; cvf::ref m_faultMeshLabelLines; cvf::ref m_highlightLineAlongPolyline; cvf::ref m_highlightPointsForPolyline; cvf::ref m_highlightLineAlongExtrusionDir; cvf::ref m_highlightPointsForExtrusionDir; cvf::Collection m_annotationParts; cvf::ref m_intersectionFacesTextureCoords; struct RivPipeBranchData { cvf::ref m_pipeGeomGenerator; cvf::ref m_surfacePart; cvf::ref m_centerLinePart; }; std::list m_wellBranches; bool m_isFlattened; };