mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
System : Reorder initialization order to match declaration order
This commit is contained in:
parent
905ebb49de
commit
1706a6c0c4
@ -47,9 +47,10 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuFlowCharacteristicsPlot::RiuFlowCharacteristicsPlot(RimFlowCharacteristicsPlot* plotDefinition, QWidget* parent)
|
||||
: m_plotDefinition(plotDefinition),
|
||||
QFrame(parent)
|
||||
RiuFlowCharacteristicsPlot::RiuFlowCharacteristicsPlot(RimFlowCharacteristicsPlot* plotDefinition, QWidget* parent)
|
||||
: QFrame(parent)
|
||||
, m_plotDefinition(plotDefinition)
|
||||
|
||||
{
|
||||
Q_ASSERT(m_plotDefinition);
|
||||
|
||||
|
@ -32,7 +32,9 @@
|
||||
class FileListModel: public QStringListModel
|
||||
{
|
||||
public:
|
||||
explicit FileListModel(QObject *parent = nullptr) : m_isItemsEditable(false), QStringListModel(parent)
|
||||
explicit FileListModel(QObject* parent = nullptr)
|
||||
: QStringListModel(parent)
|
||||
, m_isItemsEditable(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -177,42 +177,41 @@ RiuEclipseSelectionItem::RiuEclipseSelectionItem(RimEclipseView* view,
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuGeoMechSelectionItem::RiuGeoMechSelectionItem(RimGeoMechView* view,
|
||||
size_t gridIndex,
|
||||
size_t cellIndex,
|
||||
cvf::Color3f color,
|
||||
int elementFace,
|
||||
RiuGeoMechSelectionItem::RiuGeoMechSelectionItem(RimGeoMechView* view,
|
||||
size_t gridIndex,
|
||||
size_t cellIndex,
|
||||
cvf::Color3f color,
|
||||
int elementFace,
|
||||
const cvf::Vec3d& localIntersectionPoint)
|
||||
: m_view(view),
|
||||
m_gridIndex(gridIndex),
|
||||
m_cellIndex(cellIndex),
|
||||
m_color(color),
|
||||
m_elementFace(elementFace),
|
||||
m_localIntersectionPoint(localIntersectionPoint),
|
||||
m_hasIntersectionTriangle(false)
|
||||
: m_view(view)
|
||||
, m_gridIndex(gridIndex)
|
||||
, m_cellIndex(cellIndex)
|
||||
, m_color(color)
|
||||
, m_elementFace(elementFace)
|
||||
, m_hasIntersectionTriangle(false)
|
||||
, m_localIntersectionPoint(localIntersectionPoint)
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuGeoMechSelectionItem::RiuGeoMechSelectionItem(RimGeoMechView* view,
|
||||
size_t gridIndex,
|
||||
size_t cellIndex,
|
||||
cvf::Color3f color,
|
||||
int elementFace,
|
||||
const cvf::Vec3d& localIntersectionPoint,
|
||||
RiuGeoMechSelectionItem::RiuGeoMechSelectionItem(RimGeoMechView* view,
|
||||
size_t gridIndex,
|
||||
size_t cellIndex,
|
||||
cvf::Color3f color,
|
||||
int elementFace,
|
||||
const cvf::Vec3d& localIntersectionPoint,
|
||||
const std::array<cvf::Vec3f, 3>& intersectionTriangle)
|
||||
: m_view(view),
|
||||
m_gridIndex(gridIndex),
|
||||
m_cellIndex(cellIndex),
|
||||
m_color(color),
|
||||
m_elementFace(elementFace),
|
||||
m_localIntersectionPoint(localIntersectionPoint),
|
||||
m_hasIntersectionTriangle(true),
|
||||
m_intersectionTriangle(intersectionTriangle)
|
||||
: m_view(view)
|
||||
, m_gridIndex(gridIndex)
|
||||
, m_cellIndex(cellIndex)
|
||||
, m_color(color)
|
||||
, m_elementFace(elementFace)
|
||||
, m_hasIntersectionTriangle(true)
|
||||
, m_intersectionTriangle(intersectionTriangle)
|
||||
, m_localIntersectionPoint(localIntersectionPoint)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -105,12 +105,13 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuViewerCommands::RiuViewerCommands(RiuViewer* ownerViewer)
|
||||
: QObject(ownerViewer),
|
||||
m_viewer(ownerViewer),
|
||||
m_currentGridIdx(-1),
|
||||
m_currentCellIndex(-1),
|
||||
m_currentPickPositionInDomainCoords(cvf::Vec3d::UNDEFINED)
|
||||
RiuViewerCommands::RiuViewerCommands(RiuViewer* ownerViewer)
|
||||
: QObject(ownerViewer)
|
||||
, m_currentGridIdx(-1)
|
||||
, m_currentCellIndex(-1)
|
||||
, m_currentFaceIndex(cvf::StructGridInterface::NO_FACE)
|
||||
, m_currentPickPositionInDomainCoords(cvf::Vec3d::UNDEFINED)
|
||||
, m_viewer(ownerViewer)
|
||||
{
|
||||
{
|
||||
m_viewerEventHandlers.push_back(dynamic_cast<RicViewerEventInterface*>(RicIntersectionViewerEventHandler::instance()));
|
||||
|
@ -68,16 +68,12 @@ private:
|
||||
|
||||
bool handleOverlayItemPicking(int winPosX, int winPosY);
|
||||
|
||||
size_t m_currentGridIdx;
|
||||
size_t m_currentCellIndex;
|
||||
cvf::StructGridInterface::FaceType m_currentFaceIndex;
|
||||
cvf::Vec3d m_currentPickPositionInDomainCoords;
|
||||
|
||||
caf::PdmPointer<Rim3dView> m_reservoirView;
|
||||
|
||||
QPointer<RiuViewer> m_viewer;
|
||||
|
||||
private:
|
||||
size_t m_currentGridIdx;
|
||||
size_t m_currentCellIndex;
|
||||
cvf::StructGridInterface::FaceType m_currentFaceIndex;
|
||||
cvf::Vec3d m_currentPickPositionInDomainCoords;
|
||||
caf::PdmPointer<Rim3dView> m_reservoirView;
|
||||
QPointer<RiuViewer> m_viewer;
|
||||
std::vector<RicViewerEventInterface*> m_viewerEventHandlers;
|
||||
};
|
||||
|
||||
|
||||
|
@ -43,12 +43,12 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuWellAllocationPlot::RiuWellAllocationPlot(RimWellAllocationPlot* plotDefinition, QWidget* parent)
|
||||
: m_plotDefinition(plotDefinition),
|
||||
QFrame(parent)
|
||||
RiuWellAllocationPlot::RiuWellAllocationPlot(RimWellAllocationPlot* plotDefinition, QWidget* parent)
|
||||
: QFrame(parent)
|
||||
, m_plotDefinition(plotDefinition)
|
||||
{
|
||||
Q_ASSERT(m_plotDefinition);
|
||||
|
||||
|
||||
QVBoxLayout* mainLayout = new QVBoxLayout();
|
||||
this->setLayout(mainLayout);
|
||||
this->layout()->setMargin(0);
|
||||
|
@ -43,9 +43,10 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuWellPltPlot::RiuWellPltPlot(RimWellPltPlot* plotDefinition, QWidget* parent)
|
||||
: m_plotDefinition(plotDefinition),
|
||||
QFrame(parent)
|
||||
RiuWellPltPlot::RiuWellPltPlot(RimWellPltPlot* plotDefinition, QWidget* parent)
|
||||
: QFrame(parent)
|
||||
, m_plotDefinition(plotDefinition)
|
||||
|
||||
{
|
||||
Q_ASSERT(m_plotDefinition);
|
||||
|
||||
|
@ -43,9 +43,10 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuWellRftPlot::RiuWellRftPlot(RimWellRftPlot* plotDefinition, QWidget* parent)
|
||||
: m_plotDefinition(plotDefinition),
|
||||
QFrame(parent)
|
||||
RiuWellRftPlot::RiuWellRftPlot(RimWellRftPlot* plotDefinition, QWidget* parent)
|
||||
: QFrame(parent)
|
||||
, m_plotDefinition(plotDefinition)
|
||||
|
||||
{
|
||||
Q_ASSERT(m_plotDefinition);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user