PrsObject_i(SALOMEDS::Study::_nil()),
Prs3d_i(theResult),
myPublishInStudyMode(thePublishInStudyMode),
+ myIsTimeStampFixed(thePublishInStudyMode == EPublishUnderTimeStamp),
myScalarMapPL(NULL),
myIsFixedRange(false)
{}
PrsObject_i(theSObject->GetStudy()),
Prs3d_i(theResult,theSObject),
myPublishInStudyMode(EDoNotPublish),
+ myIsTimeStampFixed(true),
myScalarMapPL(NULL),
myIsFixedRange(false)
{}
VISU::ColoredPrs3d_i
::GetTimeStampsRange()
{
+ VISU::ColoredPrs3d::TimeStampsRange_var aTimeStampsRange = new VISU::ColoredPrs3d::TimeStampsRange();
+ VISU::TValField& aValField = GetField()->myValField;
+ if(myIsTimeStampFixed){
+ aTimeStampsRange->length(1);
+ PValForTime& aValForTime = aValField[GetTimeStampNumber()];
+ std::string aTime = VISU_Convertor::GenerateName(aValForTime->myTime);
+ VISU::ColoredPrs3d::TimeStampInfo anInfo;
+ anInfo.myNumber = GetTimeStampNumber();
+ anInfo.myTime = aTime.c_str();
+ aTimeStampsRange[0] = anInfo;
+ return aTimeStampsRange._retn();
+ }
+
// To exclude timstamps with repeated time
typedef std::map<std::string, long> TTimeStampsRange;
TTimeStampsRange aRange;
{
- const VISU::TValField& aValField = GetField()->myValField;
VISU::TValField::const_iterator anIter = aValField.begin();
for(; anIter != aValField.end(); anIter++){
vtkIdType aTimeStampNumber = anIter->first;
}
// To map the C++ data structures to the corresponding CORBA ones
- VISU::ColoredPrs3d::TimeStampsRange_var aTimeStampsRange = new VISU::ColoredPrs3d::TimeStampsRange();
{
aTimeStampsRange->length(aRange.size());
TTimeStampsSortedRange::const_iterator anIter = aSortedRange.begin();
SetEntity((VISU::Entity)VISU::Storable::FindValue(theMap,"myEntity").toInt());
SetFieldName(VISU::Storable::FindValue(theMap,"myFieldName").latin1());
SetTimeStampNumber(VISU::Storable::FindValue(theMap,"myIteration").toInt());
+ myIsTimeStampFixed = VISU::Storable::FindValue(theMap,"myIsTimeStampFixed").toInt();
OnSetInput();
Build(ERestore);
{
TSuperClass::ToStream(theStr);
- Storable::DataToStream( theStr, "myScalarMode", int(GetScalarMode()) );
- Storable::DataToStream( theStr, "myNumberOfColors", int(GetNbColors()) );
- Storable::DataToStream( theStr, "myOrientation", myOrientation );
-
Storable::DataToStream( theStr, "myMeshName", GetCMeshName() );
Storable::DataToStream( theStr, "myEntity", GetEntity() );
Storable::DataToStream( theStr, "myFieldName", GetCFieldName() );
Storable::DataToStream( theStr, "myIteration", int(GetTimeStampNumber()) );
+ Storable::DataToStream( theStr, "myIteration", int(myIsTimeStampFixed) );
+
+ Storable::DataToStream( theStr, "myScalarMode", int(GetScalarMode()) );
+ Storable::DataToStream( theStr, "myNumberOfColors", int(GetNbColors()) );
+ Storable::DataToStream( theStr, "myOrientation", myOrientation );
Storable::DataToStream( theStr, "myTitle", myTitle.c_str() );
Storable::DataToStream( theStr, "myNumberOfLabels", myNumberOfLabels );