Skip to content

Commit

Permalink
Merge branch 'feature/277_reconstructionPluginReview' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Donegan committed May 29, 2015
2 parents 98c6d97 + b9e4832 commit 1135f8c
Show file tree
Hide file tree
Showing 36 changed files with 2,299 additions and 2,608 deletions.
9 changes: 2 additions & 7 deletions Source/DREAM3DLib/DataArrays/DataArray.hpp
@@ -1,8 +1,3 @@

//
// This code was written under United States Air Force Contract number
// FA8650-07-D-5800
//
/* ============================================================================
* Copyright (c) 2009-2015 BlueQuartz Software, LLC
*
Expand All @@ -16,8 +11,8 @@
* list of conditions and the following disclaimer in the documentation and/or
* other materials provided with the distribution.
*
* Neither the name of BlueQuartz Software, the US Air Force, nor the names of its
* contributors may be used to endorse or promote products derived from this software
* Neither the name of BlueQuartz Software, the US Air Force, nor the names of its
* contributors may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Expand Down
Expand Up @@ -11,8 +11,8 @@
* list of conditions and the following disclaimer in the documentation and/or
* other materials provided with the distribution.
*
* Neither the name of BlueQuartz Software, the US Air Force, nor the names of its
* contributors may be used to endorse or promote products derived from this software
* Neither the name of BlueQuartz Software, the US Air Force, nor the names of its
* contributors may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Expand Down Expand Up @@ -209,6 +209,7 @@ void FindRelativeMotionBetweenSlices::dataCheck()
setErrorCondition(0);

DataArrayPath tempPath;
QString ss;

m_InDataPtr = getDataContainerArray()->getPrereqIDataArrayFromPath<IDataArray, AbstractFilter>(this, getSelectedArrayPath());
if( NULL != m_InDataPtr.lock())
Expand All @@ -232,20 +233,21 @@ void FindRelativeMotionBetweenSlices::dataCheck()

if (image->getXPoints() <= 1 || image->getYPoints() <= 1 || image->getZPoints() <= 1)
{
ss = QObject::tr("The Image Geometry is not 3D and cannot be run through this filter. The dimensions are (%1,%2,%3)").arg(image->getXPoints()).arg(image->getYPoints()).arg(image->getZPoints());
setErrorCondition(-999);
notifyErrorMessage(getHumanLabel(), "The Image Geometry is not 3D and cannot be run through this filter", getErrorCondition());
notifyErrorMessage(getHumanLabel(), ss, getErrorCondition());
}

if (getPSize1() <= 0 || getPSize2() <= 0)
{
QString ss = QObject::tr("The patch dimensions (%1, %2) must both be positive numbers").arg(getPSize1()).arg(getPSize2());
ss = QObject::tr("The patch dimensions (%1, %2) must both be positive numbers").arg(getPSize1()).arg(getPSize2());
setErrorCondition(-5555);
notifyErrorMessage(getHumanLabel(), ss, getErrorCondition());
}

if (getSSize1() <= 0 || getSSize2() <= 0)
{
QString ss = QObject::tr("The search dimensions (%1, %2) must both be positive numbers").arg(getSSize1()).arg(getSSize2());
ss = QObject::tr("The search dimensions (%1, %2) must both be positive numbers").arg(getSSize1()).arg(getSSize2());
setErrorCondition(-5555);
notifyErrorMessage(getHumanLabel(), ss, getErrorCondition());
}
Expand All @@ -254,7 +256,7 @@ void FindRelativeMotionBetweenSlices::dataCheck()
{
if (getSliceStep() >= static_cast<int64_t>(image->getZPoints()))
{
QString ss = QObject::tr("The Image Geometry extent (%1) is smaller than the supplied slice step (%2)").arg(image->getZPoints()).arg(getSliceStep());
ss = QObject::tr("The Image Geometry extent (%1) is smaller than the supplied slice step (%2)").arg(image->getZPoints()).arg(getSliceStep());
setErrorCondition(-5556);
notifyErrorMessage(getHumanLabel(), ss, getErrorCondition());
}
Expand All @@ -264,7 +266,7 @@ void FindRelativeMotionBetweenSlices::dataCheck()
{
if (getSliceStep() >= static_cast<int64_t>(image->getYPoints()))
{
QString ss = QObject::tr("The Image Geometry Y extent (%1) is smaller than the supplied slice step (%2)").arg(image->getYPoints()).arg(getSliceStep());
ss = QObject::tr("The Image Geometry Y extent (%1) is smaller than the supplied slice step (%2)").arg(image->getYPoints()).arg(getSliceStep());
setErrorCondition(-5556);
notifyErrorMessage(getHumanLabel(), ss, getErrorCondition());
}
Expand All @@ -274,7 +276,7 @@ void FindRelativeMotionBetweenSlices::dataCheck()
{
if (getSliceStep() >= static_cast<int64_t>(image->getXPoints()))
{
QString ss = QObject::tr("The Image Geometry X extent (%1) is smaller than the supplied slice step (%2)").arg(image->getXPoints()).arg(getSliceStep());
ss = QObject::tr("The Image Geometry X extent (%1) is smaller than the supplied slice step (%2)").arg(image->getXPoints()).arg(getSliceStep());
setErrorCondition(-5556);
notifyErrorMessage(getHumanLabel(), ss, getErrorCondition());
}
Expand Down

0 comments on commit 1135f8c

Please sign in to comment.