Skip to content
Snippets Groups Projects
Commit 79691221 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

MaskPattern -> local

parent 298f0d13
No related branches found
No related tags found
1 merge request!2134rename some files and directories in GUI/View
...@@ -18,6 +18,16 @@ ...@@ -18,6 +18,16 @@
#include "Device/Data/Datafield.h" #include "Device/Data/Datafield.h"
#include "Device/Mask/IShape2D.h" #include "Device/Mask/IShape2D.h"
struct MaskPattern {
MaskPattern(IShape2D* shape_, bool doMask_, bool in_bins_);
MaskPattern(const MaskPattern&) = delete;
~MaskPattern();
MaskPattern* clone() const;
IShape2D* shape; // cloneable
bool doMask;
bool inBins;
};
MaskPattern::MaskPattern(IShape2D* shape_, bool doMask_, bool in_bins_) MaskPattern::MaskPattern(IShape2D* shape_, bool doMask_, bool in_bins_)
: shape(shape_) : shape(shape_)
, doMask(doMask_) , doMask(doMask_)
...@@ -36,6 +46,10 @@ MaskPattern* MaskPattern::clone() const ...@@ -36,6 +46,10 @@ MaskPattern* MaskPattern::clone() const
} }
MaskStack::MaskStack() = default;
MaskStack::MaskStack(const MaskStack&) = default;
MaskStack::~MaskStack() = default;
void MaskStack::maskToStack(const IShape2D& shape, bool mask_value, bool in_bins) void MaskStack::maskToStack(const IShape2D& shape, bool mask_value, bool in_bins)
{ {
m_stack.emplace_back(new MaskPattern(shape.clone(), mask_value, in_bins)); m_stack.emplace_back(new MaskPattern(shape.clone(), mask_value, in_bins));
......
...@@ -23,22 +23,15 @@ ...@@ -23,22 +23,15 @@
class IShape2D; class IShape2D;
class Frame; class Frame;
struct MaskPattern;
class MaskPattern {
public:
MaskPattern(IShape2D* shape_, bool doMask_, bool in_bins_);
MaskPattern(const MaskPattern&) = delete;
~MaskPattern();
MaskPattern* clone() const;
IShape2D* shape; // cloneable
bool doMask;
bool inBins;
};
//! Collection of detector masks. //! Collection of detector masks.
class MaskStack { class MaskStack {
public: public:
MaskStack();
MaskStack(const MaskStack&);
~MaskStack();
//! Add mask to the stack of detector masks. //! Add mask to the stack of detector masks.
//! Argument mask_value=true means that the area will be excluded from the analysis. //! Argument mask_value=true means that the area will be excluded from the analysis.
void maskToStack(const IShape2D& shape, bool mask_value, bool in_bins); void maskToStack(const IShape2D& shape, bool mask_value, bool in_bins);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment