Isis Developer Reference
ProcessByLine.h
Go to the documentation of this file.
1 #ifndef ProcessByLine_h
2 #define ProcessByLine_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 #include "ProcessByBrick.h"
10 #include "Buffer.h"
11 namespace Isis {
12  class Cube;
13  class CubeAttributeInput;
14 
98 
99  public:
101  SetWrap(true);
102  };
103 
104  using Isis::ProcessByBrick::SetInputCube; // make parents SetInputCube visable
105  Isis::Cube *SetInputCube(const QString &parameter,
106  const int requirements = 0);
107  Isis::Cube *SetInputCube(const QString &file,
109  const int requirements = 0);
110 
111  void StartProcess(void funct(Isis::Buffer &inout));
112  virtual void StartProcess(std::function<void(Isis::Buffer &in)> funct );
113  void StartProcess(std::function<void(Buffer &in, Buffer &out)> funct);
114 
115  void StartProcess(void funct(Isis::Buffer &in, Isis::Buffer &out));
116  void StartProcess(void
117  funct(std::vector<Isis::Buffer *> &in,
118  std::vector<Isis::Buffer *> &out));
119 
120  void SetBricks(IOCubes cn);
121 
132  template <typename Functor>
133  void ProcessCubeInPlace(const Functor & funct, bool threaded = true) {
136  ProcessByBrick::ProcessCubeInPlace(funct, threaded);
137  }
138 
139 
152  template <typename Functor>
153  void ProcessCube(const Functor & funct, bool threaded = true) {
156  ProcessByBrick::ProcessCube(funct, threaded);
157  }
158 
159 
173  template <typename Functor>
174  void ProcessCubes(const Functor & funct, bool threaded = true) {
177  ProcessByBrick::ProcessCubes(funct, threaded);
178  }
179  };
180 };
181 
182 #endif
Cube.h
Isis::ProcessByLine::ProcessByLine
ProcessByLine()
Definition: ProcessByLine.h:100
Isis::ProcessByBrick::VerifyCubes
void VerifyCubes(IOCubes cn)
Verifies the dimensions of the input/output cubes.
Definition: ProcessByBrick.cpp:120
Isis::ProcessByLine::ProcessCube
void ProcessCube(const Functor &funct, bool threaded=true)
Same functionality as StartProcess(void funct(Isis::Buffer &in, Isis::Buffer &out)) using Functors.
Definition: ProcessByLine.h:153
Process.h
Isis::ProcessByBrick::SetInputCube
virtual Isis::Cube * SetInputCube(const QString &parameter, const int requirements=0)
Opens an input cube specified by the user and verifies requirements are met.
Definition: Process.cpp:136
Isis::ProcessByLine::SetBricks
void SetBricks(IOCubes cn)
Definition: ProcessByLine.cpp:73
Isis::ProcessByLine
Process cubes by line.
Definition: ProcessByLine.h:97
Isis::ProcessByBrick::ProcessCubeInPlace
void ProcessCubeInPlace(const Functor &functor, bool threaded=true)
Operate over a single cube (either input or output).
Definition: ProcessByBrick.h:163
Isis::Buffer
Buffer for reading and writing cube data.
Definition: Buffer.h:53
Isis::ProcessByBrick::IOCubes
IOCubes
Definition: ProcessByBrick.h:89
Isis::ProcessByLine::ProcessCubeInPlace
void ProcessCubeInPlace(const Functor &funct, bool threaded=true)
Same functionality as StartProcess(void funct(Isis::Buffer &inout)) using Functors.
Definition: ProcessByLine.h:133
ProcessByBrick.h
Isis::ProcessByBrick::SetWrap
void SetWrap(bool wrap)
This wrapping option only applys when there are two or more input cubes.
Definition: ProcessByBrick.cpp:409
Buffer.h
Isis::ProcessByBrick::ProcessCube
void ProcessCube(const Functor &functor, bool threaded=true)
Operate over a single input cube creating a separate output cube.
Definition: ProcessByBrick.h:200
Isis::ProcessByBrick
Process cubes by brick.
Definition: ProcessByBrick.h:81
Isis::ProcessByBrick::ProcessCubes
void ProcessCubes(const Functor &functor, bool threaded=true)
Operate over an arbitrary number of input cubes given an arbitrary number of output cubes.
Definition: ProcessByBrick.h:239
Isis::ProcessByLine::ProcessCubes
void ProcessCubes(const Functor &funct, bool threaded=true)
Same functionality as StartProcess(std::vector<Isis::Buffer *> &in, std::vector<Isis::Buffer *> &out)...
Definition: ProcessByLine.h:174
ProcessByLine.h
Isis::ProcessByBrick::InPlace
@ InPlace
Definition: ProcessByBrick.h:89
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::SpatialMatch
const int SpatialMatch
Definition: Process.h:21
Isis::BandMatchOrOne
const int BandMatchOrOne
Definition: Process.h:23
Isis::ProcessByBrick::InputOutputList
@ InputOutputList
Definition: ProcessByBrick.h:91
IException.h
std
Namespace for the standard library.
Isis::ProcessByLine::StartProcess
void StartProcess(void funct(Isis::Buffer &inout))
This method invokes the process by line operation over a single input or output cube.
Definition: ProcessByLine.cpp:130
Isis::CubeAttributeInput
Manipulate and parse attributes of input cube filenames.
Definition: CubeAttribute.h:381
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::ProcessByBrick::InputOutput
@ InputOutput
Definition: ProcessByBrick.h:90