13 #ifndef mitkSegTool2D_h
14 #define mitkSegTool2D_h
69 static bool DetermineAffectedImageSlice(
const Image *image,
71 int &affectedDimension,
83 static void UpdateAllSurfaceInterpolations(
const LabelSetImage* workingImage,
86 bool detectIntersection);
114 unsigned int component = 0);
118 unsigned int component = 0);
128 void SetShowMarkerNodes(
bool);
134 void SetEnable3DInterpolation(
bool);
136 void Activated()
override;
137 void Deactivated()
override;
139 itkSetMacro(IsTimePointChangeAware,
bool);
140 itkGetMacro(IsTimePointChangeAware,
bool);
141 itkBooleanMacro(IsTimePointChangeAware);
151 DataNode* GetWorkingDataNode()
const;
152 Image* GetWorkingData()
const;
154 DataNode* GetReferenceDataNode()
const;
155 Image* GetReferenceData()
const;
160 virtual void OnTimePointChanged();
183 static void UpdateSurfaceInterpolation(
const std::vector<SliceInformation>& sliceInfos,
184 const Image* workingImage,
185 bool detectIntersection,
225 void WriteBackSegmentationResults(
const std::vector<SliceInformation> &sliceList,
bool writeSliceToVolume =
true);
236 static void WriteBackSegmentationResults(
const DataNode* workingNode,
const std::vector<SliceInformation>& sliceList,
bool writeSliceToVolume =
true);
247 static void WriteSliceToVolume(
Image* workingImage,
const SliceInformation &sliceInfo,
bool allowUndo);
254 int AddContourmarker(
const PlaneGeometry* planeGeometry,
unsigned int sliceIndex);
256 void InteractiveSegmentationBugMessage(
const std::string &message)
const;
263 unsigned int m_LastEventSlice = 0;
271 void OnTimePointChangedInternal();
276 const std::string m_Contourmarkername;
278 bool m_ShowMarkerNodes =
false;
279 static bool m_SurfaceInterpolationEnabled;
281 bool m_IsTimePointChangeAware =
true;