spxM = px*(-1);
px = 0;
}
- sizeXM = dimMoveX-spxM;
- if (px+sizeXM>=dim[0]) sizeXM=dim[0]-px;
- sizeXM = sizeXM * bbGetInputImageFix()->GetScalarSize();
+ sizeXM = dimMoveX-spxM;
+ if (px+sizeXM>=dim[0]) { sizeXM=dim[0]-px; }
+ sizeXM = sizeXM * bbGetInputImageFix()->GetScalarSize();
for (k=0; k<dimMoveZ; k++)
{
for (j=0; j<dimMoveY; j++)
{
py = j+bbGetInputOrigin()[1];
- pz = k+bbGetInputOrigin()[2];
+ if (bbGetInputImageMove()->GetDataDimension()==3)
+ {
+ pz = k+bbGetInputOrigin()[2];
+ } else {
+ pz = k;
+ }// Dimension 3
if ( (py<dim[1]) && (pz<dim[2]) &&
(py>=0) && (pz>=0) &&
(sizeXM>0) )
} // for j
} // for k
+printf("EED InversCrop::Process 4 %d %d %d \n",px,py,pz );
+
_imageoutput->Modified();
} else { // If Image Fixe Move the same GetScalarType
printf ("ERROR: InversCrop both ImageFixe and ImageMove need the same format.\n");
//--------------------------------------------------------------------------
void ComboBoxWidget::FillItems( int iSelection, std::vector< std::string > lstIn )
{
- int i,size=lstIn.size();
+ int i,size = lstIn.size();
#if defined(_WIN32)
void ComboBox::Process()
{
int iSelection = bbGetInputSelection();
- if (bbGetInputSelection() >= bbGetInputIn().size()) { iSelection=bbGetInputIn().size()-1; }
-// if (bbGetInputSelection() >= bbGetInputIn().size()) { iSelection=0; }
+ printf("ComboBox::Process A iSelection=%d\n", iSelection);
+// if (bbGetInputSelection() >= bbGetInputIn().size()) { iSelection=bbGetInputIn().size()-1; }
+ if (bbGetInputSelection() >= bbGetInputIn().size()) { iSelection=0; }
ComboBoxWidget *w = (ComboBoxWidget*)bbGetOutputWidget();
w->FillItems( iSelection, bbGetInputIn() );
bbSetInputSelection( iSelection );
{
bbSetOutputOutString( bbGetInputIn()[ iSelection ] );
} // if iSelection
+ printf("ComboBox::Process B iSelection=%d\n", iSelection);
w->VerifyDeselect(iSelection);
}
//=====