Commit ba986d9b authored by Emmanuel Promayon's avatar Emmanuel Promayon
Browse files

FIXED removed deprecated use of setActiveData

parent b3866b7c
......@@ -70,7 +70,7 @@ void Colors::update() {
// ---------------------- hide ----------------------------
void Colors::hide() {
// remove the current colors
manager->getPMLComponent()->setActiveData(camitk::MeshComponent::POINTS, nullptr);
manager->getPMLComponent()->setDataRepresentationOff();
}
......@@ -847,7 +847,8 @@ void MeshComponent::addDataArray(FieldType fieldType, const QString& name, vtkSm
dataField->AddArray(data);
// set the data as active
setActiveData(fieldType, name.toStdString().c_str());
setDataRepresentationVisibility(fieldType, name, true);
}
// -------------------- removeDataArray --------------------
......
......@@ -111,11 +111,8 @@ void ShowPointData::process( MeshComponent* comp ) {
break;
}
// add the point data
// add the point data and show it
comp->addPointData(demoPointData->GetName(),demoPointData);
// show it!
comp->setActiveData(MeshComponent::POINTS,demoPointData->GetName());
}
......@@ -91,6 +91,6 @@ void PickMe::refreshPointData() {
demoPointData->Modified();
// force the data visualization to be updated
setActiveData(MeshComponent::POINTS, demoPointData->GetName());
setDataRepresentationVisibility(MeshComponent::POINTS,demoPointData->GetName(), true);
}
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