13 #ifndef mitkSegTool2D_h_Included 14 #define mitkSegTool2D_h_Included 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();
180 static void UpdateSurfaceInterpolation(
const std::vector<SliceInformation>& sliceInfos,
181 const Image* workingImage,
182 bool detectIntersection);
221 void WriteBackSegmentationResults(
const std::vector<SliceInformation> &sliceList,
bool writeSliceToVolume =
true);
232 static void WriteBackSegmentationResults(
const DataNode* workingNode,
const std::vector<SliceInformation>& sliceList,
bool writeSliceToVolume =
true);
245 static void WritePreviewOnWorkingImage(
246 Image *targetSlice,
const Image *sourceSlice,
const Image *workingImage,
int paintingPixelValue);
257 static void WriteSliceToVolume(
Image* workingImage,
const SliceInformation &sliceInfo,
bool allowUndo);
264 int AddContourmarker(
const PlaneGeometry* planeGeometry,
unsigned int sliceIndex);
266 void InteractiveSegmentationBugMessage(
const std::string &message)
const;
269 unsigned int m_LastEventSlice = 0;
277 void OnTimePointChangedInternal();
279 static void RemoveContourFromInterpolator(
const SliceInformation& sliceInfo);
282 const std::string m_Contourmarkername;
284 bool m_ShowMarkerNodes =
false;
285 static bool m_SurfaceInterpolationEnabled;
287 bool m_IsTimePointChangeAware =
true;
Super class for all position events.
Organizes the rendering process.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Constants for most interaction classes, due to the generic StateMachines.
#define mitkClassMacro(className, SuperClassName)
Image class for storing images.
mitk::ScalarType TimePointType
std::vcl_size_t TimeStepType
Describes a two-dimensional, rectangular plane.
Class for nodes of the DataTree.