void SMESH_ActorDef::Render(vtkRenderer *ren){
- unsigned long mTime = myTimeStamp->GetMTime();
+ unsigned long aTime = myTimeStamp->GetMTime();
unsigned long anObjTime = myVisualObj->GetUnstructuredGrid()->GetMTime();
- if(anObjTime > mTime)
+ unsigned long aClippingTime = myImplicitBoolean->GetMTime();
+ if(anObjTime > aTime || aClippingTime > aTime)
Update();
}
void SMESH_ActorDef::Update(){
- SetVisibility(GetVisibility());
- unsigned long int anObjTime = myVisualObj->GetUnstructuredGrid()->GetMTime();
- unsigned long int aClippingTime = myImplicitBoolean->GetMTime();
- unsigned long int aTime = myTimeStamp->GetMTime();
if(MYDEBUG) MESSAGE("SMESH_ActorDef::Update");
if(GetControlMode() != eNone) {
- if(anObjTime > aTime || aClippingTime > aTime){
- SetControlMode(GetControlMode());
- SetVisibility(GetVisibility());
- }
+ SetControlMode(GetControlMode());
}
if(myIsPointsLabeled){
- if(anObjTime > aTime || aClippingTime > aTime)
- SetPointsLabeled(myIsPointsLabeled);
+ SetPointsLabeled(myIsPointsLabeled);
}
if(myIsCellsLabeled){
- if(anObjTime > aTime || aClippingTime > aTime)
- SetCellsLabeled(myIsCellsLabeled);
+ SetCellsLabeled(myIsCellsLabeled);
}
-
+ SetVisibility(GetVisibility());
+
myTimeStamp->Modified();
Modified();
}
float anOrigin[3];
::DistanceToPosition(GetUnstructuredGrid(),theDir,theDist,anOrigin);
thePlane->SetOrigin(anOrigin);
- Update();
}