VISU_Actor
::UpdateFromFactory()
{
- if(GetMTime() < myActorFactory->GetMTime()){
+ if(myUpdateFromFactoryTime.GetMTime() < myActorFactory->GetMTime()){
+ myUpdateFromFactoryTime.Modified();
myActorFactory->UpdateActor(this);
Update();
}
#include "VISU_BoostSignals.h"
#include <string>
+#include <vtkTimeStamp.h>
#include <vtkSmartPointer.h>
class vtkProp;
vtkSmartPointer<vtkDataSetMapper> myMapper;
VISU::TActorFactory* myActorFactory;
+ vtkTimeStamp myUpdateFromFactoryTime;
boost::signal1<void,VISU_Actor*> myDestroySignal;
vtkSmartPointer<VTKViewer_ShrinkFilter> myShrinkFilter;
VISU::Prs3d_i
::CheckDataSet()
{
- if(GetMTime() < myUpdateTime.GetMTime())
- return;
-
vtkMapper *aMapper = GetPipeLine()->GetMapper();
vtkDataSet *aDataSet = aMapper->GetInput();
if (!aDataSet)
if(MYDEBUG) MESSAGE("Prs3d_i::UpdateActor - this = "<<this<<"; theActor = "<<theActor);
theActor->SetPosition(myOffset[0],myOffset[1],myOffset[2]);
theActor->ShallowCopyPL(GetPipeLine());
- theActor->Modified();
}
void