+ /**
+ * Returns default filling color for new obstacle.
+ */
+ HYDRODATA_EXPORT static QColor DefaultFillingColor();
+
+ /**
+ * Returns default border color for new obstacle.
+ */
+ HYDRODATA_EXPORT static QColor DefaultBorderColor();
+
+
+ /**
+ * Sets the 3d shape of the object.
+ */
+ HYDRODATA_EXPORT virtual void SetShape3D( const TopoDS_Shape& theShape );
+
+public:
+
+ /**
+ * Imports shape from file containing geometrical object and sets this
+ * shape as the obstacle shape.
+ * The supported file types:
+ * - BREP
+ * - IGES
+ * - STEP
+ * - ACIS
+ * \param theFilePath the path to file
+ * \return \c true if file has been successfully read
+ */
+ HYDRODATA_EXPORT virtual bool ImportFromFile( const QString& theFilePath );
+
+ /**
+ * Stores the file path of the imported file.
+ * \param theFilePath file path
+ */
+ HYDRODATA_EXPORT void SetFilePath(const QString& theFilePath);
+
+ /**
+ * Returns the imported file path.
+ */
+ HYDRODATA_EXPORT QString GetFilePath() const;
+
+
+ /**
+ * Imports shape from IOR.
+ * \param theIOR the IOR of Geom object
+ * \return \c true if shape has been successfully imported
+ */
+ HYDRODATA_EXPORT virtual bool ImportFromGeomIOR( const TCollection_AsciiString& theIOR );
+
+ /**
+ * Stores the study entry of the imported GEOM object.
+ * \param theEntry GEOM object entry
+ */
+ HYDRODATA_EXPORT void SetGeomObjectEntry( const TCollection_AsciiString& theEntry );
+
+ /**
+ * Returns the imported GEOM object entry.
+ */
+ HYDRODATA_EXPORT TCollection_AsciiString GetGeomObjectEntry() const;
+
+
+ /**
+ * Translate the obstacle to the given distance.
+ */
+ HYDRODATA_EXPORT void Translate( const double theDx,
+ const double theDy,
+ const double theDz );
+
+protected:
+
+ /**
+ * Returns default filling color for new object.
+ */
+ HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
+
+ /**
+ * Returns default border color for new object.
+ */
+ HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
+
+ /**
+ * Returns the type of child altitude object.
+ * Reimplemented to create obstacle altitude object.
+ */
+ HYDRODATA_EXPORT virtual ObjectKind getAltitudeObjectType() const;
+
+private:
+
+ /**
+ * Imports shape from the BREP file.
+ * \param theFilePath the path to file
+ * \return shape as TopoDS_Shape (null shape if import was failed)
+ */
+ TopoDS_Shape ImportBREP( const QString& theFilePath ) const;
+
+ /**
+ * Imports shape from the IGES file.
+ * \param theFilePath the path to file
+ * \return shape as TopoDS_Shape (null shape if import was failed)
+ */
+ TopoDS_Shape ImportIGES( const QString& theFilePath ) const;
+
+ /**
+ * Imports shape from the STEP file.
+ * \param theFilePath the path to file
+ * \return shape as TopoDS_Shape (null shape if import was failed)
+ */
+ TopoDS_Shape ImportSTEP( const QString& theFilePath ) const;
+
+ /**
+ * Create all necessary child group objects.
+ */
+ void createGroupObjects();
+
+ /**
+ * Sets the translation coefficients.
+ */
+ void setTranslation( const double theDx, const double theDy, const double theDz );
+
+ /**
+ * Returns the translation coefficients.
+ */
+ bool getTranslation( double& theDx, double& theDy, double& theDz ) const;
+