return QColor( Qt::green );
}
-void HYDROData_ImmersibleZone::SetFillingColor( const QColor& theColor )
-{
- return SetColor( theColor, DataTag_FillingColor );
-}
-
-QColor HYDROData_ImmersibleZone::GetFillingColor() const
-{
- return GetColor( DefaultFillingColor(), DataTag_FillingColor );
-}
-
QColor HYDROData_ImmersibleZone::DefaultBorderColor()
{
return QColor( Qt::transparent );
}
-void HYDROData_ImmersibleZone::SetBorderColor( const QColor& theColor )
-{
- return SetColor( theColor, DataTag_BorderColor );
-}
-
-QColor HYDROData_ImmersibleZone::GetBorderColor() const
-{
- return GetColor( DefaultBorderColor(), DataTag_BorderColor );
-}
-
void HYDROData_ImmersibleZone::SetPolyline( const Handle(HYDROData_Polyline)& thePolyline )
{
SetReferenceObject( thePolyline, DataTag_Polyline );
enum DataTag
{
DataTag_First = HYDROData_NaturalObject::DataTag_First + 100, ///< first tag, to reserve
- DataTag_FillingColor, ///< filling color of immersible zone
- DataTag_BorderColor, ///< border color of immersible zone
DataTag_Polyline, ///< reference polyline
};
*/
HYDRODATA_EXPORT virtual TopoDS_Shape GetShape3D() const;
-
/**
* Returns default filling color for new zone.
*/
HYDRODATA_EXPORT static QColor DefaultFillingColor();
- /**
- * Sets filling color for zone.
- */
- HYDRODATA_EXPORT virtual void SetFillingColor( const QColor& theColor );
-
- /**
- * Returns filling color of zone.
- */
- HYDRODATA_EXPORT virtual QColor GetFillingColor() const;
-
-
/**
* Returns default border color for new zone.
*/
HYDRODATA_EXPORT static QColor DefaultBorderColor();
- /**
- * Sets border color for zone.
- */
- HYDRODATA_EXPORT virtual void SetBorderColor( const QColor& theColor );
-
- /**
- * Returns border color of zone.
- */
- HYDRODATA_EXPORT virtual QColor GetBorderColor() const;
-
-
/**
* Sets reference polyline object for zone.
*/
#include <TopoDS_Shape.hxx>
+#include <QColor>
+
IMPLEMENT_STANDARD_HANDLE(HYDROData_Object,HYDROData_Entity)
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Object,HYDROData_Entity)
return TopoDS_Shape();
}
+void HYDROData_Object::SetFillingColor( const QColor& theColor )
+{
+ return SetColor( theColor, DataTag_FillingColor );
+}
+
+QColor HYDROData_Object::GetFillingColor() const
+{
+ return GetColor( DefaultFillingColor(), DataTag_FillingColor );
+}
+
+void HYDROData_Object::SetBorderColor( const QColor& theColor )
+{
+ return SetColor( theColor, DataTag_BorderColor );
+}
+
+QColor HYDROData_Object::GetBorderColor() const
+{
+ return GetColor( DefaultBorderColor(), DataTag_BorderColor );
+}
+
+QColor HYDROData_Object::DefaultFillingColor()
+{
+ return QColor( Qt::yellow );
+}
+
+QColor HYDROData_Object::DefaultBorderColor()
+{
+ return QColor( Qt::transparent );
+}
\ No newline at end of file
DataTag_TopShape,
DataTag_Shape3D,
DataTag_Bathymetry, ///< reference bathymetry
+ DataTag_FillingColor, ///< filling color of geometrical object
+ DataTag_BorderColor ///< border color of geometrical object
};
public:
*/
HYDRODATA_EXPORT virtual void RemoveBathymetry();
+ /**
+ * Sets filling color for object.
+ */
+ HYDRODATA_EXPORT virtual void SetFillingColor( const QColor& theColor );
+
+ /**
+ * Returns filling color of object.
+ */
+ HYDRODATA_EXPORT virtual QColor GetFillingColor() const;
+
+ /**
+ * Sets border color for object.
+ */
+ HYDRODATA_EXPORT virtual void SetBorderColor( const QColor& theColor );
+
+ /**
+ * Returns border color of object.
+ */
+ HYDRODATA_EXPORT virtual QColor GetBorderColor() const;
+
+ /**
+ * Returns default filling color for new object.
+ */
+ HYDRODATA_EXPORT static QColor DefaultFillingColor();
+
+ /**
+ * Returns default border color for new object.
+ */
+ HYDRODATA_EXPORT static QColor DefaultBorderColor();
protected: