Contour vectors

This commit is contained in:
Dan Paulat 2021-12-27 12:29:03 -06:00
parent 96cd27adcb
commit e505edf156
8 changed files with 515 additions and 16 deletions

View file

@ -32,10 +32,10 @@ public:
uint16_t lengthOfBlock_;
uint16_t valueOfVector_;
std::vector<uint16_t> beginI_;
std::vector<uint16_t> beginJ_;
std::vector<uint16_t> endI_;
std::vector<uint16_t> endJ_;
std::vector<int16_t> beginI_;
std::vector<int16_t> beginJ_;
std::vector<int16_t> endI_;
std::vector<int16_t> endJ_;
};
UnlinkedVectorPacket::UnlinkedVectorPacket() :
@ -103,11 +103,11 @@ bool UnlinkedVectorPacket::Parse(std::istream& is)
// The number of vectors is equal to the size divided by the number of bytes
// in a vector
int vectorCount = vectorSize / 8;
uint16_t beginI;
uint16_t beginJ;
uint16_t endI;
uint16_t endJ;
int vectorCount = vectorSize / 8;
int16_t beginI;
int16_t beginJ;
int16_t endI;
int16_t endJ;
for (int v = 0; v < vectorCount && !is.eof(); v++)
{