From 53b73dec4d6e71899d183335509591b7c89a419b Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Thu, 14 Jun 2012 18:34:23 -0400 Subject: pushing the fly-tools into this repository --- fly-tools/FrameInfo.cpp | 72 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 fly-tools/FrameInfo.cpp (limited to 'fly-tools/FrameInfo.cpp') diff --git a/fly-tools/FrameInfo.cpp b/fly-tools/FrameInfo.cpp new file mode 100644 index 0000000..d00e4cd --- /dev/null +++ b/fly-tools/FrameInfo.cpp @@ -0,0 +1,72 @@ +/* + * FrameInfo.cpp + * + * + * Created by Md. Alimoor Reza on 6/26/10. + * Copyright 2010 Drexel University. All rights reserved. + * + */ + +#include "FrameInfo.h" + +FrameInfo::FrameInfo(int frameNo, vector fOVector, bool isSingleBlob) { + this->frameNo = frameNo; + this->fOVector = fOVector; + this->isSingleBlob = isSingleBlob; + +} +FrameInfo::FrameInfo(const FrameInfo &f) { + this->frameNo = f.getFrameNo(); + this->fOVector = f.getFOVector(); + this->isSingleBlob = f.getIsSingleBlob(); + +} +int FrameInfo::getFrameNo() const { + return frameNo; +} +bool FrameInfo::getIsSingleBlob() const { + return isSingleBlob; +} +vector FrameInfo::getFOVector() const{ + return fOVector; +} + +void FrameInfo::setFrameNo(int fn) { + this->frameNo = fn; +} +void FrameInfo::setIsSingleBlob(bool isSingleBlob) { + this->isSingleBlob = isSingleBlob; +} +void FrameInfo::setFOVector(vector fov) { + this->fOVector = fov; + +// cout << "setting fov \n"; +// FlyObject a = fOVector[0]; +// pair av = a.getVelocityV(); +// cout << "velocity "< bv = b.getVelocityV(); +// cout << "velocity "< 1) { + cout << "swapping\n"; + FlyObject a = fOVector[0]; + fOVector[0] = fOVector[1]; + fOVector[1] = a; + } +} +void FrameInfo::output(ostream &out) { + out<<"FrameNo : "<