- float scalarComponent = _image->GetScalarComponentAsFloat(i,j,k, 0);
- if( ( this->GetRangeMin() <= scalarComponent ) && ( scalarComponent <= this->GetRangeMax() ) )
- {
- zz=_pz-k;
- zz=zz*zz;
- if (_brushform==0)
- {
- this->CalculateMinMaxRegion(i,j,k); //DFCH
- _image->SetScalarComponentFromFloat (i,j,k, 0, value );
- } else if (_brushform==1)
- {
- if ((xx+yy+zz)<=rr)
- {
- this->CalculateMinMaxRegion(i,j,k); //DFCH
- _image->SetScalarComponentFromFloat (i,j,k, 0, value );
- }
- } // _brushform
- } // GetRangeMin && GetRangeMax
+ float scalarComponent = _image->GetScalarComponentAsFloat(i,
+ j, k, 0);
+ if ((this->GetRangeMin() <= scalarComponent)
+ && (scalarComponent <= this->GetRangeMax())) {
+ zz = _pz - k;
+ zz = zz * zz;
+ if (_brushform == 0) {
+ this->_IMManager->AddModifiedPixel(i, j, k); //DFCH
+ _image->SetScalarComponentFromFloat(i, j, k, 0,
+ value);
+ } else if (_brushform == 1) {
+ if ((xx + yy + zz) <= rr) {
+ this->_IMManager->AddModifiedPixel(i, j, k); //DFCH
+ _image->SetScalarComponentFromFloat(i, j, k, 0,
+ value);
+ }
+ } // _brushform
+ } // GetRangeMin && GetRangeMax