showing only the cells with values that fit into the defined
<b>Scalar Range</b>.
-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
In the dialog box, check in <b>Filter by scalar range</b> box and input
myFieldTransform->Delete();
- myThreshold->AllScalarsOn();
+ myThreshold->AllScalarsOff();
myThreshold->Delete();
myPassFilter->Delete();
myDistribution->Delete();
<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>
aDataSet->Update();
static float eps = VTK_LARGE_FLOAT * 0.1 ;
- if (!aDataSet->GetNumberOfCells()) {
- SUIT_MessageBox::warning( 0,
- QObject::tr("WRN_VISU"),
- QObject::tr("WRN_NO_VISIBLE_ELEMENTS"),
- QObject::tr("BUT_OK"));
- return;
- }
+ if (!aDataSet->GetNumberOfCells())
+ throw std::runtime_error("There are no visible elements");
if (aDataSet->GetLength() > eps)
throw std::runtime_error("Diagonal of the actor is too large !!!");
{
if(MYDEBUG) MESSAGE("Prs3d_i::UpdateActors - this = "<<this);
Update();
- CheckDataSet();
+ try {
+ CheckDataSet();
+ } catch( std::exception& ex ) {
+ SUIT_MessageBox::warning( 0,
+ QObject::tr("WRN_VISU"),
+ QString( ex.what() ),
+ QObject::tr("BUT_OK") );
+ RemoveActors();
+ return;
+ }
ProcessVoidEvent(new TInvokeSignalEvent(myUpdateActorsSignal));
}