Isis 3 Programmer Reference
BoxcarManager.cpp
Go to the documentation of this file.
1 
24 #include "BoxcarManager.h"
25 
26 using namespace std;
27 namespace Isis {
37  BoxcarManager::BoxcarManager(const Isis::Cube &cube,
38  const int &boxSamples, const int &boxLines) :
39  Isis::BufferManager(cube.sampleCount(), cube.lineCount(),
40  cube.bandCount(), boxSamples, boxLines, 1,
41  cube.pixelType()) {
42 
44  int soff, loff, boff;
45  soff = (int)((boxSamples - 1) / 2) * -1;
46  loff = (int)((boxLines - 1) / 2) * -1;
47  boff = 0;
48  Isis::BufferManager::SetOffsets(soff, loff, boff);
49  }
50 } // end namespace isis
51 
void SetOffsets(const int soff, const int loff, const int boff)
Sets the offset of the buffer.
Namespace for the standard library.
Manages a Buffer over a cube.
Definition: BufferManager.h:68
void SetIncrements(const int sinc, const int linc, const int binc)
Sets how the shape is incremented through the cube.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
IO Handler for Isis Cubes.
Definition: Cube.h:170