Salome HOME
The "MustBeUpdated" flag is moved to base data object class and implemented for calcu...
[modules/hydro.git] / src / HYDROData / HYDROData_Polyline.h
index b5ce157efc26ef3f4c4113b3ac79d5882ee3d196..78f8736efaf44a97d8a7e7f8ccad45d298af2546 100755 (executable)
@@ -48,7 +48,6 @@ protected:
     DataTag_SectionsClosed,
     DataTag_SectionsSize,
     DataTag_SectionsType,
-    DataTag_Wire,
     DataTag_ZValue
   };
 
@@ -60,6 +59,16 @@ public:
    */
   HYDRODATA_EXPORT virtual const ObjectKind GetKind() const {return KIND_POLYLINE;}
 
+  /**
+   * Returns the top shape of the object.
+   */
+  HYDRODATA_EXPORT virtual TopoDS_Shape GetTopShape() const;
+
+  /**
+   * Returns the 3d shape of the object.
+   */
+  HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const;
+
   /**
    * Dump object to Python script representation.
    */
@@ -75,56 +84,47 @@ public:
    * Replace current polyline data by new sections list
    * \param theSections the sections list
    */
-  HYDRODATA_EXPORT void setPolylineData( const PolylineData& theSections );
+  HYDRODATA_EXPORT void SetPolylineData( const PolylineData& theSections );
 
   /**
    * Return polyline data
    * \return polyline section list
    */
-  HYDRODATA_EXPORT PolylineData getPolylineData() const;
+  HYDRODATA_EXPORT PolylineData GetPolylineData() const;
    
   /**
    * Returns true if polyline is closed
    */
-  HYDRODATA_EXPORT bool isClosed() const;
+  HYDRODATA_EXPORT bool IsClosed() const;
 
   /**
    * Return polyline dimension
    * \return polyline dimension (2 or 3)
    */
-  HYDRODATA_EXPORT int getDimension() const;
+  HYDRODATA_EXPORT int GetDimension() const;
 
   /**
    * Set polyline dimension (2 or 3)
    * \param theDimension the polyline dimension
    */
-  HYDRODATA_EXPORT void setDimension( int theDimension );
+  HYDRODATA_EXPORT void SetDimension( int theDimension );
 
   /**
    * Remove all sections from polyline
    */
-  HYDRODATA_EXPORT void removeAll();
+  HYDRODATA_EXPORT void RemoveAll();
 
   /**
    * Returns the painter path.
    * Note: currently only the first section of the polyline data is taken into account.
    */
-  HYDRODATA_EXPORT QPainterPath painterPath() const;
+  HYDRODATA_EXPORT QPainterPath GetPainterPath() const;
 
-  HYDRODATA_EXPORT void SetZValue( const double theZValue );
+  HYDRODATA_EXPORT void   SetZValue( const double theZValue );
   HYDRODATA_EXPORT double ZValue() const;
 
-  /**
-   * Sets the wire contour of the object.
-   */
-  HYDRODATA_EXPORT void SetWire( const TopoDS_Wire& theWire );
-
-  /**
-   * Returns the wire contour of the object.
-   */
-  HYDRODATA_EXPORT TopoDS_Wire Wire() const;
-
 protected:
+
   /**
    * Update the wire contour on the basis of the polyline data.
    */