Commit e61d486a authored by Ben Boeckel's avatar Ben Boeckel

Merge topic 'accept_apply_operator_and_fix_extents'

* accept_apply_operator_and_fix_extents:
  update extents
  accept applys the operator

Merge-request: !344
parents 16609934 b8c4b1c7
......@@ -241,8 +241,8 @@ void qtSurfaceExtractorView::acceptContours(vtkSmartPointer<vtkPolyData> contour
// Now set the GlobalId of smPolyEdgeOp proxy to the edge op, and later
// on the GlobalId will be used to find the proxy
// for Create and Edit operation, we need arc source
opProxyIdItem->setValue(smPolyEdgeOp->GetGlobalID());
this->requestOperation(this->Internals->CurrentOp.lock());*/
opProxyIdItem->setValue(contourSource);*/
this->requestOperation(this->Internals->CurrentOp.lock());
}
/*
......@@ -338,6 +338,7 @@ void qtSurfaceExtractorView::operationSelected(const smtk::model::OperatorPtr& o
}
offsetsItem->setValues(offsets.begin(), offsets.end());
acceptContours(pd);
//edgeResult = this->m_smtkOp.lock()->operate();
}
......
......@@ -658,8 +658,10 @@ void imageFeatureExtractorWidget
{
double * s = inputImage->GetSpacing();
this->ui->extentX->setText(QString::number(s[0]));
this->ui->extentY->setText(QString::number(s[1]));
int dims[3];
inputImage->GetDimensions(dims);
this->ui->extentX->setText(QString::number(std::abs(s[0]*dims[0])));
this->ui->extentY->setText(QString::number(std::abs(s[1]*dims[1])));
}
double currentColor[4];
......
Markdown is supported
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