#2162 Context manager: Add pdmObject selection item

This commit is contained in:
Rebecca Cox 2017-11-29 14:01:25 +01:00
parent 4e66cb9b17
commit 8d99c99cb0
2 changed files with 33 additions and 1 deletions

View File

@ -230,3 +230,11 @@ RiuSimWellSelectionItem::RiuSimWellSelectionItem(RimSimWellInView* simwell,
m_branchIndex(m_branchIndex)
{
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RiuGeneralSelectionItem::RiuGeneralSelectionItem(caf::PdmObject* object)
: m_object(object)
{
}

View File

@ -20,6 +20,7 @@
#pragma once
#include "cafPdmPointer.h"
#include "cafPdmObject.h"
#include "cvfBase.h"
#include "cvfColor3.h"
@ -107,7 +108,8 @@ public:
ECLIPSE_SELECTION_OBJECT,
GEOMECH_SELECTION_OBJECT,
WELLPATH_SELECTION_OBJECT,
SIMWELL_SELECTION_OBJECT
SIMWELL_SELECTION_OBJECT,
GENERAL_SELECTION_OBJECT
};
public:
@ -238,3 +240,25 @@ public:
cvf::Vec3d m_domainCoord;
size_t m_branchIndex;
};
//==================================================================================================
//
//
//
//==================================================================================================
class RiuGeneralSelectionItem : public RiuSelectionItem
{
public:
RiuGeneralSelectionItem(caf::PdmObject* object);
virtual ~RiuGeneralSelectionItem() {};
virtual RiuSelectionType type() const
{
return GENERAL_SELECTION_OBJECT;
}
public:
caf::PdmObject* m_object;
};