void HYDROData_CalculationCase::RemoveRegions()
{
ClearReferenceObjects( DataTag_Region );
- myLab.FindChild( ChildTag_Region ).ForgetAllAttributes( true );
+ myLab.FindChild( DataTag_ChildRegion ).ForgetAllAttributes( true );
}
Handle(HYDROData_Region) HYDROData_CalculationCase::addNewRegion()
{
- TDF_Label aNewLab = myLab.FindChild( ChildTag_Region ).NewChild();
+ TDF_Label aNewLab = myLab.FindChild( DataTag_ChildRegion ).NewChild();
Handle(HYDROData_Region) aNewRegion =
Handle(HYDROData_Region)::DownCast( HYDROData_Iterator::CreateObject( aNewLab, KIND_REGION ) );
{
DataTag_First = HYDROData_Entity::DataTag_First + 100, ///< first tag, to reserve
DataTag_GeometryObject, ///< reference geometry objects
+ DataTag_ChildRegion, ///< child regions
DataTag_Region ///< reference regions
};
- /**
- * Enumeration of tags corresponding to the child sub-objects of object.
- */
- enum ChildTag
- {
- ChildTag_First = HYDROData_Entity::ChildTag_First + 100, ///< first tag, to reserve
- ChildTag_Region ///< child regions
- };
-
public:
DEFINE_STANDARD_RTTI(HYDROData_CalculationCase);
// ...
};
- /**
- * Enumeration of tags corresponding to the child sub-objects of object.
- */
- enum ChildTag
- {
- ChildTag_First = 0 ///< first tag, to reserve
- // ...
- };
-
public:
DEFINE_STANDARD_RTTI(HYDROData_Entity);
DataTag_Bathymetry, ///< reference bathymetry
};
- /**
- * Enumeration of tags corresponding to the child sub-objects of object.
- */
- enum ChildTag
- {
- ChildTag_First = HYDROData_Entity::ChildTag_First + 100, ///< first tag, to reserve
- };
-
public:
DEFINE_STANDARD_RTTI(HYDROData_Object);
void HYDROData_Region::RemoveZones()
{
ClearReferenceObjects( DataTag_Zone );
- myLab.FindChild( ChildTag_Zone ).ForgetAllAttributes( true );
+ myLab.FindChild( DataTag_ChildZone ).ForgetAllAttributes( true );
}
Handle(HYDROData_Zone) HYDROData_Region::addNewZone()
{
- TDF_Label aNewLab = myLab.FindChild( ChildTag_Zone ).NewChild();
+ TDF_Label aNewLab = myLab.FindChild( DataTag_ChildZone ).NewChild();
Handle(HYDROData_Zone) aNewZone =
Handle(HYDROData_Zone)::DownCast( HYDROData_Iterator::CreateObject( aNewLab, KIND_ZONE ) );
enum DataTag
{
DataTag_First = HYDROData_Entity::DataTag_First + 100, ///< first tag, to reserve
+ DataTag_ChildZone, ///< child zones
DataTag_Zone, ///< reference zones
};
- /**
- * Enumeration of tags corresponding to the child sub-objects of object.
- */
- enum ChildTag
- {
- ChildTag_First = HYDROData_Entity::ChildTag_First + 100, ///< first tag, to reserve
- ChildTag_Zone ///< child zones
- };
-
public:
DEFINE_STANDARD_RTTI(HYDROData_Region);