13 #ifndef mitkSegTool2D_h
14 #define mitkSegTool2D_h
69 static bool DetermineAffectedImageSlice(
const Image *image,
71 int &affectedDimension,
83 static void UpdateSurfaceInterpolation(
const Image *slice,
84 const Image *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,
186 unsigned int activeLayerID,
226 void WriteBackSegmentationResults(
const std::vector<SliceInformation> &sliceList,
bool writeSliceToVolume =
true);
237 static void WriteBackSegmentationResults(
const DataNode* workingNode,
const std::vector<SliceInformation>& sliceList,
bool writeSliceToVolume =
true);
250 static void WritePreviewOnWorkingImage(
251 Image *targetSlice,
const Image *sourceSlice,
const Image *workingImage,
int paintingPixelValue);
262 static void WriteSliceToVolume(
Image* workingImage,
const SliceInformation &sliceInfo,
bool allowUndo);
269 int AddContourmarker(
const PlaneGeometry* planeGeometry,
unsigned int sliceIndex);
271 void InteractiveSegmentationBugMessage(
const std::string &message)
const;
278 unsigned int m_LastEventSlice = 0;
286 void OnTimePointChangedInternal();
288 static void RemoveContourFromInterpolator(
const SliceInformation& sliceInfo);
291 const std::string m_Contourmarkername;
293 bool m_ShowMarkerNodes =
false;
294 static bool m_SurfaceInterpolationEnabled;
296 bool m_IsTimePointChangeAware =
true;