-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwxcapoc_tree.h
62 lines (49 loc) · 1.81 KB
/
wxcapoc_tree.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
class wxCapoc_ItemData : public wxTreeItemData {
public:
explicit wxCapoc_ItemData(unsigned int type);
unsigned int itemType;
std::string pointName = "";
union {
unsigned int modelId = 0;
unsigned int camIndex;
};
};
enum {
ITEM_ROOT = 0,
ITEM_MODEL, ITEM_POINT, ITEM_IMAGE
};
class wxCapoc_Tree : public wxTreeCtrl {
public:
explicit wxCapoc_Tree(wxWindow *parent, capEngine *engine);
capEngine *engine;
wxTreeItemId modelsRoot, imagesRoot;
int modelEditing = -1;
void resync();
void resync_models();
void resync_nvm();
private:
void ensureChildrenCount(wxTreeItemId& id, unsigned int cnt, unsigned int itemType = 0);
void OnMenu( wxTreeEvent& event);
void OnSelect( wxTreeEvent& event);
void OnActivate( wxTreeEvent& event);
void OnAddPoint( wxCommandEvent& event);
void OnEditPoint( wxCommandEvent& event);
void OnDeletePoint( wxCommandEvent& event);
void QuickMenuAction( wxCommandEvent& event);
wxCapoc_ItemData *procItem = NULL;
unsigned int masterModel = 0;
wxDECLARE_EVENT_TABLE();
void showLog(const char *log, const char *title);
};
enum {
ID_Add_Point = 1,
ID_Delete_Point,
ID_Edit_Point,
ID_Display_None, ID_Display_Points, ID_Display_Faces, ID_Display_Edges,
ID_Selection_FitPlane, ID_Selection_Save, ID_Selection_Reset, ID_Selection_Delete,
ID_Info, ID_Append_Data, ID_Replace_Data, ID_Save, ID_Compute_Normals, ID_Set_Gray,
ID_Transform_Matrix, ID_Transform_Reset, ID_Transform_To, ID_Set_Master, ID_Resync,
ID_Sort_Name, ID_Sort_CamIndex, ID_Sort_Seen, ID_Sort_Depth, ID_Sort_Distance,
ID_Revert_Data, ID_Set_Edit, ID_Cancel_Edit, ID_NVM_Info,
ID_Cam_See, ID_Cam_Select_Projectable, ID_Cam_Recolor_Projectable, ID_Cam_Delete_Unprojectable, ID_Cam_Gray_Unprojectable,
};