mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
89 lines
3.1 KiB
C++
89 lines
3.1 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2026 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 <http://www.gnu.org/licenses/gpl.html>
|
|
// for more details.
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
#pragma once
|
|
|
|
#include "Rim3dView.h"
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
#include "cvfBoundingBox.h"
|
|
|
|
class Rim3dOverlayInfoConfig;
|
|
class RimSurfaceInViewCollection;
|
|
class RimPolygonInViewCollection;
|
|
|
|
class RimGeneric3dView : public Rim3dView
|
|
{
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
RimGeneric3dView();
|
|
~RimGeneric3dView() override;
|
|
|
|
RimSurfaceInViewCollection* surfaceInViewCollection() const override;
|
|
RimPolygonInViewCollection* polygonInViewCollection() const override;
|
|
|
|
RiaDefines::View3dContent viewContent() const override;
|
|
bool isGridVisualizationMode() const override;
|
|
std::vector<RimLegendConfig*> legendConfigs() const override;
|
|
void scheduleGeometryRegen( RivCellSetEnum geometryType ) override;
|
|
|
|
cvf::BoundingBox domainBoundingBox() override;
|
|
void updateGridBoxData() override;
|
|
double characteristicCellSize() const override;
|
|
|
|
void recomputeDomainBoundingBoxAndUpdateGridBox();
|
|
|
|
protected:
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
void defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "" ) override;
|
|
|
|
void onCreateDisplayModel() override;
|
|
void defineAxisLabels( cvf::String* xLabel, cvf::String* yLabel, cvf::String* zLabel ) override;
|
|
void onUpdateLegends() override;
|
|
|
|
void onLoadDataAndUpdate() override;
|
|
void selectOverlayInfoConfig() override;
|
|
|
|
cvf::Transform* scaleTransform() override;
|
|
|
|
QString createAutoName() const override;
|
|
|
|
void updateViewTreeItems( RiaDefines::ItemIn3dView itemType ) override;
|
|
|
|
void appendMenuItems( caf::CmdFeatureMenuBuilder& menuBuilder ) const override;
|
|
void appendViewerContextMenuItems( caf::CmdFeatureMenuBuilder& menuBuilder ) const override;
|
|
|
|
private:
|
|
cvf::BoundingBox computeDomainBoundingBox() const;
|
|
cvf::BoundingBox cachedDomainBoundingBox() const;
|
|
void invalidateDomainBoundingBox();
|
|
|
|
private:
|
|
caf::PdmChildField<RimSurfaceInViewCollection*> m_surfaceCollection;
|
|
caf::PdmChildField<RimPolygonInViewCollection*> m_polygonInViewCollection;
|
|
caf::PdmChildField<Rim3dOverlayInfoConfig*> m_overlayInfoConfig;
|
|
|
|
cvf::ref<cvf::Transform> m_scaleTransform;
|
|
|
|
mutable cvf::BoundingBox m_domainBoundingBox;
|
|
mutable bool m_isDomainBoundingBoxCached;
|
|
};
|