const ObjectKind KIND_ARTIFICIAL_OBJECT = 19;
const ObjectKind KIND_NATURAL_OBJECT = 20;
const ObjectKind KIND_DUMMY_3D = 21;
-const ObjectKind KIND_LAST = KIND_DUMMY_3D;
+const ObjectKind KIND_SHAPES_GROUP = 22;
+const ObjectKind KIND_SPLITTED_GROUP = 23;
+const ObjectKind KIND_STREAM_ALTITUDE = 24;
+const ObjectKind KIND_OBSTACLE_ALTITUDE = 25;
+const ObjectKind KIND_LAST = KIND_OBSTACLE_ALTITUDE;
DEFINE_STANDARD_HANDLE(HYDROData_Entity, MMgt_TShared)
*/
HYDRODATA_EXPORT virtual bool CanRemove();
- /**
- * Returns unique integer identifier of the object (may be used for ordering of objects)
- */
- HYDRODATA_EXPORT inline int ID() const { return myLab.Tag(); }
-
/**
* Copies all properties of this to the destinated object.
* Objects must be the same type.
* \param theDestination initialized object (from any document) - target of copying
*/
- HYDRODATA_EXPORT void CopyTo( Handle_HYDROData_Entity theDestination ) const;
+ HYDRODATA_EXPORT void CopyTo( const Handle(HYDROData_Entity)& theDestination ) const;
/**
* Returns the label of this object.
QStringList& theScript,
const Handle(HYDROData_Entity)& theRefObject,
const QString& theMethod ) const;
+
+ /**
+ * Dump the initial object creation to a Python script.
+ * You should call it from DumpToPython implementation before
+ * dumping fields of the object.
+ */
+ QStringList dumpObjectCreation( MapOfTreatedObjects& theTreatedObjects ) const;
+
+ /**
+ * Returns an object type name as a string for dumping to Python.
+ */
+ QString HYDROData_Entity::getPyTypeID() const;
+
protected:
Handle(TDataStd_ReferenceList) getReferenceList( const int theTag,