* Returns the type of child altitude object.
* Reimplemented to create obstacle altitude object.
*/
- virtual ObjectKind getAltitudeObjectType() const;
+ HYDRODATA_EXPORT virtual ObjectKind getAltitudeObjectType() const;
protected:
HYDROData_ProfileUZ.sip
HYDROData_PolylineXY.sip
HYDROData_ArtificialObject.sip
+ HYDROData_Obstacle.sip
HYDROData_NaturalObject.sip
HYDROData_Image.sip
HYDROData_Bathymetry.sip
%Include HYDROData_ProfileUZ.sip
%Include HYDROData_PolylineXY.sip
%Include HYDROData_ArtificialObject.sip
+%Include HYDROData_Obstacle.sip
%Include HYDROData_NaturalObject.sip
%Include HYDROData_Image.sip
%Include HYDROData_PolylineXY.sip
// HYDROData_ArtificialObject sub-classes provide a unique kind ID.
switch ( sipCpp->GetKind() )
{
+ case KIND_OBSTACLE:
+ sipClass = sipClass_HYDROData_Obstacle;
+ break;
+
case KIND_UNKNOWN:
sipClass = sipClass_HYDROData_ArtificialObject;
break;
aRes = new HYDROData_CalculationCase( *dynamic_cast<HYDROData_CalculationCase*>( theObject ) );
break;
}
+ case KIND_OBSTACLE:
+ {
+ aRes = new HYDROData_Obstacle( *dynamic_cast<HYDROData_Obstacle*>( theObject ) );
+ break;
+ }
case KIND_REGION:
{
aRes = new HYDROData_Region( *dynamic_cast<HYDROData_Region*>( theObject ) );
sipClass = sipClass_HYDROData_CalculationCase;
break;
+ case KIND_OBSTACLE:
+ sipClass = sipClass_HYDROData_Obstacle;
+ break;
+
case KIND_REGION:
sipClass = sipClass_HYDROData_Region;
break;
/**
* Returns the kind of this object. Must be redefined in all objects of known type.
*/
- const ObjectKind GetKind() const;
+ virtual const ObjectKind GetKind() const;
/**
* Returns the name of this object.
*/
- QString GetName() const;
+ virtual QString GetName() const;
/**
* Updates the name of this object.
*/
- void SetName(const QString& theName);
+ virtual void SetName(const QString& theName);
/**
* Updates object state.
*/
- void Update();
+ virtual void Update();
/**
* Checks is object exists in the data structure.
// HYDROData_Object sub-classes provide a unique kind ID.
switch ( sipCpp->GetKind() )
{
+ case KIND_OBSTACLE:
+ sipClass = sipClass_HYDROData_Obstacle;
+ break;
+
case KIND_UNKNOWN:
sipClass = sipClass_HYDROData_Object;
break;