Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Go to the source code of this file.
Macros | |
#define | mitkThrow() |
#define | mitkReThrow(mitkexception) |
#define | mitkThrowException(classname) |
#define | mitkExceptionClassMacro(ClassName, SuperClassName) |
#define mitkExceptionClassMacro | ( | ClassName, | |
SuperClassName | |||
) |
Class macro for MITK exception classes. All MITK exception classes should derive from MITK::Exception.
Definition at line 66 of file mitkExceptionMacro.h.
#define mitkReThrow | ( | mitkexception | ) |
The rethrow macro is used to rethrow an existing exception. The rethrow information (file,line of code) is then additionally stored in the exception. To check if an exception was rethrown you can use the methods GetNumberOfRethrows() and GetRethrowData().
Example usage: try { //some code that throws an exception } catch(mitk::Exception e) { //here we want to rethrow the exception mitkReThrow(e) << "Message that will be appended to the exception (optional)"; }
Definition at line 49 of file mitkExceptionMacro.h.
Referenced by mitk::USImage::USImage().
#define mitkThrow | ( | ) |
The exception macro is used to throw an exception (i.e., usually a condition that results in program failure).
Example usage looks like: mitkThrow() << "this is error info";
Definition at line 31 of file mitkExceptionMacro.h.
Referenced by _mitkItkPictureWrite(), _mitkItkPictureWriteComposite(), AccessItkOtsuFilter(), QmitkIGTLStreamingManagementWidget::AdaptGUIToState(), QmitkIGTLDeviceSourceManagementWidget::AdaptGUIToState(), QmitkIGTLDeviceCommandWidget::AdaptGUIToState(), QmitkIGTLDeviceSetupConnectionWidget::AdaptGUIToState(), mitk::LabelSetImage::AddLabelSetToLayer(), mitk::NodeDisplacementFilter::AddNode(), mitk::ArbitraryTimeGeometry::AppendTimeStep(), mitk::ConfigurationHolder::AsBool(), mitk::ConfigurationHolder::AsDouble(), mitk::ConfigurationHolder::AsInt(), mitk::ConfigurationHolder::AsString(), mitk::ConfigurationHolder::AsStringVector(), mitk::ConfigurationHolder::AsUnsignedInt(), itk::DiffusionKurtosisReconstructionImageFilter< TInputPixelType, TOutputPixelType >::BeforeThreadedGenerateData(), mitk::Surface::CalculateBoundingBox(), mitk::ImageMappingHelper::canRefineGeometry(), mitk::ImagePixelAccessor< TPixel, VDimension >::CheckData(), mitk::NodePredicateDataProperty::CheckNode(), mitk::TimeFramesRegistrationHelper::CheckValidInputs(), mitk::LabelSetImage::ClearBuffer(), mitk::OclImageFormats::CollectAvailableFormats(), mitk::CovarianceMatrixCalculator::ComputeCovarianceMatrices(), QmitkC3jsWidget::ComputeIntensityProfile(), mitk::ImageStatisticsCalculator::ComputeStatistics(), mitk::LabelSetImage::Concatenate(), mitk::ConvertCompositePixelValueToString(), mitk::Surface::CopyInformation(), mitk::DiffusionImageCorrectionFilter::CorrectDirections(), mitk::LabelSetImage::CreateLabelMask(), mitk::DicomSeriesReader::CreateMoreUniqueSeriesIdentifier(), mitk::SurfaceToSurfaceFilter::CreateOutputForInput(), mitk::USTelemedProbesControls::CreateProbesCollection(), mitk::USTelemedProbesControls::CreateProbesSet(), mitk::IOUtil::CreateTemporaryDirectory(), mitk::IOUtil::CreateTemporaryFile(), mitk::LevelWindowManager::DataStorageAddedNode(), mitk::LevelWindowManager::DataStorageRemovedNode(), DcmPathToTagPath(), mitk::USDevicePersistence::depthToInt(), mitk::USCombinedModality::DeserializeCalibration(), DeterminePixelType(), mitk::DICOMTagPathToDCMTKSearchPath(), QmitkUSNewVideoDeviceWidget::EditDevice(), mitk::EnsureUID(), mitk::LabelSetImage::EraseLabel(), mitk::ToFCameraPMDController::ErrorText(), itk::GibbsTrackingFilter< ItkQBallImageType >::EstimateParticleWeight(), mitk::NavigationDataPassThroughFilter::GenerateData(), mitk::ItkImageFileReader::GenerateData(), mitk::DiffusionImageTransformedCreationFilter< TTransformType >::GenerateData(), mitk::ExtrudePlanarFigureFilter::GenerateData(), mitk::DWIHeadMotionCorrectionFilter::GenerateData(), mitk::MultiComponentImageDataComparisonFilter::GenerateData(), mitk::ImageToSurfaceFilter::GenerateData(), mitk::DiffusionImageCreationFilter::GenerateData(), itk::GibbsTrackingFilter< ItkQBallImageType >::GenerateData(), mitk::MITKRegistrationWrapperMapperBase::GenerateDataForRenderer(), mitk::generateMappedResultNode(), mitk::ImageTimeSelector::GenerateOutputInformation(), mitk::BoundingObjectCutter::GenerateOutputInformation(), mitk::BoundingShapeCropper::GenerateOutputInformation(), mitk::IGTLMessageToNavigationDataFilter::GenerateQuaternionTrackingDataData(), mitk::generateRegistrationResultNode(), mitk::IGTLMessageToNavigationDataFilter::GenerateTrackingDataData(), mitk::IGTLMessageToNavigationDataFilter::GenerateTransformData(), GetBlurredVectorImage(), mitk::IGTLMessageFactory::GetCloneHandler(), mitk::USCombinedModality::GetControlInterfaceBMode(), mitk::USCombinedModality::GetControlInterfaceCustom(), mitk::USCombinedModality::GetControlInterfaceDoppler(), mitk::USCombinedModality::GetControlInterfaceProbes(), mitk::GetCornerPoints(), mitk::DataCollection::GetData(), mitk::DataCollection::GetDataFilePath(), mitk::ConnectomicsNetwork::GetEdge(), mitk::BaseGeometry::GetExtent(), mitk::GetGridGeometryFromNode(), mitk::ToFDistanceImageToSurfaceFilter::GetInput(), mitk::NavigationData::GetInverse(), mitk::USTelemedBModeControls::GetIsActive(), mitk::IsoDoseLevelSet::GetIsoDoseLevel(), mitk::PyramidImageRegistrationMethod::GetLastRegistrationParameters(), mitk::FileReaderRegistry::GetMimeTypeForFile(), mitk::MAPRegistrationWrapper::GetMovingDimensions(), mitk::IGTLMessageToUSImageFilter::GetNextRawImage(), mitk::DICOMTagPath::GetNode(), mitk::PyramidImageRegistrationMethod::GetParameters(), mitk::AbstractTransformGeometry::GetParametricExtent(), mitk::ImagePixelWriteAccessor< TPixel, VDimension >::GetPixelByIndexSafe(), mitk::ImagePixelReadAccessor< TPixel, VDimension >::GetPixelByIndexSafe(), mitk::FileWriterRegistry::GetReferences(), mitk::BooleanOperation::GetResult(), mitk::USTelemedProbesControls::GetSelectedProbe(), mitk::ImageStatisticsCalculator::GetStatistics(), mitk::MAPRegistrationWrapper::GetTags(), mitk::MAPRegistrationWrapper::GetTagValue(), mitk::DICOMGDCMTagScanner::GetTagValue(), mitk::MAPRegistrationWrapper::GetTargetDimensions(), mitk::IOUtil::GetTempPath(), mitk::USCombinedModality::GetUSImageSource(), mitk::FileWriterRegistry::GetWriters(), mitk::Surface::Graft(), mitk::UnstructuredGrid::Graft(), mitk::MAPRegistrationWrapper::HasLimitedMovingRepresentation(), mitk::MAPRegistrationWrapper::HasLimitedTargetRepresentation(), mitk::ImageAccessorBase::ImageAccessorBase(), mitk::LoggingBackend::IncrementLogFileNames(), mitk::DataCollection::IndexToName(), mitk::OclImageToImageFilter::InitExec(), mitk::InteractionTestHelper::Initialize(), mitk::Image::Initialize(), mitk::LabelSetImage::InitializeByLabeledImage(), mitk::RenderingManager::InitializeViews(), mitk::TrackingForestHandler< ShOrder, NumberOfSignalFeatures >::InputDataValidForTracking(), mitk::TrackingForestHandler< ShOrder, NumberOfSignalFeatures >::InputDataValidForTraining(), mitk::ImageStatisticsCalculator::InternalCalculateMaskFromPlanarFigure(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsMasked(), mitk::ImageStatisticsCalculator::InternalCalculateStatisticsUnmasked(), mitk::TimeGeometry::InternalClone(), mitk::ContourModel::IteratorBegin(), mitk::ContourModel::IteratorEnd(), mitk::ItkAccumulateFilter(), mitk::ItkImageIO::ItkImageIO(), KurtosisMapComputation(), QmitkIOUtil::Load(), mitk::IOUtil::Load(), mitk::StateMachineContainer::LoadBehavior(), mitk::IOUtil::LoadImage(), mitk::DiffusionDICOMFileReaderHelper::LoadMosaicToVector(), mitk::IOUtil::LoadPointSet(), mitk::IOUtil::LoadSurface(), mitk::DiffusionDICOMFileReaderHelper::LoadToVector(), mitk::MakePixelType(), mitk::TractAnalyzer::MakeRoi(), mitk::PointSetMappingHelper::map(), mitk::ImageMappingHelper::map(), mitk::LabelSetImage::MaskStamp(), mitk::LabelSetImage::MergeLabel(), mitk::LabelSetImage::MergeLabels(), mitk::DataCollection::NameToIndex(), mitk::NavigationData::NavigationData(), mitk::NodePredicateDataProperty::NodePredicateDataProperty(), mitk::USCombinedModality::OnActivation(), QmitkUSNewVideoDeviceWidget::OnClickedDone(), QmitkUSNewVideoDeviceWidget::OnClickedFinishedEditing(), QmitkIGTLDeviceSetupConnectionWidget::OnConnect(), mitk::USCombinedModality::OnConnection(), mitk::USCombinedModality::OnDeactivation(), mitk::USCombinedModality::OnDisconnection(), mitk::USCombinedModality::OnFreeze(), mitk::USCombinedModality::OnInitialization(), mitk::USTelemedProbesControls::OnSelectProbe(), mitk::ImageAccessorBase::Overlap(), mitk::LibSVMClassifier::Predict(), mitk::SlicedGeometry3D::PreSetSpacing(), mitk::ImageAccessorBase::PreventRecursiveMutexLock(), mitk::PropertyIsOutdated(), mitk::USDevice::PushFilter(), mitk::USDevice::PushFilterIfNotPushedBefore(), mitk::PythonService::PythonService(), mitk::SimulationIO::Read(), mitk::ImageVtkLegacyIO::Read(), mitk::ImageVtkXmlIO::Read(), mitk::SurfaceVtkLegacyIO::Read(), mitk::SurfaceVtkXmlIO::Read(), mitk::LegacyFileReaderService::Read(), mitk::MAPRegistrationWrapperIO::Read(), mitk::ExampleDataStructureReaderService::Read(), mitk::ItkImageIO::Read(), mitk::TubeGraphIO::Read(), mitk::ConnectomicsNetworkReader::Read(), mitk::LabelSetImageIO::Read(), mitk::PointSetReaderService::Read(), mitk::GeometryDataReaderService::Read(), mitk::NavigationDataReaderXML::ReadNavigationData(), mitk::FiberfoxParameters< ScalarType >::ReadVal(), mitk::ImageMappingHelper::refineGeometry(), mitk::NavigationToolStorage::RegisterAsMicroservice(), mitk::PyramidImageRegistrationMethod::RegisterTwoImagesV4(), mitk::USDevice::RemoveFilter(), QmitkNavigationToolCreationAdvancedWidget::RetrieveAndInitializeDataForTooltipManipulation(), mitk::OtsuTool3D::RunSegmentation(), QmitkIOUtil::Save(), mitk::IOUtil::Save(), mitk::USImageLoggingFilter::SaveImages(), mitk::NeedleProjectionFilter::SelectInput(), mitk::NodeDisplacementFilter::SelectInput(), mitk::LabelSetImage::SetActiveLayer(), mitk::CropOpenCVImageFilter::SetCropRegion(), mitk::DataCollection::SetData(), mitk::USTelemedBModeControls::SetIsActive(), QmitkFreeIsoDoseLevelWidget::setIsoDoseLevel(), mitk::IsoDoseLevelSet::SetIsoDoseLevel(), mitk::LevelWindowManager::SetLevelWindowProperty(), mitk::GrabCutOpenCVImageFilter::SetModelPointsDilationSize(), mitk::ImagePixelWriteAccessor< TPixel, VDimension >::SetPixelByIndexSafe(), QmitkIsoDoseLevelSetModel::setReferenceDose(), mitk::DiffusionImageCreationFilter::SetReferenceImage(), mitk::Surface::SetRequestedRegion(), mitk::DICOMGenericImageFrameInfo::SetTagValue(), QmitkUSAbstractCustomWidget::showEvent(), mitk::USDevicePersistence::spacingToDouble(), QmitkFFmpegWriter::Start(), mitk::USTelemedDevice::StopScanning(), mitk::USDevicePersistence::StringToUSVideoDevice(), mitk::SurfaceStampImageFilter::SurfaceStamp(), mitk::LibSVMClassifier::Train(), mitk::SiemensMosaicDicomDiffusionImageHeaderReader::Update(), mitk::OclBinaryThresholdImageFilter::Update(), mitk::PyramidImageRegistrationMethod::Update(), mitk::AnisotropicIterativeClosestPointRegistration::Update(), mitk::USControlInterfaceBMode::USControlInterfaceBMode(), mitk::USDevicePersistence::USVideoDeviceToString(), mitk::AbstractFileWriter::ValidateOutputLocation(), ValidateSurface(), mitk::Vector< ScalarType, 2 >::Vector(), mitk::SimulationIO::Write(), mitk::LegacyFileWriterService::Write(), mitk::SurfaceStlIO::Write(), mitk::ExampleDataStructureWriterService::Write(), mitk::ImageVtkLegacyIO::Write(), mitk::ImageVtkXmlIO::Write(), mitk::PlanarFigureCompositeWriter::Write(), mitk::SurfaceVtkXmlIO::Write(), mitk::ContourModelSetWriter::Write(), mitk::SurfaceVtkLegacyIO::Write(), mitk::MAPRegistrationWrapperIO::Write(), mitk::FiberBundleVtkWriter::Write(), mitk::FiberBundleTrackVisWriter::Write(), mitk::ConnectomicsNetworkCSVWriter::Write(), mitk::PointSetWriterService::Write(), mitk::ConnectomicsNetworkMatrixWriter::Write(), mitk::TubeGraphIO::Write(), mitk::ItkImageIO::Write(), mitk::GeometryDataWriterService::Write(), mitk::LabelSetImageIO::Write(), and mitk::ContourModelWriter::Write().
#define mitkThrowException | ( | classname | ) |
The specialized exception macro is used to throw exceptions in cases of specialized errors. This means the second parameter must be a class which inherits from mitk::Exception. An object of this exception is thrown when using the macro. Thus, more differentiated excaptions can be thrown, when needed.
Example usage: mitkSpecializedExceptionMacro(mitk::MySpecializedException) << "this is error info";
Definition at line 61 of file mitkExceptionMacro.h.
Referenced by mitk::NavigationToolStorageDeserializer::decomressFiles(), mitk::NavigationToolStorageDeserializer::Deserialize(), mitk::NDITrackingDevice::DiscoverWiredTools(), mitk::NDITrackingDevice::FreePortHandles(), mitk::NavigationDataSequentialPlayer::GenerateData(), mitk::NavigationDataPlayer::GenerateData(), mitk::NavigationDataReaderXML::GetFileVersion(), mitk::NavigationDataReaderXML::GetNumberOfNavigationDatas(), mitk::NavigationDataSequentialPlayer::GoToSnapshot(), mitk::NavigationTool::Graft(), mitk::NDITrackingDevice::InitializeWiredTools(), mitk::NavigationDataPlayerBase::InitPlayer(), mitk::NDITrackingDevice::InternalAddTool(), mitk::IGTLClient::OpenConnection(), mitk::IGTLServer::OpenConnection(), mitk::ClaronTrackingDevice::OpenConnection(), mitk::NDITrackingDevice::OpenConnection(), mitk::VirtualTrackingDevice::OpenConnection(), mitk::NavigationDataReaderXML::ReadVersion1(), mitk::NavigationToolStorageSerializer::Serialize(), mitk::OclBinaryThresholdImageFilter::SetInput(), mitk::NDITrackingDevice::SetVolume(), mitk::NavigationDataRecorderDeprecated::StartRecording(), mitk::ClaronTrackingDevice::StartTracking(), mitk::NavigationDataReaderXML::StreamInvalid(), mitk::NDITrackingDevice::TestConnection(), mitk::ClaronTrackingDevice::TrackTools(), and mitk::NDITrackingDevice::TrackTools().