-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMarkerCreator.h
More file actions
53 lines (32 loc) · 816 Bytes
/
Copy pathMarkerCreator.h
File metadata and controls
53 lines (32 loc) · 816 Bytes
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
#pragma once
#include <set>
#include <map>
#include "vtkProp3D.h"
#include "vtkRenderer.h"
#include "vtkVector.h"
class MarkerCreator
{
struct Line {
vtkProp3D* point1;
vtkProp3D* point2;
};
struct LineInfo {
vtkProp3D* Line;
};
public:
MarkerCreator();
bool TestMark(int x, int y, vtkRenderer* renderer);
vtkProp3D* CreateMarker(vtkRenderer* renderer,vtkVector3d worldPosition);
void RemoveMarker(vtkProp3D* marker);
bool isMarker(vtkProp3D* target) const;
void CreateLine(vtkRenderer* renderer);
void SelectMarker(vtkProp3D* target);
virtual ~MarkerCreator();
private:
void UnSelectMarker(vtkProp3D* target);
vtkProp3D* LastMarker;
vtkProp3D* CurrentMarker;
std::set<vtkProp3D*> MarkerSet;
std::set<vtkProp3D*> SelectedMarkerSet;
std::map<Line, LineInfo> LineMap;
};