LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyNCollection_Sequence0100TCollection_AsciiString.cc)
SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyNCollection_Sequence0100TCollection_AsciiString.cc)
+
+ LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_StricklerTable.cc)
+ SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_StricklerTable.cc)
ADD_CUSTOM_COMMAND(
OUTPUT ${_output}
return aSeq;
}
-bool HYDROData_StricklerTable::HasType( const TCollection_ExtendedString& theType ) const
+bool HYDROData_StricklerTable::HasType( const QString& theType ) const
{
Handle(TDataStd_NamedData) aMap = Map();
- return !aMap.IsNull() && aMap->HasReal( theType );
+ TCollection_ExtendedString aType = toExtString( theType );
+ return !aMap.IsNull() && aMap->HasReal( aType );
}
void HYDROData_StricklerTable::Clear()
HYDRODATA_EXPORT QStringList GetTypes() const;
HYDRODATA_EXPORT void GetCoefficientRange( double& theMin, double& theMax ) const;
-
- HYDRODATA_EXPORT bool HasType( const TCollection_ExtendedString& theType ) const;
+ HYDRODATA_EXPORT bool HasType( const QString& theType ) const;
HYDRODATA_EXPORT void Clear();
if ( anIsStream || anIsChannel || anIsDigue || anIsObstacle )
{
- theMenu->addAction( action( PolylineExtraction ) );
+ theMenu->addAction( action( PolylineExtractionId ) );
theMenu->addSeparator();
}
// Get range
Handle(HYDROData_StricklerTable) aTable;
- TColStd_SequenceOfExtendedString aTableTypes;
+ QStringList aTableTypes;
if ( isLandCoverColoringOn ) {
aTable = module()->getLandCoverColoringTable( aViewerId );
if ( !aTable.IsNull() ) {
QColor aColor = isLandCoverColoringOn ? aUndefinedColor : aLandCover->GetFillingColor();
if ( isLandCoverColoringOn && !aTable.IsNull() ) {
- TCollection_ExtendedString aStricklerType =
+ QString aStricklerType =
aLandCover->GetStricklerType().toLatin1().constData();
if ( aTable->HasType( aStricklerType ) ) {
HYDROData_Confluence.sip
HYDROData_River.sip
HYDROData_Stream.sip
+ HYDROData_StricklerTable.sip
HYDROData_Image.sip
HYDROData_Bathymetry.sip
HYDROData_ImmersibleZone.sip
HYDROData_Zone.sip
HYDROData_Region.sip
- HYDROData_StricklerTable.sip
HYDROData_CalculationCase.sip
HYDROData_Document.sip
HYDROData_Application.sip