mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
System : Reorder initialization order to match declaration order
This commit is contained in:
@@ -48,8 +48,9 @@
|
|||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RiuFlowCharacteristicsPlot::RiuFlowCharacteristicsPlot(RimFlowCharacteristicsPlot* plotDefinition, QWidget* parent)
|
RiuFlowCharacteristicsPlot::RiuFlowCharacteristicsPlot(RimFlowCharacteristicsPlot* plotDefinition, QWidget* parent)
|
||||||
: m_plotDefinition(plotDefinition),
|
: QFrame(parent)
|
||||||
QFrame(parent)
|
, m_plotDefinition(plotDefinition)
|
||||||
|
|
||||||
{
|
{
|
||||||
Q_ASSERT(m_plotDefinition);
|
Q_ASSERT(m_plotDefinition);
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,9 @@
|
|||||||
class FileListModel: public QStringListModel
|
class FileListModel: public QStringListModel
|
||||||
{
|
{
|
||||||
public:
|
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,
|
RiuGeoMechSelectionItem::RiuGeoMechSelectionItem(RimGeoMechView* view,
|
||||||
size_t gridIndex,
|
size_t gridIndex,
|
||||||
size_t cellIndex,
|
size_t cellIndex,
|
||||||
cvf::Color3f color,
|
cvf::Color3f color,
|
||||||
int elementFace,
|
int elementFace,
|
||||||
const cvf::Vec3d& localIntersectionPoint)
|
const cvf::Vec3d& localIntersectionPoint)
|
||||||
: m_view(view),
|
: m_view(view)
|
||||||
m_gridIndex(gridIndex),
|
, m_gridIndex(gridIndex)
|
||||||
m_cellIndex(cellIndex),
|
, m_cellIndex(cellIndex)
|
||||||
m_color(color),
|
, m_color(color)
|
||||||
m_elementFace(elementFace),
|
, m_elementFace(elementFace)
|
||||||
m_localIntersectionPoint(localIntersectionPoint),
|
, m_hasIntersectionTriangle(false)
|
||||||
m_hasIntersectionTriangle(false)
|
, m_localIntersectionPoint(localIntersectionPoint)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RiuGeoMechSelectionItem::RiuGeoMechSelectionItem(RimGeoMechView* view,
|
RiuGeoMechSelectionItem::RiuGeoMechSelectionItem(RimGeoMechView* view,
|
||||||
size_t gridIndex,
|
size_t gridIndex,
|
||||||
size_t cellIndex,
|
size_t cellIndex,
|
||||||
cvf::Color3f color,
|
cvf::Color3f color,
|
||||||
int elementFace,
|
int elementFace,
|
||||||
const cvf::Vec3d& localIntersectionPoint,
|
const cvf::Vec3d& localIntersectionPoint,
|
||||||
const std::array<cvf::Vec3f, 3>& intersectionTriangle)
|
const std::array<cvf::Vec3f, 3>& intersectionTriangle)
|
||||||
: m_view(view),
|
: m_view(view)
|
||||||
m_gridIndex(gridIndex),
|
, m_gridIndex(gridIndex)
|
||||||
m_cellIndex(cellIndex),
|
, m_cellIndex(cellIndex)
|
||||||
m_color(color),
|
, m_color(color)
|
||||||
m_elementFace(elementFace),
|
, m_elementFace(elementFace)
|
||||||
m_localIntersectionPoint(localIntersectionPoint),
|
, m_hasIntersectionTriangle(true)
|
||||||
m_hasIntersectionTriangle(true),
|
, m_intersectionTriangle(intersectionTriangle)
|
||||||
m_intersectionTriangle(intersectionTriangle)
|
, m_localIntersectionPoint(localIntersectionPoint)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -106,11 +106,12 @@
|
|||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RiuViewerCommands::RiuViewerCommands(RiuViewer* ownerViewer)
|
RiuViewerCommands::RiuViewerCommands(RiuViewer* ownerViewer)
|
||||||
: QObject(ownerViewer),
|
: QObject(ownerViewer)
|
||||||
m_viewer(ownerViewer),
|
, m_currentGridIdx(-1)
|
||||||
m_currentGridIdx(-1),
|
, m_currentCellIndex(-1)
|
||||||
m_currentCellIndex(-1),
|
, m_currentFaceIndex(cvf::StructGridInterface::NO_FACE)
|
||||||
m_currentPickPositionInDomainCoords(cvf::Vec3d::UNDEFINED)
|
, m_currentPickPositionInDomainCoords(cvf::Vec3d::UNDEFINED)
|
||||||
|
, m_viewer(ownerViewer)
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
m_viewerEventHandlers.push_back(dynamic_cast<RicViewerEventInterface*>(RicIntersectionViewerEventHandler::instance()));
|
m_viewerEventHandlers.push_back(dynamic_cast<RicViewerEventInterface*>(RicIntersectionViewerEventHandler::instance()));
|
||||||
|
|||||||
@@ -68,16 +68,12 @@ private:
|
|||||||
|
|
||||||
bool handleOverlayItemPicking(int winPosX, int winPosY);
|
bool handleOverlayItemPicking(int winPosX, int winPosY);
|
||||||
|
|
||||||
size_t m_currentGridIdx;
|
private:
|
||||||
size_t m_currentCellIndex;
|
size_t m_currentGridIdx;
|
||||||
cvf::StructGridInterface::FaceType m_currentFaceIndex;
|
size_t m_currentCellIndex;
|
||||||
cvf::Vec3d m_currentPickPositionInDomainCoords;
|
cvf::StructGridInterface::FaceType m_currentFaceIndex;
|
||||||
|
cvf::Vec3d m_currentPickPositionInDomainCoords;
|
||||||
caf::PdmPointer<Rim3dView> m_reservoirView;
|
caf::PdmPointer<Rim3dView> m_reservoirView;
|
||||||
|
QPointer<RiuViewer> m_viewer;
|
||||||
QPointer<RiuViewer> m_viewer;
|
|
||||||
|
|
||||||
std::vector<RicViewerEventInterface*> m_viewerEventHandlers;
|
std::vector<RicViewerEventInterface*> m_viewerEventHandlers;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -44,8 +44,8 @@
|
|||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RiuWellAllocationPlot::RiuWellAllocationPlot(RimWellAllocationPlot* plotDefinition, QWidget* parent)
|
RiuWellAllocationPlot::RiuWellAllocationPlot(RimWellAllocationPlot* plotDefinition, QWidget* parent)
|
||||||
: m_plotDefinition(plotDefinition),
|
: QFrame(parent)
|
||||||
QFrame(parent)
|
, m_plotDefinition(plotDefinition)
|
||||||
{
|
{
|
||||||
Q_ASSERT(m_plotDefinition);
|
Q_ASSERT(m_plotDefinition);
|
||||||
|
|
||||||
|
|||||||
@@ -44,8 +44,9 @@
|
|||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RiuWellPltPlot::RiuWellPltPlot(RimWellPltPlot* plotDefinition, QWidget* parent)
|
RiuWellPltPlot::RiuWellPltPlot(RimWellPltPlot* plotDefinition, QWidget* parent)
|
||||||
: m_plotDefinition(plotDefinition),
|
: QFrame(parent)
|
||||||
QFrame(parent)
|
, m_plotDefinition(plotDefinition)
|
||||||
|
|
||||||
{
|
{
|
||||||
Q_ASSERT(m_plotDefinition);
|
Q_ASSERT(m_plotDefinition);
|
||||||
|
|
||||||
|
|||||||
@@ -44,8 +44,9 @@
|
|||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RiuWellRftPlot::RiuWellRftPlot(RimWellRftPlot* plotDefinition, QWidget* parent)
|
RiuWellRftPlot::RiuWellRftPlot(RimWellRftPlot* plotDefinition, QWidget* parent)
|
||||||
: m_plotDefinition(plotDefinition),
|
: QFrame(parent)
|
||||||
QFrame(parent)
|
, m_plotDefinition(plotDefinition)
|
||||||
|
|
||||||
{
|
{
|
||||||
Q_ASSERT(m_plotDefinition);
|
Q_ASSERT(m_plotDefinition);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user