setIntProperty(MEDPresentationContour::PROP_NB_CONTOUR, params.nbContours);
}
+void
+MEDPresentationContour::initFieldMeshInfos()
+{
+ MEDPresentation::initFieldMeshInfos();
+ _colorByType = "POINTS";
+}
+
void
MEDPresentationContour::setNumberContours()
{
throw KERNEL::createSalomeException(mes);
}
- setOrCreateRenderView(); // instanciate __viewXXX
+ setOrCreateRenderView(); // instanciate __viewXXX, needs to be after the exception above otherwise previous elements in the view will be hidden.
// Contour needs point data:
applyCellToPointIfNeeded();
// Set number of contours
setNumberContours();
- colorBy("POINTS"); // necessarily POINTS because of the conversion above
+ colorBy(); // see initFieldInfo() - necessarily POINTS because of the conversion above
showScalarBar();
selectColorMap();
rescaleTransferFunction();