Isis 3 Programmer Reference
BoxcarManager.cpp
1 
6 /* SPDX-License-Identifier: CC0-1.0 */
7 
8 #include "BoxcarManager.h"
9 
10 using namespace std;
11 namespace Isis {
21  BoxcarManager::BoxcarManager(const Isis::Cube &cube,
22  const int &boxSamples, const int &boxLines) :
23  Isis::BufferManager(cube.sampleCount(), cube.lineCount(),
24  cube.bandCount(), boxSamples, boxLines, 1,
25  cube.pixelType()) {
26 
28  int soff, loff, boff;
29  soff = (int)((boxSamples - 1) / 2) * -1;
30  loff = (int)((boxLines - 1) / 2) * -1;
31  boff = 0;
32  Isis::BufferManager::SetOffsets(soff, loff, boff);
33  }
34 } // end namespace isis
35 
Isis::BufferManager::SetIncrements
void SetIncrements(const int sinc, const int linc, const int binc)
Sets how the shape is incremented through the cube.
Definition: BufferManager.cpp:140
Isis::BufferManager
Manages a Buffer over a cube.
Definition: BufferManager.h:52
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::BufferManager::SetOffsets
void SetOffsets(const int soff, const int loff, const int boff)
Sets the offset of the buffer.
Definition: BufferManager.cpp:179
std
Namespace for the standard library.
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16