]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelHighAPI/ModelHighAPI_Selection.h
Salome HOME
Added option to create Construction Point by intersection of line and plane.
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Selection.h
index 0be8642f78557c541dfe43b96d6d6ed0f2e2eec3..2a72733197c78190291cd789f8c0827845a054fe 100644 (file)
@@ -28,6 +28,12 @@ typedef std::pair<std::string, std::string> TypeSubShapeNamePair;
  */
 class ModelHighAPI_Selection
 {
+public:
+  enum VariantType {
+    VT_ResultSubShapePair,
+    VT_TypeSubShapeNamePair
+  };
+
 public:
   /// Constructor for result and sub-shape
   MODELHIGHAPI_EXPORT
@@ -49,8 +55,20 @@ public:
   MODELHIGHAPI_EXPORT
   virtual void appendToList(const std::shared_ptr<ModelAPI_AttributeSelectionList> & theAttribute) const;
 
+  /// \return variant type.
+  MODELHIGHAPI_EXPORT
+  virtual VariantType variantType() const;
+
+  /// \return pair of result and sub-shape.
+  MODELHIGHAPI_EXPORT
+  virtual ResultSubShapePair resultSubShapePair() const;
+
+  /// \return pair of sub-shape type and name.
+  MODELHIGHAPI_EXPORT
+  virtual TypeSubShapeNamePair typeSubShapeNamePair() const;
+
 private:
-  enum VariantType { VT_ResultSubShapePair, VT_TypeSubShapeNamePair } myVariantType;
+  VariantType myVariantType;
   ResultSubShapePair myResultSubShapePair;
   TypeSubShapeNamePair myTypeSubShapeNamePair;
 };