has been created and change its parameters.</li>
<li><b>Filter by Scalars</b> - allows showing only the cells with
values that fit into the defined <b>Scalar Range</b>.
+<br>If the presentation is created on nodes, only the cells with all
+nodes lying in the range defined by the scalar filter will be visible.
\image html viewing2.png
<source>WRN_NO_AVAILABLE_DATA</source>
<translation>No Available data in selection</translation>
</message>
+ <message>
+ <source>WRN_NO_VISIBLE_ELEMENTS</source>
+ <translation>There are no visible elements.</translation>
+ </message>
<message>
<source>WRN_STUDY_LOCKED</source>
<translation>Current Study is locked</translation>
#include "SALOME_Event.h"
#include "SUIT_ResourceMgr.h"
+#include "SUIT_MessageBox.h"
#include <vtkActorCollection.h>
#include <vtkUnstructuredGrid.h>
aDataSet->Update();
static float eps = VTK_LARGE_FLOAT * 0.1 ;
- if (!aDataSet->GetNumberOfCells())
- throw std::runtime_error("There are no visible elements");
+ if (!aDataSet->GetNumberOfCells()) {
+ SUIT_MessageBox::warning( 0,
+ QObject::tr("WRN_VISU"),
+ QObject::tr("WRN_NO_VISIBLE_ELEMENTS"),
+ QObject::tr("BUT_OK"));
+ return;
+ }
if (aDataSet->GetLength() > eps)
throw std::runtime_error("Diagonal of the actor is too large !!!");