static int myNbPresent;
CutLines_i();
CutLines_i(const CutLines_i&);
+
public:
+ typedef ScalarMap_i TSuperClass;
+
explicit
CutLines_i(Result_i* theResult,
bool theAddToStudy);
static int myNbPresent;
CutPlanes_i();
CutPlanes_i(const CutPlanes_i&);
+
public:
+ typedef ScalarMap_i TSuperClass;
+
explicit
CutPlanes_i(Result_i* theResult,
bool theAddToStudy);
static int myNbPresent;
DeformedShape_i();
DeformedShape_i(const DeformedShape_i&);
+
public:
+ typedef ScalarMap_i TSuperClass;
+
explicit
DeformedShape_i(Result_i* theResult,
bool theAddToStudy);
static int myNbPresent;
IsoSurfaces_i();
IsoSurfaces_i(const IsoSurfaces_i&);
+
public:
+ typedef ScalarMap_i TSuperClass;
+
explicit
IsoSurfaces_i(Result_i* theResult,
bool theAddToStudy);
Plot3D_i(const Plot3D_i&);
public:
+ typedef ScalarMap_i TSuperClass;
+
explicit
Plot3D_i (Result_i* theResult, bool theAddToStudy = true);
explicit
//----------------------------------------------------------------------------
+void
+VISU::Prs3d_i
+::CheckDataSet()
+{
+ vtkMapper *aMapper = myPipeLine->GetMapper();
+ vtkDataSet *aDataSet = aMapper->GetInput();
+ if (!aDataSet)
+ throw std::runtime_error("There is no input data !!!");
+ aDataSet->Update();
+ static float eps = VTK_LARGE_FLOAT * 0.1 ;
+ 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 !!!");
+}
+
void
VISU::Prs3d_i
::RemoveFromStudy()
}
Update();
+ CheckDataSet();
+
theActor->SetPrs3d(this);
theActor->SetShrinkFactor();
theActor->SetPosition(myOffset);
{
if(MYDEBUG) MESSAGE("Prs3d_i::UpdateActors - this = "<<this);
Update();
+ CheckDataSet();
myUpdateActorsSignal();
}
VISU_PipeLine*
GetPipeLine();
+ //! To check dataset validity, throws std::exception if not valid
+ virtual
+ void
+ CheckDataSet();
+
bool myAddToStudy;
float myOffset[3];
Result_i *myResult;
static int myNbPresent;
StreamLines_i();
StreamLines_i(const StreamLines_i&);
+
public:
+ typedef DeformedShape_i TSuperClass;
+
explicit
StreamLines_i(Result_i* theResult,
bool theAddToStudy);
static int myNbPresent;
Vectors_i();
Vectors_i(const Vectors_i&);
+
public:
+ typedef DeformedShape_i TSuperClass;
+
explicit
Vectors_i(Result_i* theResult,
bool theAddToStudy);