-
Notifications
You must be signed in to change notification settings - Fork 1
/
ImagedAction.h
35 lines (32 loc) · 1.17 KB
/
ImagedAction.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
#ifndef INC_IMAGEDACTION_H
#define INC_IMAGEDACTION_H
#include "DistRoutines.h"
// TODO: Add ucell and recip to here
class ImagedAction {
public:
ImagedAction() : imageType_(NOIMAGE), useImage_(false) {}
void InitImaging( bool imageIn ) { useImage_ = imageIn; }
void SetupImaging( Box::BoxType parmboxtype ) {
if (!useImage_)
// Imaging disabled
imageType_ = NOIMAGE;
else {
if (parmboxtype == Box::NOBOX) {
imageType_ = NOIMAGE;
//if (debug>0)
// mprintf(" Warning: No box info in %s, disabling imaging.\n",currentParm->c_str());
} else if (parmboxtype == Box::ORTHO)
imageType_ = ORTHO;
else
imageType_ = NONORTHO;
}
}
/// Return true if imaging is currently enabled.
bool ImagingEnabled() const { return (imageType_ != NOIMAGE); }
bool UseImage() const { return useImage_; } ///< True if imaging is desired.
ImagingType ImageType() const { return imageType_; } ///< Return type of imaging.
private:
ImagingType imageType_; ///< Type of imaging to be performed.
bool useImage_; ///< If true, use imaging.
};
#endif