{
%ConvertToSubClassCode
- if ( !Handle(HYDROData_Polyline)::DownCast( sipCpp ).IsNull() )
- sipClass = sipClass_HYDROData_Polyline;
- else
- sipClass = NULL;
+ switch ( sipCpp->GetKind() )
+ {
+ case KIND_POLYLINE:
+ sipClass = sipClass_HYDROData_Polyline;
+ break;
+
+ default:
+ // We don't recognise the type.
+ sipClass = NULL;
+ }
%End
public:
- const ObjectKind GetKind() const;
+ typedef QList<PolylineSection> PolylineData;
public:
* Replace current polyline data by new sections list
* \param theSections the sections list
*/
- void setPolylineData( const QList<PolylineSection>& theSections );
+ void SetPolylineData( const PolylineData& theSections );
/**
* Return polyline data
* \return polyline section list
*/
- QList<PolylineSection> getPolylineData();
+ PolylineData GetPolylineData();
/**
* Return polyline dimension
* \return polyline dimension (2 or 3)
*/
- int getDimension() const;
+ int GetDimension() const;
/**
* Set polyline dimension (2 or 3)
* \param theDimension the polyline dimension
*/
- void setDimension( int theDimension );
+ void SetDimension( int theDimension );
/**
* Remove all sections from polyline
*/
- void removeAll();
+ void RemoveAll();
/**
* Returns the painter path. The painter path is construct by lines
*/
- QPainterPath painterPath();
+ QPainterPath GetPainterPath();
+
+
+ /**
+ * Sets the z value for polyline.
+ */
+ void SetZValue( const double theZValue );
+
+ /**
+ * Returns the z value for polyline.
+ */
+ double ZValue() const;
protected: