Commit 19b7d1ff authored by Floris Berendsen's avatar Floris Berendsen
Browse files

COMP: gcc complained at exceptions, and various other

parent ac60500e
......@@ -70,7 +70,7 @@ namespace selx
typedef elastix::ParameterObject elxParameterObjectType;
typedef elxParameterObjectType::Pointer elxParameterObjectPointer;
typedef typename elastixTransformParameterObjectInterface::elastixTransformParameterObject elastixTransformParameterObject;
typedef typename elastixTransformParameterObjectInterface<itk::Image<TPixel, Dimensionality>, itk::Image<TPixel, Dimensionality>>::elastixTransformParameterObject elastixTransformParameterObject;
// Accepting Interfaces:
virtual int Set(itkImageFixedInterface<Dimensionality, TPixel>*) override;
......
......@@ -59,16 +59,16 @@ namespace selx
auto size = fixedImageDomain->GetLargestPossibleRegion().GetSize();
TransformixFilterType::ParameterValueVectorType sizeParameters;
typename TransformixFilterType::ParameterValueVectorType sizeParameters;
auto spacing = fixedImageDomain->GetSpacing();
TransformixFilterType::ParameterValueVectorType spacingParameters;
typename TransformixFilterType::ParameterValueVectorType spacingParameters;
auto index = fixedImageDomain->GetLargestPossibleRegion().GetIndex();
TransformixFilterType::ParameterValueVectorType indexParameters;
typename TransformixFilterType::ParameterValueVectorType indexParameters;
auto origin = fixedImageDomain->GetOrigin();
TransformixFilterType::ParameterValueVectorType originParameters;
typename TransformixFilterType::ParameterValueVectorType originParameters;
//auto direction = fixedImageDomain->GetDirectionCosines();
//TransformixFilterType::ParameterValueVectorType DirectionParameters;
......@@ -83,7 +83,7 @@ namespace selx
elxParameterObjectPointer trxParameterObject = elxParameterObjectType::New();
TransformixFilterType::ParameterMapType trxParameterMap = {
typename TransformixFilterType::ParameterMapType trxParameterMap = {
{ "FixedImageDimension", { std::to_string(Dimensionality) } },
{ "MovingImageDimension", { std::to_string(Dimensionality) } },
{ "FixedInternalImagePixelType", { "float" } },
......
......@@ -117,7 +117,7 @@ namespace selx
{
std::stringstream msg;
msg << "Too many criteria for Component " << name << std::endl;
throw std::runtime_error::runtime_error(msg.str());
throw std::runtime_error(msg.str());
}
// insert new element
......@@ -148,7 +148,7 @@ namespace selx
{
std::stringstream msg;
msg << "Too many criteria for Component " << name << std::endl;
throw std::runtime_error::runtime_error(msg.str());
throw std::runtime_error(msg.str());
}
}
......@@ -206,7 +206,7 @@ namespace selx
SourceInterface* provingSourceInterface = dynamic_cast<SourceInterface*> (component.GetPointer());
if (provingSourceInterface == nullptr) // is actually a double-check for sanity: based on criterion cast should be successful
{
throw std::runtime_error::runtime_error("dynamic_cast<SourceInterface*> fails, but based on component criterion it shouldn't");
throw std::runtime_error("dynamic_cast<SourceInterface*> fails, but based on component criterion it shouldn't");
}
sourceInterfaceMap[componentSelector.first]=provingSourceInterface;
......@@ -228,7 +228,7 @@ namespace selx
SinkInterface* provingSinkInterface = dynamic_cast<SinkInterface*> (component.GetPointer());
if (provingSinkInterface == nullptr) // is actually a double-check for sanity: based on criterion cast should be successful
{
throw std::runtime_error::runtime_error("dynamic_cast<SinkInterface*> fails, but based on component criterion it shouldn't");
throw std::runtime_error("dynamic_cast<SinkInterface*> fails, but based on component criterion it shouldn't");
}
sinkInterfaceMap[componentSelector.first] = provingSinkInterface;
}
......@@ -250,7 +250,7 @@ namespace selx
RegistrationControllerStartInterface* providingInterface = dynamic_cast<RegistrationControllerStartInterface*> (component.GetPointer());
if (providingInterface == nullptr) // is actually a double-check for sanity: based on criterion cast should be successful
{
throw std::runtime_error::runtime_error("dynamic_cast<RegistrationControllerStartInterface*> fails, but based on component criterion it shouldn't");
throw std::runtime_error("dynamic_cast<RegistrationControllerStartInterface*> fails, but based on component criterion it shouldn't");
}
providingInterface->RegistrationControllerStart();
}
......@@ -265,7 +265,7 @@ namespace selx
{
std::stringstream msg;
msg << "No Source component found by name:" << inputName;
throw std::runtime_error::runtime_error(msg.str());
throw std::runtime_error(msg.str());
}
return sources[inputName]->GetInputFileReader();
......@@ -278,7 +278,7 @@ namespace selx
{
std::stringstream msg;
msg << "No Sink component found by name : " << outputName;
throw std::runtime_error::runtime_error(msg.str());
throw std::runtime_error(msg.str());
}
return sinks[outputName]->GetOutputFileWriter();
......@@ -291,7 +291,7 @@ namespace selx
{
std::stringstream msg;
msg << "No Sink component found by name : " << outputName;
throw std::runtime_error::runtime_error(msg.str());
throw std::runtime_error(msg.str());
}
return sinks[outputName]->GetInitializedOutput();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment