15 #include "mitkCreateSurfaceTool.xpm" 22 #include "itkCommand.h" 39 return mitkCreateSurfaceTool_xpm;
49 return "No surfaces created for these segmentations:";
65 itk::SimpleMemberCommand<CreateSurfaceTool>::Pointer goodCommand =
66 itk::SimpleMemberCommand<CreateSurfaceTool>::New();
69 itk::SimpleMemberCommand<CreateSurfaceTool>::Pointer badCommand =
70 itk::SimpleMemberCommand<CreateSurfaceTool>::New();
75 surfaceFilter->SetPointerParameter(
"Input", image);
76 surfaceFilter->SetPointerParameter(
"Group node", nodepointer);
77 surfaceFilter->SetParameter(
"Show result",
true);
78 surfaceFilter->SetParameter(
"Sync visibility",
false);
79 surfaceFilter->SetDataStorage(*m_ToolManager->GetDataStorage());
83 surfaceFilter->StartAlgorithm();
97 m_ToolManager->NewNodesGenerated();
void Progress(unsigned int steps=1)
Sets the current amount of progress to current progress + steps.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
static ProgressBar * GetInstance()
static method to get the GUI dependent ProgressBar-instance so the methods for steps to do and progre...
MITK_TOOL_MACRO(MITKSEGMENTATION_EXPORT, LiveWireTool2D, "LiveWire tool")
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
void DisplayText(const char *t)
Send a string to the applications StatusBar.
Image class for storing images.
mitk::Image::Pointer image
static StatusBar * GetInstance()
static method to get the GUI dependent StatusBar-instance so the methods DisplayText, etc. can be called No reference counting, cause of decentral static use!
void AddStepsToDo(unsigned int steps)
Adds steps to totalSteps.
Class for nodes of the DataTree.