MeVisLabToolboxReference
|
00001 // **InsertLicense** code 00002 //---------------------------------------------------------------------------------- 00004 00011 #ifndef __WEMCut_H 00012 #define __WEMCut_H 00013 00014 #include "WEMTools/WEMToolsIncludes.h" 00015 #include "WEMFaceCut.h" 00016 00017 ML_START_NAMESPACE 00018 00020 00022 class MLWEM_EXPORT WEMCut 00023 { 00024 public: 00025 00027 WEMCut(); 00029 ~WEMCut(); 00030 00032 inline std::vector<Vector3> getPositions() const { return _positions; } 00033 00035 inline bool isValid() const { return _valid; } 00036 00038 void appendFaceCut(WEMFaceCut *faceCut, bool reverse); 00039 00041 void prependFaceCut(WEMFaceCut *faceCut, bool reverse); 00042 00044 void addStab(WEMFaceCut *faceCut); 00045 00047 void setValid(bool valid); 00048 00050 bool isClosed() const; 00051 00052 private: 00053 00055 std::vector<Vector3> _positions; 00056 00058 bool _valid; 00059 }; 00060 00062 00063 ML_END_NAMESPACE 00064 00065 #endif // __WEMCut_H