MCPcopy Create free account
hub / github.com/MITK/MITK / GetIntProperty

Method GetIntProperty

Modules/DICOM/src/mitkDICOMImageBlockDescriptor.cpp:418–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418int mitk::DICOMImageBlockDescriptor::GetIntProperty( const std::string& key, int defaultValue ) const
419{
420 this->UpdateImageDescribingProperties();
421 IntProperty::ConstPointer intProp = dynamic_cast<IntProperty*>( this->GetProperty( key ) );
422 if ( intProp.IsNotNull() )
423 {
424 return intProp->GetValue();
425 }
426 else
427 {
428 return defaultValue;
429 }
430}
431
432double mitk::DICOMImageBlockDescriptor::stringtodouble( const std::string& str ) const
433{

Callers 1

GetNumberOfTimeStepsMethod · 0.45

Calls 4

GetPropertyMethod · 0.95
IsNotNullMethod · 0.80
GetValueMethod · 0.45

Tested by

no test coverage detected