This file is indexed.

/usr/share/dx/samples/macros/DrapeMacro.net is in dxsamples 4.2.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
//
// time: Tue Apr  8 15:21:24 1997
//
// version: 3.1.1 (format), 3.1.4 (DX Beta)
//
//
// Begin MDF
// MODULE Drape
// CATEGORY Macros
// DESCRIPTION drapes a data set over elevation data (rubbersheeted)
// INPUT elevation; object; (none); elevation data
// INPUT data; object; (none); data to drape 
// INPUT scale; object; (no default); rubbersheet scale
// INPUT grid; object; 1; objects are on same grid (1) or different grids in same coordinate space (2)
// INPUT component; object; "data"; component "data" field should be placed in (typically either "data" or "colors")
// OUTPUT output_1; field;  
// End MDF
//
// comment: drapes one two dimensional field onto another. One of the fields is used to deform the surface.
// page assignment: diff_grids	order=4, windowed=0, showing=0
// page assignment: inputs	order=2, windowed=0, showing=1
// page assignment: same_grid	order=3, windowed=0, showing=0
// page assignment: switch	order=5, windowed=0, showing=0
// workspace: width = 543, height = 260
// layout: snap = 0, width = 50, height = 50, align = NN
//
macro Drape(
 elevation
,data
,scale
,grid = 1
,component = "data"
) -> (
 output_1
) {
    // 
    // node Input[5]: x = 445, y = 36, inputs = 0, label = Input
    // page group: inputs
    // parameter: position = 5, name = 'component', value = '"data"', descriptive = 0, description = 'component "data" field should be placed in (typically either "data" or "colors")', required = 0, visible = 1
    //
Drape_Input_5_out_1 = component;
    // 
    // node Input[6]: x = 35, y = 26, inputs = 0, label = Input
    // page group: inputs
    // parameter: position = 1, name = 'elevation', value = ' ', descriptive = 0, description = 'elevation data', required = 1, visible = 1
    //
Drape_Input_6_out_1 = elevation;
    // 
    // node Input[7]: x = 140, y = 28, inputs = 0, label = Input
    // page group: inputs
    // parameter: position = 2, name = 'data', value = ' ', descriptive = 0, description = 'data to drape ', required = 1, visible = 1
    //
Drape_Input_7_out_1 = data;
    // 
    // node Input[8]: x = 233, y = 28, inputs = 0, label = Input
    // page group: inputs
    // parameter: position = 3, name = 'scale', value = '(no default)', descriptive = 1, description = 'rubbersheet scale', required = 0, visible = 1
    //
Drape_Input_8_out_1 = scale;
    // 
    // node Input[10]: x = 335, y = 37, inputs = 0, label = Input
    // page group: inputs
    // parameter: position = 4, name = 'grid', value = '1', descriptive = 0, description = 'objects are on same grid (1) or different grids in same coordinate space (2)', required = 0, visible = 1
    //
Drape_Input_10_out_1 = grid;
    // 
    // node Transmitter[7]: x = 117, y = 191, inputs = 1, label = data_xcvr
    // page group: inputs
    //
data_xcvr = Drape_Input_7_out_1;
    // 
    // node Receiver[4]: x = 110, y = 19, inputs = 1, label = data_xcvr
    // page group: diff_grids
    //
Drape_Receiver_4_out_1[cache: 0] = data_xcvr;
    // 
    // node Transmitter[6]: x = 0, y = 192, inputs = 1, label = elevation_xcvr
    // page group: inputs
    //
elevation_xcvr = Drape_Input_6_out_1;
    // 
    // node Receiver[2]: x = 231, y = 22, inputs = 1, label = elevation_xcvr
    // page group: diff_grids
    //
Drape_Receiver_2_out_1[cache: 0] = elevation_xcvr;
    // 
    // node Map[1]: x = 154, y = 125, inputs = 4, label = Map
    // page group: diff_grids
    //
Drape_Map_1_out_1 = 
    Map(
    Drape_Receiver_4_out_1,
    Drape_Receiver_2_out_1,
    NULL,
    NULL
    ) [instance: 1, cache: 1];
    // 
    // node Transmitter[10]: x = 341, y = 198, inputs = 1, label = grid_switch
    // page group: inputs
    //
grid_switch = Drape_Input_10_out_1;
    // 
    // node Receiver[7]: x = 48, y = 14, inputs = 1, label = grid_switch
    // page group: switch
    //
Drape_Receiver_7_out_1[cache: 0] = grid_switch;
    // 
    // node Receiver[5]: x = 11, y = 42, inputs = 1, label = data_xcvr
    // page group: same_grid
    //
Drape_Receiver_5_out_1[cache: 0] = data_xcvr;
    // 
    // node Receiver[1]: x = 109, y = 38, inputs = 1, label = elevation_xcvr
    // page group: same_grid
    //
Drape_Receiver_1_out_1[cache: 0] = elevation_xcvr;
    // 
    // node Transmitter[8]: x = 198, y = 193, inputs = 1, label = rubbersheet_scale
    // page group: inputs
    //
rubbersheet_scale = Drape_Input_8_out_1;
    // 
    // node Receiver[9]: x = 251, y = 37, inputs = 1, label = rubbersheet_scale
    // page group: same_grid
    //
Drape_Receiver_9_out_1[cache: 0] = rubbersheet_scale;
    // 
    // node RubberSheet[1]: x = 109, y = 129, inputs = 4, label = RubberSheet
    // page group: same_grid
    //
Drape_RubberSheet_1_out_1 = 
    RubberSheet(
    Drape_Receiver_1_out_1,
    Drape_Receiver_9_out_1,
    NULL,
    NULL
    ) [instance: 1, cache: 1];
    // 
    // node Transmitter[11]: x = 432, y = 197, inputs = 1, label = component_xcvr
    // page group: inputs
    //
component_xcvr = Drape_Input_5_out_1;
    // 
    // node Receiver[13]: x = 408, y = 45, inputs = 1, label = component_xcvr
    // page group: same_grid
    //
Drape_Receiver_13_out_1[cache: 0] = component_xcvr;
    // 
    // node Replace[1]: x = 123, y = 366, inputs = 4, label = Replace
    // page group: same_grid
    //
Drape_Replace_1_out_1 = 
    Replace(
    Drape_Receiver_5_out_1,
    Drape_RubberSheet_1_out_1,
    Drape_Receiver_13_out_1,
    Drape_Receiver_13_out_1
    ) [instance: 1, cache: 1];
    // 
    // node Transmitter[12]: x = 134, y = 478, inputs = 1, label = same_grid
    // page group: same_grid
    //
same_grid = Drape_Replace_1_out_1;
    // 
    // node Receiver[11]: x = 140, y = 10, inputs = 1, label = same_grid
    // page group: switch
    //
Drape_Receiver_11_out_1[cache: 0] = same_grid;
    // 
    // node Receiver[6]: x = 49, y = 173, inputs = 1, label = data_xcvr
    // page group: diff_grids
    //
Drape_Receiver_6_out_1[cache: 0] = data_xcvr;
    // 
    // node Receiver[8]: x = 348, y = 28, inputs = 1, label = rubbersheet_scale
    // page group: diff_grids
    //
Drape_Receiver_8_out_1[cache: 0] = rubbersheet_scale;
    // 
    // node RubberSheet[2]: x = 148, y = 210, inputs = 4, label = RubberSheet
    // page group: diff_grids
    //
Drape_RubberSheet_2_out_1 = 
    RubberSheet(
    Drape_Map_1_out_1,
    Drape_Receiver_8_out_1,
    NULL,
    NULL
    ) [instance: 2, cache: 1];
    // 
    // node Receiver[10]: x = 495, y = 24, inputs = 1, label = component_xcvr
    // page group: diff_grids
    //
Drape_Receiver_10_out_1[cache: 0] = component_xcvr;
    // 
    // node Replace[2]: x = 134, y = 385, inputs = 4, label = Replace
    // page group: diff_grids
    //
Drape_Replace_2_out_1 = 
    Replace(
    Drape_Receiver_6_out_1,
    Drape_RubberSheet_2_out_1,
    Drape_Receiver_10_out_1,
    Drape_Receiver_10_out_1
    ) [instance: 2, cache: 1];
    // 
    // node Transmitter[13]: x = 74, y = 520, inputs = 1, label = diff_grids
    // page group: diff_grids
    //
diff_grids = Drape_Replace_2_out_1;
    // 
    // node Receiver[12]: x = 247, y = 10, inputs = 1, label = diff_grids
    // page group: switch
    //
Drape_Receiver_12_out_1[cache: 0] = diff_grids;
    // 
    // node Switch[1]: x = 121, y = 260, inputs = 3, label = Switch
    // page group: switch
    //
Drape_Switch_1_out_1 = 
    Switch(
    Drape_Receiver_7_out_1,
    Drape_Receiver_11_out_1,
    Drape_Receiver_12_out_1
    ) [instance: 1, cache: 1];
    // 
    // node Shade[1]: x = 104, y = 357, inputs = 7, label = Shade
    // input[2]: defaulting = 0, visible = 1, type = 3, value = 0
    // page group: switch
    //
Drape_Shade_1_out_1 = 
    Shade(
    Drape_Switch_1_out_1,
    0,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
    ) [instance: 1, cache: 1];
    // 
    // node Output[1]: x = 133, y = 459, inputs = 1, label = Output
    // page group: switch
    // parameter: position = 1, name = 'output_1', value = ' ', descriptive = 0, description = ' ', required = 0, visible = 1
    //
output_1 = Drape_Shade_1_out_1;
    //
    // decorator Annotate	pos=(237,282) size=382x60 style(Label), value = <NULL>
    // annotation user_begin: 112
    // annotation user: In this case the data are on the same grid, so the data
    // annotation user: are simply replaced into the rubbersheet'd height
    // annotation user: field.
    // annotation user_end: <NULL>
    // page group: same_grid
    //
    // decorator Annotate	pos=(235,315) size=396x76 style(Label), value = <NULL>
    // annotation user_begin: 202
    // annotation user: In this case the data are on different grids, but in the
    // annotation user: same coordinate space, so the elevation grid is
    // annotation user: mapped onto the data grid before rubbersheeting. Then
    // annotation user: the data are replaced into the rubbersheet.
    // annotation user_end: <NULL>
    // page group: diff_grids
    //
    // decorator Annotate	pos=(215,275) size=368x44 style(Label), value = <NULL>
    // annotation user_begin: 68
    // annotation user: Depending on the setting of grid_switch the draped
    // annotation user: field is created.
    // annotation user_end: <NULL>
    // page group: switch
    //
    // decorator Annotate	pos=(189,373) size=425x60 style(Label), value = <NULL>
    // annotation user_begin: 144
    // annotation user: Shading is turned off, since in many cases the shading will
    // annotation user: be provided by an image (photograph). The user can always
    // annotation user: put shading on if desired.
    // annotation user_end: <NULL>
    // page group: switch
// network: end of macro body
}
Drape_Input_5_out_1 = NULL;
Drape_Input_6_out_1 = NULL;
Drape_Input_7_out_1 = NULL;
Drape_Input_8_out_1 = NULL;
Drape_Input_10_out_1 = NULL;
Drape_Transmitter_7_out_1 = NULL;
Drape_Receiver_4_out_1 = NULL;
Drape_Transmitter_6_out_1 = NULL;
Drape_Receiver_2_out_1 = NULL;
Drape_Map_1_out_1 = NULL;
Drape_Transmitter_10_out_1 = NULL;
Drape_Receiver_7_out_1 = NULL;
Drape_Receiver_5_out_1 = NULL;
Drape_Receiver_1_out_1 = NULL;
Drape_Transmitter_8_out_1 = NULL;
Drape_Receiver_9_out_1 = NULL;
Drape_RubberSheet_1_out_1 = NULL;
Drape_Transmitter_11_out_1 = NULL;
Drape_Receiver_13_out_1 = NULL;
Drape_Replace_1_out_1 = NULL;
Drape_Transmitter_12_out_1 = NULL;
Drape_Receiver_11_out_1 = NULL;
Drape_Receiver_6_out_1 = NULL;
Drape_Receiver_8_out_1 = NULL;
Drape_RubberSheet_2_out_1 = NULL;
Drape_Receiver_10_out_1 = NULL;
Drape_Replace_2_out_1 = NULL;
Drape_Transmitter_13_out_1 = NULL;
Drape_Receiver_12_out_1 = NULL;
Drape_Switch_1_out_1 = NULL;
Drape_Shade_1_out_1 = NULL;