-
Notifications
You must be signed in to change notification settings - Fork 0
/
vmtkImageSeeder.h
90 lines (62 loc) · 1.36 KB
/
vmtkImageSeeder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#ifndef VMTK_IMAGE_SEEDER_HPP_
#define VMTK_IMAGE_SEEDER_HPP_
#include <vtkImageData.h>
#include <vtkRenderer.h>
#include <vtkImagePlaneWidget.h>
#include <vtkSmartPointer.h>
#include <vtkCellPicker.h>
#include <log4cpp/Category.hh>
#include <log4cpp/PropertyConfigurator.hh>
#include <vtkAddSeedCallBack.h>
#include <string>
#include <vtkPointData.h>
#include <vtkGlyph3D.h>
#include <vtkSphereSource.h>
#include <vtkPolyDataMapper.h>
#include <vtkProperty.h>
#include "Uncopyable.h"
class vmtkImageSeeder:public vtkObjectBase
{
public:
vtkTypeMacro(vmtkImageSeeder,vtkObjectBase);
static vmtkImageSeeder* New();
protected:
vmtkImageSeeder();
~vmtkImageSeeder();
public:
void execute();
private:
//外部传入的实例
vtkImageData*Image;
//外部传入的实例
vtkRenderer*Renderer;
//外部传入的plane
vtkImagePlaneWidget*planes[3];
int Display;
int KeepSeeds;
/**
*本类创建
*/
vtkSmartPointer<vtkCellPicker> Picker;
/**
*本类创建
*/
vtkSmartPointer<vtkPolyData> Seeds;
/**
*
*/
vtkSmartPointer<vtkActor> SeedActor;
std::string ArrayName;
private:
void WidgetsOn();
void WidgetsOff();
public:
void InitializeSeeds();
void BuildView();
void setRenderer(vtkRenderer* renderer);
void setImage(vtkImageData*_image);
void setDisplay(int display);
void setPlaneWidget(vtkImagePlaneWidget*_planeWidget[3]);
vtkPolyData* getSeeds();
};
#endif