ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
vtkFileSequenceParser.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include "qPCL.h" //needed for exports
11 #include "vtkObject.h"
12 
13 namespace vtksys {
14 class RegularExpression;
15 }
16 
17 class QPCL_ENGINE_LIB_API vtkFileSequenceParser : public vtkObject {
18 public:
19  static vtkFileSequenceParser* New();
20  vtkTypeMacro(vtkFileSequenceParser, vtkObject);
21  void PrintSelf(ostream& os, vtkIndent indent) override;
22 
28  bool ParseFileSequence(const char* file);
29 
30  vtkGetStringMacro(SequenceName);
31  vtkGetMacro(SequenceIndex, int);
32 
33 protected:
35  ~vtkFileSequenceParser() override;
36 
37  vtksys::RegularExpression* reg_ex;
38  vtksys::RegularExpression* reg_ex2;
39  vtksys::RegularExpression* reg_ex3;
40  vtksys::RegularExpression* reg_ex4;
41  vtksys::RegularExpression* reg_ex5;
42  vtksys::RegularExpression* reg_ex_last;
43 
44  // Used internal so char * allocations are done automatically.
45  vtkSetStringMacro(SequenceName);
46 
48  char* SequenceName;
49 
50 private:
52  void operator=(const vtkFileSequenceParser&) = delete;
53 };
vtkFileSequenceParser::reg_ex3
vtksys::RegularExpression * reg_ex3
Definition: vtkFileSequenceParser.h:39
NULL
#define NULL
Definition: UVUnwrapping.cpp:40
vtkFileSequenceParser::reg_ex5
vtksys::RegularExpression * reg_ex5
Definition: vtkFileSequenceParser.h:41
vtkFileSequenceParser
Definition: vtkFileSequenceParser.h:17
vtkStandardNewMacro
vtkStandardNewMacro(vtkFileSequenceParser)
qPCL.h
vtkFileSequenceParser::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Definition: vtkFileSequenceParser.cxx:125
vtkFileSequenceParser.h
vtksys
Definition: vtkFileSequenceParser.h:13
vtkFileSequenceParser::reg_ex
vtksys::RegularExpression * reg_ex
Definition: vtkFileSequenceParser.h:37
vtkFileSequenceParser::reg_ex2
vtksys::RegularExpression * reg_ex2
Definition: vtkFileSequenceParser.h:38
QPCL_ENGINE_LIB_API
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
vtkFileSequenceParser::vtkFileSequenceParser
vtkFileSequenceParser()
Definition: vtkFileSequenceParser.cxx:26
vtkFileSequenceParser::~vtkFileSequenceParser
~vtkFileSequenceParser() override
Definition: vtkFileSequenceParser.cxx:55
vtkFileSequenceParser::reg_ex_last
vtksys::RegularExpression * reg_ex_last
Definition: vtkFileSequenceParser.h:42
vtkFileSequenceParser::SequenceIndex
int SequenceIndex
Definition: vtkFileSequenceParser.h:47
vtkFileSequenceParser::ParseFileSequence
bool ParseFileSequence(const char *file)
Definition: vtkFileSequenceParser.cxx:68
vtkFileSequenceParser::reg_ex4
vtksys::RegularExpression * reg_ex4
Definition: vtkFileSequenceParser.h:40
vtkFileSequenceParser::SequenceName
char * SequenceName
Definition: vtkFileSequenceParser.h:48