if ( theObject.IsNull() )
return false;
- bool isCanBeColored = false;
- if ( theObject->IsKind( STANDARD_TYPE(HYDROData_LandCoverMap) ) ) {
- size_t anActiveViewId = HYDROGUI_Tool::GetActiveOCCViewId( theModule );
- isCanBeColored = !theModule->isLandCoversScalarMapModeOn( anActiveViewId );
- }
+ bool isCanBeColored =
+ theObject->IsKind( STANDARD_TYPE(HYDROData_Object) ) ||
+ theObject->IsKind( STANDARD_TYPE(HYDROData_IPolyline) );
- return isCanBeColored ||
- theObject->IsKind( STANDARD_TYPE(HYDROData_Object) ) ||
- theObject->IsKind( STANDARD_TYPE(HYDROData_IPolyline) );
+ return isCanBeColored;
}
void HYDROGUI_SetColorOp::startOperation()