}
}
+
+//----------------------------------------------------------------------------
VISU::Prs3d_i
::Prs3d_i(Result_i* theResult,
bool theAddToStudy) :
}
}
+
+//----------------------------------------------------------------------------
void
VISU::Prs3d_i
::SameAs(const Prs3d_i* theOrigin)
}
}
+
+//----------------------------------------------------------------------------
VISU::Prs3d_i
::~Prs3d_i()
{
return true;
}
+
+//----------------------------------------------------------------------------
CORBA::Boolean
VISU::Prs3d_i
::Apply()
return false;
}
+
+//----------------------------------------------------------------------------
void
VISU::Prs3d_i
::SetResultObject(VISU::Result_ptr theResult)
aResult->Register();
SetStudyDocument(aResult->GetStudyDocument());
myResult = aResult;
+ myInputTimeStamp.Modified();
}
}
+
+//----------------------------------------------------------------------------
VISU::Result_ptr
VISU::Prs3d_i
::GetResultObject()
return myResult->_this();
}
+
+//----------------------------------------------------------------------------
void
VISU::Prs3d_i
::SetMeshName(const char* theMeshName)
{
- myMeshName = theMeshName;
+ if(myMeshName != theMeshName){
+ myMeshName == theMeshName;
+ myInputTimeStamp.Modified();
+ }
}
+
+//----------------------------------------------------------------------------
char*
VISU::Prs3d_i
::GetMeshName()
}
+//----------------------------------------------------------------------------
+unsigned long int
+VISU::Prs3d_i
+::GetMTime()
+{
+ return max(GetInputMTime(),GetParamsMTime());
+}
+
+//----------------------------------------------------------------------------
+unsigned long int
+VISU::Prs3d_i
+::GetInputMTime()
+{
+ return myInputTimeStamp.GetMTime();
+}
+
+//----------------------------------------------------------------------------
+unsigned long int
+VISU::Prs3d_i
+::GetParamsMTime()
+{
+ return myParamsTimeStamp.GetMTime();
+}
+
//----------------------------------------------------------------------------
VISU::Storable*
VISU::Prs3d_i
myOffset[0] = VISU::Storable::FindValue(theMap,"myOffset[0]").toFloat();
myOffset[1] = VISU::Storable::FindValue(theMap,"myOffset[1]").toFloat();
myOffset[2] = VISU::Storable::FindValue(theMap,"myOffset[2]").toFloat();
+ myParamsTimeStamp.Modified();
return this;
}
myOffset[0] = theOffsets[0];
myOffset[1] = theOffsets[1];
myOffset[2] = theOffsets[2];
+ myParamsTimeStamp.Modified();
}
void
myOffset[0] = theDx;
myOffset[1] = theDy;
myOffset[2] = theDz;
+ myParamsTimeStamp.Modified();
}
void
#include "VTKViewer.h"
#include <vtkSmartPointer.h>
+#include <vtkTimeStamp.h>
class VISU_PipeLine;
class VISU_Actor;
CORBA::Float& theDz);
//----------------------------------------------------------------------------
+ //! Return modified time of the object
+ virtual
+ unsigned long int
+ GetMTime();
+
+ //! Return input's modified time
+ virtual
+ unsigned long int
+ GetInputMTime();
+
+ //! Return params's modified time
+ virtual
+ unsigned long int
+ GetParamsMTime();
+
protected:
virtual
bool
protected:
Result_i *myResult;
std::string myMeshName;
+ vtkTimeStamp myInputTimeStamp;
- bool myAddToStudy;
CORBA::Float myOffset[3];
+ vtkTimeStamp myParamsTimeStamp;
+
+ bool myAddToStudy;
VISU_PipeLine *myPipeLine;
SALOMEDS::SObject_var mySObject;