-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMeshToolsUI.fl
More file actions
7214 lines (6942 loc) · 213 KB
/
MeshToolsUI.fl
File metadata and controls
7214 lines (6942 loc) · 213 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# data file for the Fltk User Interface Designer (fluid)
version 1.0304
header_name {MeshToolsUI.h}
code_name {MeshToolsUI.cxx}
class MeshToolsUI {open
} {
Function {MeshToolsUI()} {open
} {
Fl_Window mainWindow {
label {Interactive SoftwarE : MeshTools}
callback {options_hide();
cam_hide();
exit(0);}
private image {pixmap/s_face.gif} xywh {20 206 1100 700} type Double box UP_BOX color 55 labelsize 12 align 8 when 1 hide resizable
} {
Fl_Group Top {open
xywh {0 0 1100 57}
} {
Fl_Group Unresizable {open
xywh {0 0 1081 50}
} {
Fl_Button Del {
callback {int test;
test = fl_ask("Do you really want to delete ?");
if (test ==1)
{
MT->Delete();
MT->redraw();
}}
tooltip Delete image {./pixmap/delete2.gif} xywh {0 25 25 23} color 55
}
Fl_Menu_Button File {
label File
xywh {0 0 55 25} color 55 labelcolor 32
} {
MenuItem Generic_Open_Surface {
label {Open Surface}
callback {MT->Open_Mesh_File();
sc_update2();}
xywh {0 0 30 20}
}
Submenu Save_Surface {
label {Save Surface}
xywh {30 30 100 20}
} {
MenuItem Save_PLY {
label {Save PLY}
callback {MT->Compute_Name_Lists();
int ok=1;
if (g_selected_names.size()==0)
{
fl_alert("At least one mesh must be selected");
ok =0;
}
else if (g_selected_names.size()>1)
{
ok = fl_ask("More than one mesh are currently selected. Do you want to save all selected meshes into one single mesh file?");
}
if (ok==1)
{
ply_show();
}}
xywh {70 70 100 20}
}
MenuItem Save_STL {
label {Save STL}
callback {MT->Compute_Name_Lists();
int ok=1;
if (g_selected_names.size()==0)
{
fl_alert("At least one mesh must be selected");
ok =0;
}
else if (g_selected_names.size()>1)
{
ok = fl_ask("More than one mesh are currently selected. Do you want to save all selected meshes into one single mesh file?");
}
if (ok==1)
{
stl_show();
}}
xywh {40 40 100 20}
}
MenuItem Save_VTK {
label {Save VTK}
callback {MT->Compute_Name_Lists();
int ok=1;
if (g_selected_names.size()==0)
{
fl_alert("At least one mesh must be selected");
ok =0;
}
else if (g_selected_names.size()>1)
{
ok = fl_ask("More than one mesh are currently selected. Do you want to save all selected meshes into one single mesh file?");
}
if (ok==1)
{
vtk_show();
}}
xywh {50 50 100 20}
}
MenuItem Save_OBJ {
label {Save OBJ}
callback {MT->Compute_Name_Lists();
int ok=1;
if (g_selected_names.size()==0)
{
fl_alert("At least one mesh must be selected");
ok =0;
}
else if (g_selected_names.size()>1)
{
ok = fl_ask("More than one mesh are currently selected. Do you want to save all selected meshes into one single mesh file?");
}
if (ok==1)
{
obj_show();
}}
xywh {60 60 100 20}
}
}
Submenu Position_submenu {
label Position open
xywh {30 30 100 20}
} {
MenuItem Load_POS {
label {Load Position for selected meshes}
callback {MT->Compute_Name_Lists();
int ok=1;
if (g_selected_names.size()==0)
{
fl_alert("No mesh selected. Please select at least one mesh.");
ok =0;
}
else if (g_selected_names.size()>1)
{
ok = fl_ask("Several meshes are currently selected. Do you want to give the same position to all selected meshes?");
}
if (ok==1)
{
MT->Open_POS_File();
MT->redraw();
}}
xywh {50 50 100 20} labelcolor 32
}
MenuItem Load_POS_Inv {
label {Load Transposed Position for selected meshes}
callback {MT->Compute_Name_Lists();
int ok=1;
if (g_selected_names.size()==0)
{
fl_alert("No mesh selected. Please select at least one mesh.");
ok =0;
}
else if (g_selected_names.size()>1)
{
ok = fl_ask("Several meshes are currently selected. Do you want to give the same position to all selected meshes?");
}
if (ok==1)
{
MT->Open_POS_File_Inv();
MT->redraw();
}}
xywh {60 60 100 20} labelcolor 56
}
MenuItem Save_POS {
label {Save Position}
callback {MT->Compute_Name_Lists();
int ok=1;
if (g_selected_names.size()==0)
{
fl_alert("No mesh selected. Please select one mesh in order to save its position.");
ok =0;
}
else if (g_selected_names.size()>1)
{
fl_alert("More than one mesh selected. Please select only one mesh in order to save its position.");
ok =0;
}
if (ok==1)
{
MT->Save_POS_File();
MT->redraw();
}}
xywh {60 60 100 20} labelcolor 56
}
MenuItem Load_POS_LMK {
label {Load Position for selected landmarks/flags}
callback {int ok=1;
int num_lmk_and_flags_selected = MT->Get_Selected_Landmark_Number();
if (num_lmk_and_flags_selected<1)
{
fl_alert("No landmark/flag selected. Please select at least one landmark or flag to use this option.");
ok =0;
}
else if (num_lmk_and_flags_selected>1)
{
ok = fl_ask("Several landmarks/flags are currently selected. Do you want to give the same position to all selected landmarks/flags?");
}
if (ok==1)
{
MT->Open_POS_File_NEW(2);
MT->redraw();
}}
xywh {60 60 100 20} labelcolor 32
}
MenuItem Load_POS_Inv_LMK {
label {Load Transposed Position for selected landmarks/flags}
callback {int ok=1;
int num_lmk_and_flags_selected = MT->Get_Selected_Landmark_Number();
if (num_lmk_and_flags_selected<1)
{
fl_alert("No landmark/flag selected. Please select at least one landmark or flag to use this option.");
ok =0;
}
else if (g_selected_names.size()>1)
{
ok = fl_ask("Several landmarks/flags are currently selected. Do you want to give the same position to all selected landmarks/flags?");
}
if (ok==1)
{
MT->Open_POS_File_Inv_NEW(2);
MT->redraw();
}}
xywh {70 70 100 20} labelcolor 56
}
}
Submenu Project_submenu {
label Project
xywh {25 25 100 20}
} {
MenuItem Open_NTW {
label {Open project}
callback {MT->Open_NTW_File();}
xywh {45 45 100 20} labelcolor 56
}
MenuItem Save_NTW {
label {Save project}
callback {//MT->Save_NTW_File();
ntw_show();}
xywh {55 55 100 20} labelcolor 56
}
}
Submenu Landmarks_submenu {
label Landmarks
xywh {35 35 100 20}
} {
MenuItem Open_VER {
label {Load Landmarks}
callback {MT->Open_Landmarks(0);}
xywh {25 25 100 20} labelcolor 32
}
MenuItem Open_VER1 {
label {Load target landmarks}
callback {MT->Open_Landmarks(1);}
xywh {40 40 100 20} labelcolor 32
}
MenuItem Save_VER {
label {Save landmarks}
callback {lmk_show();
//MT->Save_LMK_Landmarks(0);}
xywh {70 70 100 20} labelcolor 32
}
MenuItem Save_VER1 {
label {Save target landmarks}
callback {lmk_show2();
//MT->Save_LMK_Landmarks(1);}
xywh {80 80 100 20} labelcolor 32
}
MenuItem Open_VER2 {
label {Load source and target landmarks}
callback {MT->Open_STV_File();}
xywh {50 50 100 20} labelcolor 32
}
MenuItem Save_VER3 {
label {Save source and target landmarks}
callback {MT->Save_STV_File();}
xywh {90 90 100 20} labelcolor 32
}
}
Submenu Curves_submenu {
label Curves
xywh {0 0 62 20}
} {
MenuItem Open_CUR {
label {Load curves}
callback {MT->Open_CUR_File();}
xywh {40 40 100 20}
}
MenuItem Save_CUR {
label {Save curves}
callback {MT->Save_CUR_File();}
xywh {85 85 100 20}
}
MenuItem Save_CURLMK {
label {Export curves as landmark file}
callback {lmcur_show();;}
xywh {95 95 100 20} labelcolor 32
}
MenuItem Save_Curve_Infos {
label {Save curve infos (length per curve.)}
callback {MT->Save_CUR_Infos();
//Keep names}
xywh {100 100 100 20}
}
}
Submenu Tags_submenu {
label {Tags and Flags}
xywh {45 45 100 20}
} {
MenuItem Open_TAG {
label {Load tag colors and labels}
callback {MT->Open_TAG_File();
tags_update();
MT->Update_RGB();}
xywh {35 35 100 20} labelcolor 32
}
MenuItem Save_TAG {
label {Save tag colors and labels}
callback {MT->Save_TAG_File();}
xywh {80 80 100 20} labelcolor 32
}
MenuItem Open_FLG {
label {Load flags}
callback {MT->Open_FLG_File();}
xywh {35 35 100 20} labelcolor 32
}
MenuItem Save_FLG {
label {Save flags}
callback {MT->Save_FLG_File();}
xywh {80 80 100 20} labelcolor 32
}
}
MenuItem Save_Infos {
label {Save infos (surface area, volume...)}
callback {MT->Compute_Name_Lists();
int ok=1;
if (g_selected_names.size()==0)
{
fl_alert("At least one mesh must be selected");
ok =0;
}
if (ok==1)
{
MT->Save_Infos();
}
//Keep names}
xywh {80 80 100 20} labelcolor 32
}
Submenu Orientation_submenu {
label {Orientation labels}
xywh {55 55 100 20}
} {
MenuItem Open_ORI {
label {Load orientation labels}
callback {MT->Open_ORI_File();
orientation_update();}
xywh {45 45 100 20} labelcolor 32
}
MenuItem Save_ORI {
label {Save orientation labels}
callback {MT->Save_ORI_File();}
xywh {90 90 100 20} labelcolor 32
}
}
}
Fl_Menu_Button Viewing_options {
label {Viewing opt.}
xywh {55 0 100 25} color 55
} {
MenuItem SET_GENERAL_COLOUR_LIGHTNING {
label {General colour and lightning options}
callback {options_lc_show();}
xywh {80 80 100 20}
}
MenuItem SET_GENERAL_RENDERING {
label {General rendering options}
callback {options_rd_show();}
xywh {90 90 100 20}
}
Submenu Camera_submenu {
label Camera
xywh {0 0 62 20}
} {
MenuItem SET_CAMERA_OPT {
label {Camera options}
callback {cam_show();}
xywh {55 55 100 20}
}
Submenu Camera_center {
label {Camera rotation center at ...} open
xywh {10 10 100 20}
} {
MenuItem CAP0 {
label Origin
callback {MT->Cam_Centre_At_Landmark(-1);
MT->redraw();}
xywh {5 5 100 20}
}
MenuItem CAPBAR {
label {Centre of mass of all loaded meshes}
callback {MT->Cam_Centre_At_Landmark(-2);
MT->redraw();}
xywh {15 15 100 20}
}
MenuItem CAP1 {
label {landmark 1}
callback {MT->Cam_Centre_At_Landmark(1);
MT->redraw();}
xywh {15 15 100 20}
}
MenuItem CAP2 {
label {landmark 2}
callback {MT->Cam_Centre_At_Landmark(2);
MT->redraw();}
xywh {25 25 100 20}
}
MenuItem CAP3 {
label {landmark 3}
callback {MT->Cam_Centre_At_Landmark(3);
MT->redraw();}
xywh {35 35 100 20}
}
MenuItem CAP4 {
label {landmark 4}
callback {MT->Cam_Centre_At_Landmark(4);
MT->redraw();}
xywh {45 45 100 20}
}
MenuItem CAP5 {
label {landmark 5}
callback {MT->Cam_Centre_At_Landmark(5);
MT->redraw();}
xywh {55 55 100 20}
}
MenuItem CAP6 {
label {landmark 6}
callback {MT->Cam_Centre_At_Landmark(6);
MT->redraw();}
xywh {65 65 100 20}
}
MenuItem CAP7 {
label {landmark 7}
callback {MT->Cam_Centre_At_Landmark(7);
MT->redraw();}
xywh {75 75 100 20}
}
MenuItem CAP8 {
label {landmark 8}
callback {MT->Cam_Centre_At_Landmark(8);
MT->redraw();}
xywh {85 85 100 20}
}
MenuItem CAP9 {
label {landmark 9}
callback {MT->Cam_Centre_At_Landmark(9);
MT->redraw();}
xywh {95 95 100 20}
}
MenuItem CAP10 {
label {landmark 10}
callback {MT->Cam_Centre_At_Landmark(10);
MT->redraw();}
xywh {105 105 100 20}
}
}
MenuItem DISP_100PX_IN_MM {
label {Set 100 pixels in mm}
callback {zoomScaleWindow_show();}
xywh {135 135 100 20}
}
MenuItem RESET_CAMERA {
label {Reset Camera}
callback {MT->Reset_Camera();
MT->redraw();}
xywh {65 65 100 20}
}
MenuItem CAMERA_PARAMS {
label {Display camera params}
callback {int bool_cam=0;
if(CAMERA_PARAMS->value() != 0){
cout<<"CAMERA PARAMS DISPLAYED"<<endl;
bool_cam=1;
}
else{
cout<<"CAMERA_PARAMS NOT DISPLAYED"<<endl;
bool_cam=0;
}
MT->Set_Camera_Display(bool_cam);
MT->redraw();}
tooltip {Draw connection between red landmarks} xywh {120 120 100 20} type Toggle
}
}
Submenu Display_Options {
label {Object rendering options}
xywh {0 0 62 20}
} {
MenuItem DISP_SURFACE {
label {Gouraud shading (smooth renreding) }
callback {Displaymode(1);}
xywh {80 80 100 20}
}
MenuItem DISP_WIREFRAME {
label {Draw wireframe}
callback {Displaymode(0);}
xywh {90 90 100 20}
}
MenuItem DISP_SORT {
label {Sort vertices from back to front (beware: slow rendering!)}
callback {Displaymode(4);}
xywh {90 90 100 20} labelcolor 56
}
MenuItem DISP_SORT2 {
label {Sort vertices from front to back (beware: slow rendering!)}
callback {Displaymode(5);}
xywh {100 100 100 20} labelcolor 32
}
MenuItem DISP_FLAT {
label {Flat triangles}
callback {Displaymode(2);}
xywh {95 95 100 20}
}
MenuItem DISP_TRI_GOU {
label {Wireframe and flat triangles}
callback {Displaymode(3);}
xywh {110 110 100 20}
}
MenuItem DISP_CULLFACE {
label {Backface culling}
callback {MT->Change_Cull_Face();
MT->redraw();}
xywh {90 90 100 20} type Toggle
}
}
MenuItem DISP_GRID_SIZE {
label {Grid size}
callback {grid_size_show();}
xywh {110 110 100 20}
}
MenuItem SET_GENERAL_LANDMARK_RENDERING {
label {Landmark and flag rendering options}
callback {options_lm_show();}
xywh {100 100 100 20}
}
MenuItem DISP_LANDMARKNUM {
label {Display landmark numbers}
callback {MT->ChangeLandmarkMode();
MT->redraw();}
xywh {140 140 100 20} type Toggle value 1
}
MenuItem DISP_CURVE {
label {Draw curves}
callback {MT->Change_Draw_Curve();
MT->redraw();}
tooltip {Draw connection between red landmarks} xywh {100 100 100 20} type Toggle
}
MenuItem DISP_ORIENTATION {
label {Orientation labels}
callback {orientation_show();}
xywh {120 120 100 20}
}
MenuItem VBO_ACTIVATED {
label {VBO activate}
callback {bool bool_vbo=0;
if(VBO_ACTIVATED->value() != 0){
cout<<"VBO ACTIVATED"<<endl;
bool_vbo=1;
}
else{
cout<<"NOT VBO ACTIVATED"<<endl;
bool_vbo=0;
}
MT->VBO_activated(bool_vbo);
MT->redraw();}
tooltip {Draw connection between red landmarks} xywh {110 110 100 20} type Toggle
}
}
Fl_Menu_Button Edit_obj {
label {Edit selected surfaces}
xywh {155 0 155 25} color 55
} {
Submenu Object_structure_modification {
label {Structure modification}
xywh {0 0 62 20}
} {
MenuItem INVERT {
label Invert
callback {MT->Mesh_invert();
MT->redraw();}
xywh {75 75 100 20}
}
MenuItem MIRROR_ThroughY {
label Mirror
callback {MT->Mesh_Mirror_ThroughY();
MT->redraw();}
xywh {75 75 100 20} labelcolor 32
}
MenuItem DECOMPOSE_REGIONS {
label {Connectivity : separate all non connected regions}
callback {decompose_show();}
xywh {85 85 100 20} labelcolor 56
}
MenuItem KEEP_LARGEST_REGION {
label {Connectivity : keep largest region}
callback {MT->Mesh_Largest_Region();
MT->redraw();}
xywh {95 95 100 20} labelcolor 32
}
MenuItem ACT_TOOL {
label {Lasso cut}
callback {MT->Set_Active_Scalar(5);
MT->SetModeTool(1);}
xywh {95 95 100 20} labelcolor 32
}
MenuItem SMOOTH {
label Smooth
callback {smooth_show();}
xywh {105 105 100 20} labelcolor 32
}
MenuItem DEF_WINDOW {
label {TPS Deformation}
callback {def_show();}
xywh {80 80 100 20} labelcolor 32
}
MenuItem DECIMATE {
label Decimate
callback {decimate_show();}
xywh {115 115 100 20} labelcolor 32
}
MenuItem DENSIFY {
label Densify
callback {densify_show();}
xywh {125 125 100 20} labelcolor 32
}
MenuItem FILL_HOLES {
label {Fill holes}
callback {fillholes_show();}
xywh {125 125 100 20} labelcolor 32
}
MenuItem REGISTRATION_ICP {
label {Registration ICP}
callback {registration_ICP_show();}
xywh {85 85 100 20}
}
}
Submenu Change_object_rendering_options {
label {Rendering modification}
xywh {0 0 62 20}
} {
MenuItem SET_ALPHA_VALUE {
label {Set alpha value}
callback {blend_show();}
xywh {100 100 100 20}
}
Submenu Set_Color {
label {Change object colour} open
xywh {10 10 100 20}
} {
MenuItem Color_grey {
label Grey
callback {MT->color_setobjcolor(150,150,150);
MT->save_ini_param();
MT->redraw();}
xywh {130 130 100 20} labelfont 1 labelcolor 25
}
MenuItem Color_yellow {
label Yellow
callback {MT->color_setobjcolor(165,142,22);
MT->save_ini_param();
MT->redraw();}
xywh {10 10 100 20} labelfont 1 labelcolor 95
}
MenuItem Color_red {
label Red
callback {MT->color_setobjcolor(186,37,37);
MT->save_ini_param();
MT->redraw();}
xywh {20 20 100 20} labelfont 1 labelcolor 81
}
MenuItem Color_blue {
label Blue
callback {MT->color_setobjcolor(64,123,126);
MT->save_ini_param();
MT->redraw();}
xywh {30 30 100 20} labelfont 1 labelcolor 140
}
MenuItem Color_pink {
label Pink
callback {MT->color_setobjcolor(173,120,95);
MT->save_ini_param();
MT->redraw();}
xywh {40 40 100 20} labelfont 1 labelcolor 202
}
MenuItem Color_violet {
label Violet
callback {MT->color_setobjcolor(120,51,145);
MT->save_ini_param();
MT->redraw();}
xywh {50 50 100 20} labelfont 1 labelcolor 232
}
MenuItem Color_bone {
label Bone
callback {MT->color_setobjcolor(161,146,95);
MT->save_ini_param();
MT->redraw();}
xywh {60 60 100 20} labelfont 1 labelcolor 84
}
MenuItem Color_green {
label Green
callback {MT->color_setobjcolor(39,136,42);
MT->save_ini_param();
MT->redraw();}
xywh {70 70 100 20} labelfont 1 labelcolor 60
}
MenuItem Color_darkred {
label {Dark red}
callback {MT->color_setobjcolor(115,8,15);
MT->save_ini_param();
MT->redraw();}
xywh {80 80 100 20} labelfont 1 labelcolor 72
}
MenuItem Color_darkblue {
label {Dark blue}
callback {MT->color_setobjcolor(52,52,160);
MT->save_ini_param();
MT->redraw();}
xywh {90 90 100 20} labelfont 1 labelcolor 136
}
MenuItem Color_darkgreen {
label {Dark green}
callback {MT->color_setobjcolor(42,110,47);
MT->save_ini_param();
MT->redraw();}
xywh {100 100 100 20} labelfont 1 labelcolor 58
}
MenuItem Color_orange {
label Orange
callback {MT->color_setobjcolor(195,91,0);
MT->save_ini_param();
MT->redraw();}
xywh {110 110 100 20} labelfont 1 labelcolor 91
}
MenuItem Color_brown {
label Brown
callback {MT->color_setobjcolor(130,78,47);
MT->save_ini_param();
MT->redraw();}
xywh {120 120 100 20} labelfont 1 labelcolor 74
}
}
MenuItem Menu_Show_Matrices {
label {Edit first selected object position and aspect matrices}
callback {mat_show();}
xywh {0 0 30 20}
}
}
Submenu Object_group_submenu {
label {Grouping actions}
xywh {0 0 62 20}
} {
MenuItem GROUP {
label Group
callback {MT->Group();
MT->redraw();}
xywh {105 105 100 20}
}
MenuItem UNGROUP {
label Ungroup
callback {MT->Ungroup();
MT->redraw();}
xywh {115 115 100 20}
}
}
Submenu Object_rendering_list_submenu {
label {Object list order}
tooltip {Objects are rendrered on the screen according to a list, which has consequences on the way they are rendrered when using alpha values (transparency) smaller than 100%. You may change this order} xywh {0 0 62 20}
} {
MenuItem Obj_move_up {
label {Move up}
callback {MT->Object_Move_Up();
MT->redraw();}
xywh {0 0 30 20}
}
MenuItem Obj_move_down {
label {Move down}
callback {MT->Object_Move_Down();
MT->redraw();}
xywh {10 10 30 20}
}
}
Submenu Edit_delete_submenu {
label {Delete small objects}
xywh {0 0 62 20}
} {
MenuItem Delete_smaller_than_tri {
label {threshold : a given number of triangles}
callback {delete_show();}
xywh {0 0 30 20}
}
MenuItem Delete_smaller_than_vol {
label {threshold : a given volume}
callback {delete2_show();}
xywh {10 10 30 20}
}
}
}
Fl_Menu_Button Landmarks {
label Landmarks open
tooltip {Doing so, your curve will be closed} xywh {310 0 180 25} color 55
} {
MenuItem SelectLandmark {
label {Select a given landmark}
callback {lmkselect_show();}
xywh {10 10 30 20}
}
MenuItem SelectLandmarkRange {
label {Select a given range of landmarks}
callback {lmkrangeselect_show();}
xywh {20 20 30 20}
}
MenuItem SitckyLandmarks {
label {Push back selected landmarks on object surface}
callback {MT->Stick_Selected_Landmarks_On_Surfaces();
MT->redraw();}
xywh {0 0 30 20}
}
MenuItem AllFlagOptions {
label {Edit all selected flag landmarks}
callback {all_flag_show();}
xywh {10 10 30 20}
}
MenuItem AllFlagOptions2 {
label {Update all selected flags colours automatically}
callback {MT->update_all_flags_colours();
MT->redraw();}
tooltip {Gives closest vertex colour to all selected flags} xywh {20 20 30 20}
}
MenuItem LandmarkNormals {
label {Change selected landmarks orientation according to surface normals}
callback {MT->Selected_Landmarks_Change_Orientation();
MT->redraw();}
xywh {10 10 30 20}
}
Submenu Curves_submenu_edition {
label {Selected landmarks involved into curves}
xywh {0 0 62 20}
} {
MenuItem Move_handles_option {
label {Move curve handles (selected target landmarks) semi-automatically}
callback {movehandles_show();}
xywh {5 5 30 20}
}
MenuItem StartCurve {
label {Normal landmark (red) : define as curve starting point (green)}
callback {MT->Curve_start(1);
MT->redraw();}
xywh {130 130 100 20}
}
MenuItem ConnectStartingPointCurve {
label {Normal landmark (red) : connect to preceding starting point (violet)}
callback {MT->Curve_start(3);
MT->redraw();}
xywh {150 150 100 20}
}
MenuItem StartCurveConnection {
label {Normal landmark (red) : define as curve milestone (blue)}
callback {MT->Curve_start(2);
MT->redraw();}
xywh {160 160 100 20}
}
MenuItem NoStartCurve {
label {Green, blue, violet landmark : set back to normal landmark (red)}
callback {MT->Curve_start(0);
MT->redraw();}
xywh {140 140 100 20}
}
}
}
Fl_Menu_Button SC_options {
label Scalars
tooltip {Compute attributes. These are values attributed to vertices which can subsequently be displayed as color maps (see viewing options to display color maps)} xywh {490 0 90 25} color 55
} {
MenuItem Scalars_SHOW {
label {Show scalar rendering options window}
callback {sc_show();}
xywh {135 135 100 20}
}
MenuItem SCALAR_DISTANCE {
label {Scalars : distance from camera}
callback {MT->Set_Active_Scalar(0);
MT->SC_calc_depth();
MT->Update_RGB();
MT->redraw();}
xywh {85 85 100 20}
}
MenuItem SCALAR_CURVATURE {
label {Scalars : compute vertice curvature}
callback {curv_show();}
xywh {105 105 100 20} labelcolor 32
}
MenuItem SCALAR_THICKNESS {
label {Scalars : compute thickness}
callback {thickness_show();}
xywh {115 115 100 20} labelcolor 32
}
MenuItem SCALAR_THICKNESS2 {
label {Scalars : compute thickness between 2 objects}
callback {thickness2_show();}
xywh {125 125 100 20} labelcolor 32
}
MenuItem SCALAR_MEAN {
label {Smooth active scalars (gaussian blur)}
callback {MT->SC_calc_mean();
MT->Update_RGB();
MT->redraw();}
xywh {115 115 100 20} labelcolor 32
}
MenuItem init_rgb {
label {Init RGB }
callback {// active init_RGB
MT->Active_InitRGB();
MT->redraw();}
xywh {0 0 30 20}
}
}
Fl_Menu_Button Tags_menu {
label Tags
xywh {580 0 60 25} color 55
} {
MenuItem TAGS_SHOW {
label {Show tag options window}
callback {tags_show();}
xywh {125 125 100 20}
}
MenuItem TAGS_CONVERT {
label {Convert RGB colours to tags}
callback {tags_convert_show();}
xywh {135 135 100 20}
}
MenuItem TAGS_MERGE {
label {Merge Tags}
callback {mergetags_show();}
xywh {135 135 100 20}
}
MenuItem TAGS_CONNECTIVITY {
label {Tag connected regions}
callback {MT->Mesh_Tag_Connected_Regions();
MT->Set_Active_Scalar(-1);
MT->Activate_Tags_Display_Mode();
MT->SetColorScaleId(-1);
MT->redraw();}
xywh {145 145 100 20}
}
Submenu TAGS_SUB_EXTRACT {
label {Extract ...}
xywh {0 0 62 20}
} {
MenuItem TAGS_DECOMPOSE6 {
label {Extract active tag corresponding region}
callback {MT->Mesh_Extract_Active_Tag();
MT->redraw();}
xywh {190 190 100 20}
}
MenuItem TAGS_DECOMPOSE2 {
label {Extract all tagged regions as several new objects}
callback {extractallregions_show();}
xywh {170 170 100 20}
}
MenuItem TAGS_DECOMPOSE {
label {Extract one tagged region as 1 new object}
callback {extractregion_show();}
xywh {160 160 100 20}
}
MenuItem TAGS_DECOMPOSE_RANGE {
label {Extract tag or other scalar range as 1 new object}