mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Ui brush-up of View property panel
This commit is contained in:
@@ -165,7 +165,7 @@ RimReservoirView::RimReservoirView()
|
|||||||
CAF_PDM_InitField(&showInactiveCells, "ShowInactiveCells", false, "Show Inactive Cells", "", "", "");
|
CAF_PDM_InitField(&showInactiveCells, "ShowInactiveCells", false, "Show Inactive Cells", "", "", "");
|
||||||
CAF_PDM_InitField(&showInvalidCells, "ShowInvalidCells", false, "Show Invalid Cells", "", "", "");
|
CAF_PDM_InitField(&showInvalidCells, "ShowInvalidCells", false, "Show Invalid Cells", "", "", "");
|
||||||
cvf::Color3f defBackgColor = preferences->defaultViewerBackgroundColor();
|
cvf::Color3f defBackgColor = preferences->defaultViewerBackgroundColor();
|
||||||
CAF_PDM_InitField(&backgroundColor, "ViewBackgroundColor", defBackgColor, "Viewer Background", "", "", "");
|
CAF_PDM_InitField(&backgroundColor, "ViewBackgroundColor", defBackgColor, "Background", "", "", "");
|
||||||
|
|
||||||
|
|
||||||
CAF_PDM_InitField(&cameraPosition, "CameraPosition", cvf::Mat4d::IDENTITY, "", "", "", "");
|
CAF_PDM_InitField(&cameraPosition, "CameraPosition", cvf::Mat4d::IDENTITY, "", "", "", "");
|
||||||
@@ -1610,3 +1610,23 @@ caf::PdmFieldHandle* RimReservoirView::objectToggleField()
|
|||||||
return &showWindow;
|
return &showWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimReservoirView::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
|
||||||
|
{
|
||||||
|
caf::PdmUiGroup* viewGroup = uiOrdering.addNewGroup("Viewer");
|
||||||
|
viewGroup->add(&name);
|
||||||
|
viewGroup->add(&backgroundColor);
|
||||||
|
|
||||||
|
caf::PdmUiGroup* gridGroup = uiOrdering.addNewGroup("Grid Appearance");
|
||||||
|
gridGroup->add(&scaleZ);
|
||||||
|
gridGroup->add(&meshMode);
|
||||||
|
gridGroup->add(&surfaceMode);
|
||||||
|
|
||||||
|
caf::PdmUiGroup* cellGroup = uiOrdering.addNewGroup("Cell Visibility");
|
||||||
|
cellGroup->add(&showMainGrid);
|
||||||
|
cellGroup->add(&showInactiveCells);
|
||||||
|
cellGroup->add(&showInvalidCells);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,12 +191,14 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
virtual void initAfterRead();
|
virtual void initAfterRead();
|
||||||
virtual void setupBeforeSave();
|
virtual void setupBeforeSave();
|
||||||
|
virtual void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering );
|
||||||
|
|
||||||
// Really private
|
// Really private
|
||||||
private:
|
private:
|
||||||
void syncronizeWellsWithResults();
|
void syncronizeWellsWithResults();
|
||||||
void clampCurrentTimestep();
|
void clampCurrentTimestep();
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
caf::PdmField<int> m_currentTimeStep;
|
caf::PdmField<int> m_currentTimeStep;
|
||||||
QPointer<RiuViewer> m_viewer;
|
QPointer<RiuViewer> m_viewer;
|
||||||
|
|||||||
Reference in New Issue
Block a user