MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
WEMRequirements.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#pragma once
14
15#include "MLWEMIncludes.h"
16
18
20
21class WEMPatch;
22
24
27{
28public:
33
35 inline bool areEdgesRequired() const
36 {
37 return _requireEdges;
38 }
40 inline bool areNormalsRequired() const
41 {
42 return _requireNormals;
43 }
45 inline bool isSinglePatchRequired() const
46 {
47 return _requireSinglePatch;
48 }
51 {
52 return _requirePatchType;
53 }
56 {
57 return (_requirePatchType == patchType);
58 }
61 {
62 return _requireOrientationType;
63 }
66 {
67 return (_requireOrientationType == orientationType);
68 }
69
71 inline void requireEdges(bool requireEdgesFlag = true)
72 {
73 _requireEdges = requireEdgesFlag;
74 }
76 inline void requireNormals(bool requireNormalsFlag = true)
77 {
78 _requireNormals = requireNormalsFlag;
79 }
82 {
83 _requireSinglePatch = requireSinglePatchFlag;
84 }
87 {
88 _requirePatchType = patchType;
89 }
92 {
93 _requireOrientationType = orientationType;
94 }
95
96private:
98 bool _requireEdges;
100 bool _requireNormals;
102 bool _requireSinglePatch;
103
105 PatchTypes _requirePatchType;
107 OrientationTypes _requireOrientationType;
108};
109
111
#define MLWEM_EXPORT
Definition MLWEMSystem.h:18
This class represents WEMPatch requirements to be used by WEMProcessor.
void requireEdges(bool requireEdgesFlag=true)
Sets to require edges.
bool isOrientationTypeRequired(OrientationTypes orientationType) const
Returns whether the given orientation type is required.
void requirePatchType(PatchTypes patchType)
Sets to require the patch type.
~WEMRequirements()
Standard destructor.
void requireOrientationType(OrientationTypes orientationType)
Sets to require the orientation type.
PatchTypes getRequiredPatchType() const
Returns the required patch type.
bool isSinglePatchRequired() const
Returns whether a single patch is required.
WEMRequirements()
Standard constructor.
OrientationTypes getRequiredOrientationType() const
Returns the required orientation.
void requireSinglePatch(bool requireSinglePatchFlag=true)
Sets to require single patch.
bool isPatchTypeRequired(PatchTypes patchType) const
Returns whether the given patch type is required.
bool areEdgesRequired() const
Returns whether edges are required.
void requireNormals(bool requireNormalsFlag=true)
Sets to require normals.
bool areNormalsRequired() const
Returns whether normals are required.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
OrientationTypes
Enumeration of orientation types.
PatchTypes
Enumeration of mesh types.