File: transfer.fl

package info (click to toggle)
imview 1.1.9h-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,528 kB
  • sloc: cpp: 32,590; sh: 2,664; ansic: 1,900; makefile: 811; exp: 112; python: 88
file content (121 lines) | stat: -rw-r--r-- 4,654 bytes parent folder | download | duplicates (9)
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
# data file for the Fltk User Interface Designer (fluid)
version 1.0104 
header_name {.H} 
code_name {.C}
Function {transfer_panel(transfer &s)} {open
} {
  Fl_Window {s.transferWindow} {
    label {Edit transfer function} open selected
    xywh {670 500 570 330} type Double box THIN_UP_BOX
    code0 {\#include "transferFunction.hxx"}
    code1 {\#include "transferBox.hxx"} visible
  } {
    Fl_Group {} {open
      xywh {453 277 110 50}
    } {
      Fl_Box {} {
        xywh {462 284 99 36} box THIN_DOWN_FRAME
      }
      Fl_Return_Button {s.OKButton} {
        label {Dismiss  }
        user_data {&s} user_data_type {transfer*}
        callback okbutton_cb
        xywh {466 287 91 30} hotspot
      }
    }
    Fl_Group {} {open
      xywh {10 9 402 321}
    } {
      Fl_Box {} {
        xywh {20 10 370 266} box EMBOSSED_FRAME
      }
      Fl_Slider {s.contrastSlider} {
        label {Contrast }
        user_data {&s} user_data_type {transfer*}
        callback contrastslider_cb
        tooltip {Change slope of transfer function} xywh {20 280 370 20} type Horizontal labelsize 12 align 8
        code0 {o->when(FL_WHEN_CHANGED|FL_WHEN_RELEASE|FL_WHEN_NOT_CHANGED);}
      }
      Fl_Box {s.transferBox} {
        user_data {&s} user_data_type {transfer*}
        tooltip {Transfer function graph} xywh {25 15 360 256} box FLAT_BOX color 199 selection_color 47
        class myTransferBox
      }
      Fl_Slider {s.brightnessSlider} {
        label {Brightness }
        user_data {&s} user_data_type {transfer*}
        callback brightnessslider_cb
        tooltip {Change additive constant to transfer function} xywh {20 300 370 20} type Horizontal labelsize 12 align 8
        code0 {o->when(FL_WHEN_CHANGED|FL_WHEN_RELEASE|FL_WHEN_NOT_CHANGED);}
      }
      Fl_Slider {s.gammaSlider} {
        user_data {&s} user_data_type {transfer*}
        callback gammaslider_cb
        tooltip {Change gamma} xywh {393 11 19 264} labelsize 12 align 4
        code0 {o->when(FL_WHEN_CHANGED|FL_WHEN_RELEASE|FL_WHEN_NOT_CHANGED);}
      }
    }
    Fl_Choice {s.displayChoice} {
      user_data {&s} user_data_type {transfer*}
      callback displaychoice_cb open
      tooltip {Display transfer function or histogram} xywh {420 10 140 30} down_box BORDER_BOX align 0 textsize 12
    } {}
    Fl_Button {s.resetButton} {
      label reset
      user_data {&s} user_data_type {transfer*}
      callback resetbutton_cb
      tooltip {reset to linear, 1:1  transfer} xywh {420 50 68 20} labelsize 12
    }
    Fl_Button {s.normaliseButton} {
      label normalise
      user_data {&s} user_data_type {transfer*}
      callback normalisebutton_cb
      tooltip {set min to black and max to white} xywh {494 50 66 19} labelsize 12
    }
    Fl_Input {s.gammaInput} {
      label {Gamma:}
      user_data {&s} user_data_type {transfer*}
      callback gammainput_cb
      tooltip {transfer function = 1^(1/gamma)} xywh {469 124 90 30} type Float labelsize 12 when 8 textsize 12
      code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
      class Fl_Float_Input
    }
    Fl_Input {s.topInput} {
      label {Top:}
      user_data {&s} user_data_type {transfer*}
      callback topinput_cb
      tooltip {intersection with top edge of box} xywh {469 154 90 30} type Int labelsize 12 when 8 textsize 12
      class Fl_Int_Input
    }
    Fl_Input {s.bottomInput} {
      label {Bottom:}
      user_data {&s} user_data_type {transfer*}
      callback bottominput_cb
      tooltip {intersection with bottom edge of box} xywh {469 184 90 30} type Int labelsize 12 when 8 textsize 12
      code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
      class Fl_Int_Input
    }
    Fl_Input {s.leftInput} {
      label {Left:}
      user_data {&s} user_data_type {transfer*}
      callback leftinput_cb
      tooltip {intersection with left edge of box} xywh {469 214 90 30} type Int labelsize 12 when 8 textsize 12
      code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
      class Fl_Int_Input
    }
    Fl_Input {s.rightInput} {
      label {Right:}
      user_data {&s} user_data_type {transfer*}
      callback rightinput_cb
      tooltip {intersection with right edge of box} xywh {469 244 90 30} type Int labelsize 12 when 8 textsize 12
      code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
      class Fl_Int_Input
    }
    Fl_Check_Button {s.applyToAllButton} {
      label {Apply to all images}
      user_data {&s} user_data_type {transfer*}
      callback applytoallbutton_cb
      tooltip {Apply same transfer to all images} xywh {420 80 140 20} box UP_FRAME down_box ROUND_UP_BOX selection_color 130 labelsize 12 align 16
    }
  }
}