13 #ifndef mitkSegTool2D_h
14 #define mitkSegTool2D_h
71 static bool DetermineAffectedImageSlice(
const Image *image,
73 int &affectedDimension,
85 static void UpdateAllSurfaceInterpolations(
const LabelSetImage* workingImage,
88 bool detectIntersection);
116 unsigned int component = 0);
120 unsigned int component = 0);
130 void SetShowMarkerNodes(
bool);
136 void SetEnable3DInterpolation(
bool);
138 void Activated()
override;
139 void Deactivated()
override;
141 itkSetMacro(IsTimePointChangeAware,
bool);
142 itkGetMacro(IsTimePointChangeAware,
bool);
143 itkBooleanMacro(IsTimePointChangeAware);
153 DataNode* GetWorkingDataNode()
const;
154 Image* GetWorkingData()
const;
156 DataNode* GetReferenceDataNode()
const;
157 Image* GetReferenceData()
const;
162 virtual void OnTimePointChanged();
185 static void UpdateSurfaceInterpolation(
const std::vector<SliceInformation>& sliceInfos,
186 const Image* workingImage,
187 bool detectIntersection,
227 void WriteBackSegmentationResults(
const std::vector<SliceInformation> &sliceList,
bool writeSliceToVolume =
true);
238 static void WriteBackSegmentationResults(
const DataNode* workingNode,
const std::vector<SliceInformation>& sliceList,
bool writeSliceToVolume =
true);
249 static void WriteSliceToVolume(
Image* workingImage,
const SliceInformation &sliceInfo,
bool allowUndo);
256 int AddContourmarker(
const PlaneGeometry* planeGeometry,
unsigned int sliceIndex);
258 void InteractiveSegmentationBugMessage(
const std::string &message)
const;
265 unsigned int m_LastEventSlice = 0;
271 void PopCursor(
bool popFirstCursor =
false);
272 void PopAllCursors();
278 void OnTimePointChangedInternal();
283 const std::string m_Contourmarkername;
285 bool m_ShowMarkerNodes =
false;
286 static bool m_SurfaceInterpolationEnabled;
288 bool m_IsTimePointChangeAware =
true;
292 unsigned int m_NumPushedCursors = 0;