← Have an idea? Share it! Settings and activity 2 results found expand the name patterns for temporal file series to include time represented as floats 34 votes Vote Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close 1 vote 2 votes 3 votes Remove votes You have left! (?) (thinking…) 4 comments · General · Delete… · Admin → An error occurred while saving the comment Anonymous commented · March 03, 2016 · Edit… · Delete… The following patch, would implement this feature, for all files which end with "A.B.ext", where A and B are integers. --- ParaView-v5.0.0-source/ParaViewCore/VTKExtensions/Default/vtkFileSequenceParser.h 2016-01-08 21:21:35.000000000 +0100 +++ ParaViewCore/VTKExtensions/Default/vtkFileSequenceParser.h 2016-03-04 08:10:27.366157431 +0100 @@ -53,6 +53,7 @@ ~vtkFileSequenceParser(); vtksys::RegularExpression * reg_ex; + vtksys::RegularExpression * reg_ex22; vtksys::RegularExpression * reg_ex2; vtksys::RegularExpression * reg_ex3; vtksys::RegularExpression * reg_ex4; --- ParaView-v5.0.0-source/ParaViewCore/VTKExtensions/Default/vtkFileSequenceParser.cxx 2016-01-08 21:21:35.000000000 +0100 +++ ParaViewCore/VTKExtensions/Default/vtkFileSequenceParser.cxx 2016-03-04 08:24:26.358132642 +0100 @@ -26,6 +26,8 @@ vtkFileSequenceParser::vtkFileSequenceParser() : // sequence ending with numbers. reg_ex( new vtksys::RegularExpression("^(.*)\\.([0-9.]+)$")), + // sequence ending with extension (dual 000.001) . + reg_ex22( new vtksys::RegularExpression("^(.*)(\\.|_|-)([0-9.]+)\\.([0-9.]+)\\.(.*)$")), // sequence ending with extension. reg_ex2( new vtksys::RegularExpression("^(.*)(\\.|_|-)([0-9.]+)\\.(.*)$")), // sequence ending with extension, but with no ". or _" before @@ -49,6 +51,7 @@ vtkFileSequenceParser::~vtkFileSequenceParser() { delete this->reg_ex; + delete this->reg_ex22; delete this->reg_ex2; delete this->reg_ex3; delete this->reg_ex4; @@ -69,6 +72,12 @@ this->SequenceIndex = atoi(reg_ex->match(2).c_str()); match = true; } + else if (this->reg_ex22->find(file)) + { + this->SetSequenceName(std::string(this->reg_ex22->match(1) + this->reg_ex22->match(2) + ".." + this->reg_ex22->match(5)).c_str()); + this->SequenceIndex = atoi((reg_ex22->match(3) + reg_ex22->match(4)).c_str()); + match = true; + } else if (this->reg_ex2->find(file)) { this->SetSequenceName(std::string(this->reg_ex2->match(1) + this->reg_ex2->match(2) + ".." + this->reg_ex2->match(4)).c_str()); Save Submitting... Anonymous supported this idea · March 03, 2016 Keyboard shortcuts 100 votes Vote Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close 1 vote 2 votes 3 votes Remove votes You have left! (?) (thinking…) 2 comments · General · Delete… · Admin → Anonymous supported this idea · November 03, 2014
The following patch, would implement this feature, for all files which end with "A.B.ext", where A and B are integers.
--- ParaView-v5.0.0-source/ParaViewCore/VTKExtensions/Default/vtkFileSequenceParser.h 2016-01-08 21:21:35.000000000 +0100
+++ ParaViewCore/VTKExtensions/Default/vtkFileSequenceParser.h 2016-03-04 08:10:27.366157431 +0100
@@ -53,6 +53,7 @@
~vtkFileSequenceParser();
vtksys::RegularExpression * reg_ex;
+ vtksys::RegularExpression * reg_ex22;
vtksys::RegularExpression * reg_ex2;
vtksys::RegularExpression * reg_ex3;
vtksys::RegularExpression * reg_ex4;
--- ParaView-v5.0.0-source/ParaViewCore/VTKExtensions/Default/vtkFileSequenceParser.cxx 2016-01-08 21:21:35.000000000 +0100
+++ ParaViewCore/VTKExtensions/Default/vtkFileSequenceParser.cxx 2016-03-04 08:24:26.358132642 +0100
@@ -26,6 +26,8 @@
vtkFileSequenceParser::vtkFileSequenceParser() :
// sequence ending with numbers.
reg_ex( new vtksys::RegularExpression("^(.*)\\.([0-9.]+)$")),
+ // sequence ending with extension (dual 000.001) .
+ reg_ex22( new vtksys::RegularExpression("^(.*)(\\.|_|-)([0-9.]+)\\.([0-9.]+)\\.(.*)$")),
// sequence ending with extension.
reg_ex2( new vtksys::RegularExpression("^(.*)(\\.|_|-)([0-9.]+)\\.(.*)$")),
// sequence ending with extension, but with no ". or _" before
@@ -49,6 +51,7 @@
vtkFileSequenceParser::~vtkFileSequenceParser()
{
delete this->reg_ex;
+ delete this->reg_ex22;
delete this->reg_ex2;
delete this->reg_ex3;
delete this->reg_ex4;
@@ -69,6 +72,12 @@
this->SequenceIndex = atoi(reg_ex->match(2).c_str());
match = true;
}
+ else if (this->reg_ex22->find(file))
+ {
+ this->SetSequenceName(std::string(this->reg_ex22->match(1) + this->reg_ex22->match(2) + ".." + this->reg_ex22->match(5)).c_str());
+ this->SequenceIndex = atoi((reg_ex22->match(3) + reg_ex22->match(4)).c_str());
+ match = true;
+ }
else if (this->reg_ex2->find(file))
{
this->SetSequenceName(std::string(this->reg_ex2->match(1) + this->reg_ex2->match(2) + ".." + this->reg_ex2->match(4)).c_str());