Updating time selection

This commit is contained in:
andy
2008-06-16 11:30:13 +01:00
parent b01662afe8
commit c52b20b10d
2 changed files with 4 additions and 34 deletions

View File

@ -233,7 +233,7 @@
</StringVectorProperty>
<!-- Available times array -->
<StringVectorProperty
<!-- <StringVectorProperty
name="TimeArrayInfo"
information_only="1">
<ArraySelectionInformationHelper
@ -255,6 +255,7 @@
</RequiredProperties>
</ArraySelectionDomain>
</StringVectorProperty>
-->
</SourceProxy>
</ProxyGroup>

View File

@ -194,14 +194,6 @@ void Foam::vtkPV3Foam::initializeTime()
return;
}
// preserve the currently selected values
const stringList selectedEntries = getSelectedArrayEntries
(
arraySelection
);
// Clear current time lists
arraySelection->RemoveAllArrays();
// "constant" is implicit - skip it
// All the time selections are enabled by default
for (label timeI = 1; timeI < times.size(); ++timeI)
@ -211,29 +203,6 @@ void Foam::vtkPV3Foam::initializeTime()
times[timeI].name().c_str()
);
}
// TODO: select latestTime from the current selections
// restore selections
if (selectedEntries.size())
{
// Update time selection according to the data just read in
setSelectedArrayEntries
(
arraySelection,
selectedEntries
);
Info << "last selected: " << selectedEntries[selectedEntries.size()-1] << endl;
}
/*
if (debug)
{
Info<< "Selecting time " << times[timeIndex].name() << endl;
}
runTime.setTime(times[timeIndex], timeIndex);
*/
}