]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_ResultPrs.h
Salome HOME
Issue #3140: Modify Iso-lines of a shape presentation
[modules/shaper.git] / src / ModuleBase / ModuleBase_ResultPrs.h
index 84500eba65dfff600d2f6cbad61b76defbefa624..a93089e98dbca8b8c5e09686d4e5469410747554 100644 (file)
@@ -30,6 +30,7 @@
 #include <ViewerData_AISShape.hxx>
 #include <Standard_DefineHandle.hxx>
 #include <TopoDS_Compound.hxx>
+#include <Prs3d_IsoAspect.hxx>
 
 #include <QMap>
 
@@ -112,10 +113,28 @@ public:
   /// \return false if parameter is out of [0, 1]
   Standard_EXPORT bool setHiddenSubShapeTransparency(double theTransparency);
 
+  /// Returns the original shape of the presentation
   Standard_EXPORT TopoDS_Shape originalShape() const { return myOriginalShape; }
 
+  /// Returns True if the original shape is substituted by a corresponded shell
   Standard_EXPORT bool isSubstituted() const { return myIsSubstituted; }
 
+  /// Set number of Iso-lines
+  /// \param theU a number of U Iso-lines
+  /// \param theV a number of V Iso-lines
+  Standard_EXPORT void setIsolinesNumber(int theU, int theV) {
+    myUIsoAspect->SetNumber(theU); myVIsoAspect->SetNumber(theV);
+  }
+
+  /// Returns number of U Iso-lines
+  Standard_EXPORT int UIsoLines() const {
+    return myUIsoAspect->Number();
+  }
+
+  /// Returns number of V Iso-lines
+  Standard_EXPORT int VIsoLines() const {
+    return myVIsoAspect->Number();
+  }
 
   DEFINE_STANDARD_RTTIEXT(ModuleBase_ResultPrs, ViewerData_AISShape)
 
@@ -171,6 +190,9 @@ private:
   /// selection priority that will be added to the standard
   /// selection priority of the selection entity
   int myAdditionalSelectionPriority;
+
+  Handle(Prs3d_IsoAspect) myUIsoAspect;
+  Handle(Prs3d_IsoAspect) myVIsoAspect;
 };