-
Notifications
You must be signed in to change notification settings - Fork 1
/
volume.h
42 lines (37 loc) · 1.23 KB
/
volume.h
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
#ifndef VOLUME_H
#define VOLUME_H
#include "window.h"
#include "slice.h"
#include "imagedata.h"
#include "layer.h"
#include <string>
#include <vector>
#include <map>
using namespace std;
class Volume
{
protected:
int voxel_count; //count of total number of voxels in the volume
map<int, float> Map; //mapping the number of voxels to range of intensity
float minIntensity ;
float maxIntensity;
public:
Volume();
virtual void render(Window* window) = 0;
virtual void setImageData(ImageData* data) = 0;
virtual void setLayers(Layer* layers, int numberOfLayers) = 0;
virtual void setCustomLayers(Layer* customLayers, int numberOfCustomLayers) = 0;
virtual void createVolume() = 0;
virtual void updateVOI(int xmin, int xmax, int ymin, int ymax, int zmin, int zmax)=0;
virtual void addPadding()=0;
virtual void makeIntervals() =0;
virtual void updatePlane(Slice* slice, int type)=0;
virtual void axialPlane(bool visibility)=0;
virtual void coronalPlane(bool visibility)=0;
virtual void sagittalPlane(bool visibility)=0;
virtual void updateTransferFunctions()=0;
virtual void changeLayerMode(int mode)=0;
float getMinIntensity();
float getMaxIntensity();
};
#endif // VOLUME_H