///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2019- Equinor ASA // // 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 "cafPdmField.h" #include "cafPdmFieldCvfVec3d.h" #include "cafPdmObject.h" #include "cafPdmPtrField.h" #include "cvfObject.h" class RimIntersectionResultDefinition; class RivIntersectionHexGridInterface; class RimIntersectionResultsDefinitionCollection; class RimIntersection : public caf::PdmObject { CAF_PDM_HEADER_INIT; public: RimIntersection(); ~RimIntersection() override; virtual QString name() const = 0; bool isActive() const; void setActive( bool isActive ); bool isInactiveCellsVisible() const; RimIntersectionResultDefinition* activeSeparateResultDefinition(); cvf::ref createHexGridInterface(); protected: virtual RimIntersectionResultsDefinitionCollection* findSeparateResultsCollection(); caf::PdmFieldHandle* objectToggleField() override final; QList calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions, bool* useOptionsOnly ) override; void defineSeparateDataSourceUi( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ); void updateDefaultSeparateDataSource(); caf::PdmField m_isActive; caf::PdmField m_showInactiveCells; caf::PdmField m_useSeparateDataSource; caf::PdmPtrField m_separateDataSource; };