}
}
+struct TRemoveActorsFromRendererEvent: public SALOME_Event
+{
+ typedef boost::signal0<void> TRemoveActorsFromRendererSignalType;
+ const TRemoveActorsFromRendererSignalType& myRemoveActorsFromRendererSignalVar;
+
+ TRemoveActorsFromRendererEvent
+ (const TRemoveActorsFromRendererSignalType& theRemoveActorsFromRendererSignalVar):
+ myRemoveActorsFromRendererSignalVar(theRemoveActorsFromRendererSignalVar)
+ {}
+
+ virtual
+ void
+ Execute()
+ {
+ myRemoveActorsFromRendererSignalVar();
+ }
+};
+
VISU::Prs3d_i
-::~Prs3d_i()
+::~Prs3d_i()
{
if(MYDEBUG) MESSAGE("Prs3d_i::~Prs3d_i - this = "<<this);
- myRemoveActorsFromRendererSignal();
+ ProcessVoidEvent(new TRemoveActorsFromRendererEvent(myRemoveActorsFromRendererSignal));
myPipeLine->Delete();
myResult->Destroy();
}
//----------------------------------------------------------------------------
-VISU::Storable*
+VISU::Storable*
VISU::Prs3d_i
::Restore(const Storable::TRestoringMap& theMap)
{
//----------------------------------------------------------------------------
-SALOMEDS::SObject_var
+SALOMEDS::SObject_var
VISU::Prs3d_i
::GetSObject()
{
return mySObject;
}
-Result_i*
+Result_i*
VISU::Prs3d_i
-::GetResult() const
-{
+::GetResult() const
+{
return myResult;
}
-const std::string&
+const std::string&
VISU::Prs3d_i
-::GetMeshName() const
-{
- return myMeshName;
+::GetMeshName() const
+{
+ return myMeshName;
}
//----------------------------------------------------------------------------
void
VISU::Prs3d_i
-::Update()
+::Update()
{
if(MYDEBUG) MESSAGE("Prs3d_i::Update - this = "<<this);
try{
//----------------------------------------------------------------------------
void
VISU::Prs3d_i
-::CheckDataSet()
+::CheckDataSet()
{
vtkMapper *aMapper = myPipeLine->GetMapper();
vtkDataSet *aDataSet = aMapper->GetInput();
void
VISU::Prs3d_i
-::RemoveFromStudy()
+::RemoveFromStudy()
{
struct TRemoveFromStudy: public SALOME_Event
{
myRemovable(theRemovable),
myRemoveFromStudySignal(theRemoveFromStudySignal)
{}
-
+
virtual
void
Execute()
//----------------------------------------------------------------------------
-VISU_PipeLine*
+VISU_PipeLine*
VISU::Prs3d_i
::GetPipeLine()
{
return GetPL();
}
-VISU_PipeLine*
+VISU_PipeLine*
VISU::Prs3d_i
::GetPL()
{
return myPipeLine;
}
-vtkUnstructuredGrid*
+vtkUnstructuredGrid*
VISU::Prs3d_i::
GetInput()
{
void
VISU::Prs3d_i
-::RemoveActor(VISU_Actor* theActor)
+::RemoveActor(VISU_Actor* theActor)
{
if(MYDEBUG) MESSAGE("Prs3d_i::RemoveActor - this = "<<this<<"; theActor = "<<theActor);
myActorCollection->RemoveItem(theActor);
::RemoveActors()
{
if(MYDEBUG) MESSAGE("Prs3d_i::RemoveActors - this = "<<this);
- myRemoveActorsFromRendererSignal();
+ ProcessVoidEvent(new TRemoveActorsFromRendererEvent(myRemoveActorsFromRendererSignal));
myActorCollection->RemoveAllItems();
}
void
VISU::Prs3d_i
-::UpdateActor(VISU_Actor* theActor)
+::UpdateActor(VISU_Actor* theActor)
{
if(MYDEBUG) MESSAGE("Prs3d_i::UpdateActor - this = "<<this<<"; theActor = "<<theActor);
theActor->ShallowCopyPL(myPipeLine);
VISU::Prs3d_i
::UpdateActors()
{
+ struct TUpdateActorsEvent: public SALOME_Event
+ {
+ typedef boost::signal0<void> TUpdateActorsSignalType;
+ const TUpdateActorsSignalType& myUpdateActorsSignalVar;
+
+ TUpdateActorsEvent(const TUpdateActorsSignalType& theUpdateActorsSignalVar):
+ myUpdateActorsSignalVar(theUpdateActorsSignalVar)
+ {}
+
+ virtual
+ void
+ Execute()
+ {
+ myUpdateActorsSignalVar();
+ }
+ };
+
if(MYDEBUG) MESSAGE("Prs3d_i::UpdateActors - this = "<<this);
Update();
CheckDataSet();
- myUpdateActorsSignal();
+ ProcessVoidEvent(new TUpdateActorsEvent(myUpdateActorsSignal));
}
return myPipeLine->GetNumberOfClippingPlanes();
}
-vtkPlane*
+vtkPlane*
VISU::Prs3d_i::
GetClippingPlane(vtkIdType theID) const
{
void
VISU::Prs3d_i
-::SetPlaneParam (vtkFloatingPointType theDir[3],
- vtkFloatingPointType theDist,
- vtkPlane* thePlane)
+::SetPlaneParam (vtkFloatingPointType theDir[3],
+ vtkFloatingPointType theDist,
+ vtkPlane* thePlane)
{
myPipeLine->SetPlaneParam(theDir, theDist, thePlane);
}
myPipeLine->GetMapper()->GetBounds(aBounds);
}
-void
+void
VISU::Prs3d_i
::SetOffset(const CORBA::Float* theOffsets)
{
void
VISU::Prs3d_i
-::SetOffset(CORBA::Float theDx,
- CORBA::Float theDy,
+::SetOffset(CORBA::Float theDx,
+ CORBA::Float theDy,
CORBA::Float theDz)
{
myOffset[0] = theDx;
theOffsets[2] = myOffset[2];
}
-void
+void
VISU::Prs3d_i
-::GetOffset(CORBA::Float& theDx,
- CORBA::Float& theDy,
+::GetOffset(CORBA::Float& theDx,
+ CORBA::Float& theDy,
CORBA::Float& theDz)
{
theDx = myOffset[0];
//----------------------------------------------------------------------------
-VISU::Result_i*
+VISU::Result_i*
VISU::GetResult(SALOMEDS::SObject_ptr theSObject)
{
VISU::Result_var aResult = FindResult(theSObject);