forked from atsommer/Simplicio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImageData.h
More file actions
54 lines (48 loc) · 1.36 KB
/
Copy pathImageData.h
File metadata and controls
54 lines (48 loc) · 1.36 KB
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
#pragma once
//ImageData.h
//ImageData represents a layered image
//ImageData stores the bytes of the image, 16 bits per pixel
namespace forms2{
using namespace System;
using namespace System::IO;
using namespace System::Drawing;
using namespace System::Collections::Generic;
using namespace DataStructures;
public ref class ImageData
{
public:
ImageData(UInt16* b,int r, int c, int l, bool d,bool sf, DateTime dt){
init(b,r,c,l,d,sf,dt);
}
~ImageData(){
}
UInt16 getValue(int i);
UInt16 getValue(int r,int c,int l,int frame);
int getRows(){return rows;}
int getCols(){return cols;}
int getLayers(){return layers;}
int getLength(){return length;}
int getDoubler(){return dbl;}
DateTime getDateTime(){return dateTime;}
bool isDouble(){return (dbl==2);}
bool getSaved(){return saved;}
String^ getDateTimeString();
UInt16 getMaxValue(int layer, int frame);
UInt16 getMaxValue(int layer);
void saveFile(String^ path);
void setSeqVars(LinkedList<Variable^>^ vars);
LinkedList<Variable^>^ getSeqVars(){return seqVars;}
private:
array<UInt16>^ imageBuffer;
LinkedList<Variable^>^ seqVars;
int rows;
int cols;
int layers;
int length;
int dbl;
bool saved;
bool singleFrame;
DateTime dateTime;//time and date when this ImageData object was created
void init(UInt16* b, int r, int c, int l, bool d, bool sf, DateTime dt);
};
}