Isis Developer Reference
ProcessByBoxcar.h
Go to the documentation of this file.
1#ifndef ProcessByBoxcar_h
2#define ProcessByBoxcar_h
8/* SPDX-License-Identifier: CC0-1.0 */
9#include "Process.h"
10#include "Buffer.h"
11
12namespace Isis {
40
41 private:
42 bool p_boxsizeSet;
43 int p_boxSamples;
44 int p_boxLines;
45
46
47 public:
48
51 p_boxsizeSet = false;
52 };
53
55 virtual ~ProcessByBoxcar() {};
56
57 void SetBoxcarSize(const int ns, const int nl);
58
59 using Isis::Process::StartProcess; // make parent functions visable
60 virtual void StartProcess(void funct(Isis::Buffer &in, double &out));
61 void ProcessCube(void funct(Isis::Buffer &in, double &out)) {
62 StartProcess(funct);
63 }
64
65 void EndProcess();
66 void Finalize();
67 };
68};
69
70#endif
Buffer for reading and writing cube data.
Definition Buffer.h:53
Process cubes by boxcar.
Definition ProcessByBoxcar.h:39
void EndProcess()
End the boxcar processing sequence and cleans up by closing cubes, freeing memory,...
Definition ProcessByBoxcar.cpp:112
virtual ~ProcessByBoxcar()
Destroys the ProcessByBoxcar object.
Definition ProcessByBoxcar.h:55
ProcessByBoxcar()
Constructs a ProcessByBoxcar object.
Definition ProcessByBoxcar.h:50
virtual void StartProcess(void funct(Isis::Buffer &in, double &out))
Starts the systematic processing of the input cube by moving a boxcar, p_boxSamples by p_boxLines,...
Definition ProcessByBoxcar.cpp:42
void SetBoxcarSize(const int ns, const int nl)
Sets the boxcar size.
Definition ProcessByBoxcar.cpp:24
void Finalize()
End the boxcar processing sequence and cleans up by closing cubes, freeing memory,...
Definition ProcessByBoxcar.cpp:123
void ProcessCube(void funct(Isis::Buffer &in, double &out))
Definition ProcessByBoxcar.h:61
Base class for all cube processing derivatives.
Definition Process.h:143
virtual void StartProcess(void funct())
In the base class, this method will invoked a user-specified function exactly one time.
Definition Process.h:213
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16