Isis 3 Programmer Reference
ProcessByBoxcar.h
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:
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.
void EndProcess()
End the boxcar processing sequence and cleans up by closing cubes, freeing memory,...
int p_boxLines
Number of lines in boxcar.
virtual ~ProcessByBoxcar()
Destroys the ProcessByBoxcar object.
ProcessByBoxcar()
Constructs a ProcessByBoxcar object.
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,...
void SetBoxcarSize(const int ns, const int nl)
Sets the boxcar size.
bool p_boxsizeSet
Indicates whether the boxcar size has been set.
void Finalize()
End the boxcar processing sequence and cleans up by closing cubes, freeing memory,...
int p_boxSamples
Number of samples in boxcar.
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