aboutsummaryrefslogtreecommitdiff
path: root/fly-tools/FrameInfo.cpp
blob: c02e3f7aaed4e939e4276029b702ec0605be25f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
 *  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<FlyObject > 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<FlyObject > 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<FlyObject > fov)  {
	this->fOVector = fov;
}

void FrameInfo ::swapTheFlyObject() {
	if (fOVector.size() > 1) {
		cout << "swapping\n";
		FlyObject a = fOVector[0];
		fOVector[0] = fOVector[1];
		fOVector[1] = a;
	}
}

void FrameInfo::output(ostream &out) {
	out<<"FrameNo			: "<<frameNo<<endl;
	out<<"IsSingleBlob		: "<<isSingleBlob<<endl;
	for (unsigned int i=0; i<fOVector.size(); i++) {
		FlyObject a = fOVector[i];
		a.output(out);
	}
}