13 #ifndef mitkSegTool2D_h
14 #define mitkSegTool2D_h
71 static bool DetermineAffectedImageSlice(
const Image *image,
73 int &affectedDimension,
88 bool detectIntersection);
116 unsigned int component = 0);
120 unsigned int component = 0);
134 static void WriteBackSegmentationResult(
const DataNode* workingNode,
const PlaneGeometry* planeGeometry,
const Image* segmentationResult,
TimeStepType timeStep,
const std::string& toolName);
145 void SetShowMarkerNodes(
bool);
151 void SetEnable3DInterpolation(
bool);
153 void Activated()
override;
154 void Deactivated()
override;
156 itkSetMacro(IsTimePointChangeAware,
bool);
157 itkGetMacro(IsTimePointChangeAware,
bool);
158 itkBooleanMacro(IsTimePointChangeAware);
168 DataNode* GetWorkingDataNode()
const;
171 DataNode* GetReferenceDataNode()
const;
172 Image* GetReferenceData()
const;
177 virtual void OnTimePointChanged();
200 static void UpdateSurfaceInterpolation(
const std::vector<SliceInformation>& sliceInfos,
201 const Image* workingImage,
202 bool detectIntersection,
242 void WriteBackSegmentationResults(
const std::vector<SliceInformation> &sliceList,
bool writeSliceToVolume =
true);
255 static void WriteBackSegmentationResults(
const DataNode* workingNode,
const std::vector<SliceInformation>& sliceList,
bool writeSliceToVolume =
true,
bool allowUndo =
true,
const std::string& toolName =
"");
271 int AddContourmarker(
const PlaneGeometry* planeGeometry,
unsigned int sliceIndex);
272 void DisableContourMarkers();
274 void InteractiveSegmentationBugMessage(
const std::string &message)
const;
281 unsigned int m_LastEventSlice = 0;
287 void PopCursor(
bool popFirstCursor =
false);
288 void PopAllCursors();
294 void OnTimePointChangedInternal();
299 const std::string m_Contourmarkername;
300 bool m_EnableContourMarkers =
true;
301 bool m_ShowMarkerNodes =
false;
302 static bool m_SurfaceInterpolationEnabled;
304 bool m_IsTimePointChangeAware =
true;
308 unsigned int m_NumPushedCursors = 0;