MeVisLab Toolbox Reference
WEMCut.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 
16 #include "WEMFaceCut.h"
17 
18 ML_START_NAMESPACE
19 
21 
24 {
25 public:
26 
28  WEMCut();
31 
33  inline std::vector<Vector3> getPositions() const { return _positions; }
34 
36  inline bool isValid() const { return _valid; }
37 
39  void appendFaceCut(WEMFaceCut *faceCut, bool reverse);
40 
42  void prependFaceCut(WEMFaceCut *faceCut, bool reverse);
43 
45  void addStab(WEMFaceCut *faceCut);
46 
48  void setValid(bool valid);
49 
51  bool isClosed() const;
52 
53 private:
54 
56  std::vector<Vector3> _positions;
57 
59  bool _valid;
60 };
61 
63 
64 ML_END_NAMESPACE
#define MLWEM_EXPORT
Definition: MLWEMSystem.h:18
Class to manage cut faces.
Definition: WEMCut.h:24
void addStab(WEMFaceCut *faceCut)
Adds the given stab.
void prependFaceCut(WEMFaceCut *faceCut, bool reverse)
Prepends the given face cut.
WEMCut()
Default constructor.
void appendFaceCut(WEMFaceCut *faceCut, bool reverse)
Appends the given face cut.
std::vector< Vector3 > getPositions() const
Get positions.
Definition: WEMCut.h:33
void setValid(bool valid)
Sets the valid flag.
~WEMCut()
Default destructor.
bool isClosed() const
Returns whether this cut is closed.
bool isValid() const
Returns whether this cut is valid.
Definition: WEMCut.h:36
Helper class for performing a cutting on a face.
Definition: WEMFaceCut.h:31