OLD | NEW |
1 /* | 1 /* |
2 * $Id$ | 2 * $Id$ |
3 * | 3 * |
4 * ***** BEGIN GPL LICENSE BLOCK ***** | 4 * ***** BEGIN GPL LICENSE BLOCK ***** |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or | 6 * This program is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU General Public License | 7 * modify it under the terms of the GNU General Public License |
8 * as published by the Free Software Foundation; either version 2 | 8 * as published by the Free Software Foundation; either version 2 |
9 * of the License, or (at your option) any later version. | 9 * of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 2288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2299 RNA_def_property_boolean_sdna(prop, NULL, "jit", 1); | 2299 RNA_def_property_boolean_sdna(prop, NULL, "jit", 1); |
2300 RNA_def_property_ui_text(prop, "Jitter", "Enable/disable jittering; fast
er, but also noisier"); | 2300 RNA_def_property_ui_text(prop, "Jitter", "Enable/disable jittering; fast
er, but also noisier"); |
2301 RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update"); | 2301 RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update"); |
2302 ········ | 2302 ········ |
2303 prop = RNA_def_property(srna, "use_fit", PROP_BOOLEAN, PROP_NONE); | 2303 prop = RNA_def_property(srna, "use_fit", PROP_BOOLEAN, PROP_NONE); |
2304 RNA_def_property_boolean_sdna(prop, NULL, "fit", 1); | 2304 RNA_def_property_boolean_sdna(prop, NULL, "fit", 1); |
2305 RNA_def_property_ui_text(prop, "Fit", "For positive distortion factor on
ly: scale image such that black areas are not visible"); | 2305 RNA_def_property_ui_text(prop, "Fit", "For positive distortion factor on
ly: scale image such that black areas are not visible"); |
2306 RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update"); | 2306 RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update"); |
2307 } | 2307 } |
2308 | 2308 |
| 2309 static void def_cmp_basrelief(StructRNA *srna) |
| 2310 { |
| 2311 PropertyRNA *prop; |
| 2312 ········ |
| 2313 RNA_def_struct_sdna_from(srna, "NodeBasReliefData", "storage"); |
| 2314 ········ |
| 2315 prop = RNA_def_property(srna, "silhouette_threshold", PROP_FLOAT, PROP_C
OLOR_GAMMA); |
| 2316 RNA_def_property_float_sdna(prop, NULL, "silh_thres"); |
| 2317 RNA_def_property_range(prop, 0.001f, 15.0f); |
| 2318 RNA_def_property_ui_text(prop, "Threshold", "What z-buffer value differe
nce will be considered as object silhouette"); |
| 2319 RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update"); |
| 2320 ········ |
| 2321 prop = RNA_def_property(srna, "silhouette_scale", PROP_FLOAT, PROP_COLOR
_GAMMA); |
| 2322 RNA_def_property_float_sdna(prop, NULL, "scale"); |
| 2323 RNA_def_property_range(prop, 0.0f, 3.0f); |
| 2324 RNA_def_property_ui_text(prop, "Silhouette scale", "What z-buffer value
difference will be considered as object silhouette"); |
| 2325 RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update"); |
| 2326 ········ |
| 2327 prop = RNA_def_property(srna, "iterations", PROP_INT, PROP_NONE); |
| 2328 RNA_def_property_int_sdna(prop, NULL, "iterations"); |
| 2329 RNA_def_property_range(prop, 1, 80); |
| 2330 RNA_def_property_ui_text(prop, "Iterations", "Higher amount of iteration
s can improve quality of solution"); |
| 2331 RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update"); |
| 2332 ········ |
| 2333 prop = RNA_def_property(srna, "use_silhouette_recover", PROP_BOOLEAN, PR
OP_NONE); |
| 2334 RNA_def_property_boolean_sdna(prop, NULL, "silh_recover", 0); |
| 2335 RNA_def_property_ui_text(prop, "Recover silhouettes", "Makes silhouettes
step out"); |
| 2336 RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_update"); |
| 2337 } |
| 2338 |
2309 static void def_cmp_colorbalance(StructRNA *srna) | 2339 static void def_cmp_colorbalance(StructRNA *srna) |
2310 { | 2340 { |
2311 PropertyRNA *prop; | 2341 PropertyRNA *prop; |
2312 static float default_1[3] = {1.f, 1.f, 1.f}; | 2342 static float default_1[3] = {1.f, 1.f, 1.f}; |
2313 ········ | 2343 ········ |
2314 static EnumPropertyItem type_items[] = { | 2344 static EnumPropertyItem type_items[] = { |
2315 {0, "LIFT_GAMMA_GAIN", 0, "Lift/Gamma/Gain", ""}, | 2345 {0, "LIFT_GAMMA_GAIN", 0, "Lift/Gamma/Gain", ""}, |
2316 {1, "OFFSET_POWER_SLOPE", 0, "Offset/Power/Slope (ASC-CDL)",
"ASC-CDL standard color correction"}, | 2346 {1, "OFFSET_POWER_SLOPE", 0, "Offset/Power/Slope (ASC-CDL)",
"ASC-CDL standard color correction"}, |
2317 {0, NULL, 0, NULL, NULL}}; | 2347 {0, NULL, 0, NULL, NULL}}; |
2318 ········ | 2348 ········ |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3012 define_specific_node(brna, NODE_FORLOOP, def_forloop); | 3042 define_specific_node(brna, NODE_FORLOOP, def_forloop); |
3013 define_specific_node(brna, NODE_WHILELOOP, def_whileloop); | 3043 define_specific_node(brna, NODE_WHILELOOP, def_whileloop); |
3014 define_specific_node(brna, NODE_FRAME, def_frame); | 3044 define_specific_node(brna, NODE_FRAME, def_frame); |
3015 } | 3045 } |
3016 | 3046 |
3017 /* clean up macro definition */ | 3047 /* clean up macro definition */ |
3018 #undef NODE_DEFINE_SUBTYPES | 3048 #undef NODE_DEFINE_SUBTYPES |
3019 | 3049 |
3020 #endif | 3050 #endif |
3021 | 3051 |
OLD | NEW |