-
Notifications
You must be signed in to change notification settings - Fork 16
/
GridPicture.H
40 lines (30 loc) · 971 Bytes
/
GridPicture.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
// ---------------------------------------------------------------
// GridPicture.H
// ---------------------------------------------------------------
#ifndef _GRIDPICTURE_H
#define _GRIDPICTURE_H
#include <AMReX_AmrvisConstants.H>
#include <AMReX_Box.H>
class GridPicture {
public:
GridPicture();
~GridPicture();
void GridPictureInit(int level, int rratio, int scale,
int picSizeH, int picSizeV,
const amrex::Box &overlapbox,
const amrex::Box &boxWithData,
int slicedir);
void ChangeScale(int newScale, int picSizeH, int picSizeV);
int HPositionInPicture();
int VPositionInPicture();
int ImageSizeH() const { return imageSizeH; }
int ImageSizeV() const { return imageSizeV; }
private:
amrex::Box overlapBox;
unsigned int dataSizeH, dataSizeV;
unsigned int imageSizeH, imageSizeV;
unsigned int pictureSizeH, pictureSizeV;
int currentScale, refRatio, sliceDir;
amrex::Box imageBox;
};
#endif