const ObjectKind KIND_OBSTACLE_ALTITUDE;
const ObjectKind KIND_STRICKLER_TABLE;
const ObjectKind KIND_LAND_COVER_MAP;
+const ObjectKind KIND_BC_POLYGON;
class HYDROData_Entity
{
case KIND_SHAPES_GROUP:
sipClass = sipClass_HYDROData_ShapesGroup;
break;
-
+
case KIND_SPLIT_GROUP:
sipClass = sipClass_HYDROData_SplitShapesGroup;
break;
sipClass = sipClass_HYDROData_LandCoverMap;
break;
+ case KIND_BC_POLYGON:
+ sipClass = sipClass_HYDROData_BCPolygon;
+ break;
+
case KIND_UNKNOWN:
sipClass = sipClass_HYDROData_Entity;
break;
*/
virtual bool CanBeUpdated() const;
-
+
/**
* Checks is object exists in the data structure.
* \returns true is object is not exists in the data model
* Returns father object. For object created under root document label
* this method always return NULL object.
*/
- HYDROData_Entity GetFatherObject() const [Handle_HYDROData_Entity ()];
+ HYDROData_Entity GetFatherObject() const [opencascade::handle<HYDROData_Entity> ()];
%MethodCode
Handle(HYDROData_Entity) aFather;
-
+
Py_BEGIN_ALLOW_THREADS
- aFather = sipSelfWasArg ? sipCpp->HYDROData_Entity::GetFatherObject() :
+ aFather = sipSelfWasArg ? sipCpp->HYDROData_Entity::GetFatherObject() :
sipCpp->GetFatherObject();
Py_END_ALLOW_THREADS
-
+
sipRes = createPointer( aFather );
%End
/**
* Returns the z-level for object presentation, -1 if no z-level.
*/
- virtual bool GetZLevel( int& theLevel ) const;
+ virtual bool GetZLevel( int& theLevel ) const [bool ( Standard_Integer& )];
/**
* Set the z-level for object presentation.
*/
virtual void RemoveZLevel();
+ void SetColor( const QColor& theColor, const int theTag = 0 );
protected:
/**
- * Creates new object in the internal data structure. Use higher level objects
+ * Creates new object in the internal data structure. Use higher level objects
* to create objects with real content.
*/
HYDROData_Entity( Geometry );
* Destructs properties of the object and object itself, removes it from the document.
*/
virtual ~HYDROData_Entity();
-
+
};