HYDROData_Polyline3D::HYDROData_Polyline3D()
-: HYDROData_Object()
+: HYDROData_Object( Geom_3d )
{
}
{
}
-QStringList HYDROData_Polyline3D::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
+QStringList HYDROData_Polyline3D::DumpToPython( const QString& thePyScriptPath,
+ MapOfTreatedObjects& theTreatedObjects ) const
{
QStringList aResList = dumpObjectCreation( theTreatedObjects );
QString aPolylineName = GetObjPyName();
Handle(HYDROData_PolylineXY) aRefPolyline = GetPolylineXY();
- setPythonReferenceObject( theTreatedObjects, aResList, aRefPolyline, "SetPolylineXY" );
+ setPythonReferenceObject( thePyScriptPath, theTreatedObjects, aResList, aRefPolyline, "SetPolylineXY" );
Handle(HYDROData_ProfileUZ) aRefProfileUZ = GetProfileUZ();
if ( !aRefProfileUZ.IsNull() )
{
Handle(HYDROData_Profile) aProfile =
Handle(HYDROData_Profile)::DownCast( aRefProfileUZ->GetFatherObject() );
- if ( checkObjectPythonDefinition( theTreatedObjects, aResList, aProfile ) )
+ if ( checkObjectPythonDefinition( thePyScriptPath, theTreatedObjects, aResList, aProfile ) )
{
QString aProfileName = aProfile->GetObjPyName();
if ( !aProfileName.isEmpty() )
{
Handle(HYDROData_Profile) aProfile =
Handle(HYDROData_Profile)::DownCast( aChildProfileUZ->GetFatherObject() );
- if ( checkObjectPythonDefinition( theTreatedObjects, aResList, aProfile ) )
+ if ( checkObjectPythonDefinition( thePyScriptPath, theTreatedObjects, aResList, aProfile ) )
{
QString aProfileName = aProfile->GetObjPyName();
if ( !aProfileName.isEmpty() )
}
}
- setPythonReferenceObject( theTreatedObjects, aResList, aRefBathymetry, "SetAltitudeObject" );
+ setPythonReferenceObject( thePyScriptPath, theTreatedObjects, aResList, aRefBathymetry, "SetAltitudeObject" );
}
}
updateChildProfilePoints();
// Indicate model of the need to update the polyline presentation
- SetToUpdate( true );
+ Changed( Geom_2d );
return true;
}
ClearReferenceObjects( DataTag_PolylineXY );
// Indicate model of the need to update the polyline presentation
- SetToUpdate( true );
+ Changed( Geom_2d );
}
bool HYDROData_Polyline3D::SetProfileUZ( const Handle(HYDROData_ProfileUZ)& theProfile )
RemoveAltitudeObject();
// Indicate model of the need to update the polyline presentation
- SetToUpdate( true );
+ Changed( Geom_Z );
return true;
}
ClearReferenceObjects( DataTag_ProfileUZ );
// Indicate model of the need to update the polyline presentation
- SetToUpdate( true );
+ Changed( Geom_Z );
}
bool HYDROData_Polyline3D::SetAltitudeObject(