Skip to content

Settings and activity

2 results found

  1. 34 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    4 comments  ·  General  ·  Admin →
    An error occurred while saving the comment
    Anonymous commented  · 

    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());

    Anonymous supported this idea  · 
  2. 100 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    2 comments  ·  General  ·  Admin →
    Anonymous supported this idea  ·