#include <Standard_DefineHandle.hxx>
#include <StdSelect_BRepOwner.hxx>
+#include <QMap>
+
DEFINE_STANDARD_HANDLE(ModuleBase_BRepOwner, StdSelect_BRepOwner)
/**
*/
class ModuleBase_ResultPrs: public ViewerData_AISShape
{
+public:
+ enum SelectionModes {
+ Sel_Result = TopAbs_SHAPE + 1 /// it should be combined with Compsolid results, so it is not
+ /// the Shape type. It is not defined in XML as compound type
+ /// because this type is processed as shape with compounds inside.
+ };
+
public:
/// Constructor
/// \param theResult a result object
/// Returns result object
Standard_EXPORT ResultPtr getResult() const { return myResult; }
+ /// Returns selection priorities that will be added to created selection owner
+ /// \return integer value
+ Standard_EXPORT int getAdditionalSelectionPriority() const { return myAdditionalSelectionPriority; }
+
+ /// Appends a special priority for the mode of selection
+ /// \param theSelectionMode a mode of selection, used in ComputeSelection
+ /// \param thePriority a new priority value
+ Standard_EXPORT void setAdditionalSelectionPriority(const int thePriority);
+
DEFINE_STANDARD_RTTI(ModuleBase_ResultPrs)
protected:
/// Redefinition of virtual function
/// Original shape of the result object
TopoDS_Shape myOriginalShape;
+ /// selection priority that will be added to the standard selection priority of the selection entity
+ int myAdditionalSelectionPriority;
};