|
| 1 | +//------------------------------------------------------------------------------ |
| 2 | +// Apps/Nuke/nuke/src/fnPublicOfxExtensions.h |
| 3 | +// |
| 4 | +// Copyright (c) 2009 The Foundry Visionmongers Ltd. All Rights Reserved. |
| 5 | +//------------------------------------------------------------------------------ |
| 6 | + |
| 7 | +#ifndef _fnPublicOfxExtensions_h_ |
| 8 | +#define _fnPublicOfxExtensions_h_ |
| 9 | + |
| 10 | +/* |
| 11 | + Software License : |
| 12 | +
|
| 13 | + Copyright (c) 2009, The Foundry Visionmongers Ltd. All rights reserved. |
| 14 | +
|
| 15 | + Redistribution and use in source and binary forms, with or without |
| 16 | + modification, are permitted provided that the following conditions are met: |
| 17 | +
|
| 18 | + * Redistributions of source code must retain the above copyright notice, |
| 19 | + this list of conditions and the following disclaimer. |
| 20 | + * Redistributions in binary form must reproduce the above copyright notice, |
| 21 | + this list of conditions and the following disclaimer in the documentation |
| 22 | + and/or other materials provided with the distribution. |
| 23 | + * Neither the name The Foundry Visionmongers Ltd, nor the names of its |
| 24 | + contributors may be used to endorse or promote products derived from this |
| 25 | + software without specific prior written permission. |
| 26 | +
|
| 27 | + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 28 | + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 29 | + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 30 | + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR |
| 31 | + ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 32 | + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 33 | + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| 34 | + ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 35 | + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 36 | + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 37 | + */ |
| 38 | + |
| 39 | +#include "ofxImageEffect.h" |
| 40 | + |
| 41 | +/** @brief Layout hint for hierarchical layouts |
| 42 | +
|
| 43 | + - Type - int X 1 |
| 44 | + - Property Set - plugin parameter descriptor (read/write) and instance (read only) |
| 45 | + - Default - 0 |
| 46 | + - Valid Values - 0,1 or 2 |
| 47 | + 0 - for a new line after the parameter |
| 48 | + 1 - for a seperator between this parameter and the one to follow |
| 49 | + 2 - for no new line, continue the next parameter on the same horizontal level |
| 50 | +
|
| 51 | + This is a property on parameters of type ::kOfxParamPropLayoutHint, and tells the group whether it should be open or closed by default. |
| 52 | +
|
| 53 | + */ |
| 54 | +#define kOfxParamPropLayoutHint "OfxParamPropLayoutHint" |
| 55 | + |
| 56 | +// lay out as normal |
| 57 | +#define kOfxParamPropLayoutHintNormal 0 |
| 58 | + |
| 59 | +// put a divider after parameter |
| 60 | +#define kOfxParamPropLayoutHintDivider 1 |
| 61 | + |
| 62 | +// have the next parameter start on the same line as this |
| 63 | +#define kOfxParamPropLayoutHintNoNewLine 2 |
| 64 | + |
| 65 | +/** @brief Layout padding for hierarchical views, only pertinent with kOfxParamPropLayoutHint==2 |
| 66 | +
|
| 67 | + - Type - int X 1 |
| 68 | + - Property Set - plugin parameter descriptor (read/write) and instance (read only) |
| 69 | + - Default - 0 |
| 70 | + - Valid Values - any positive integer value |
| 71 | +
|
| 72 | + This is a property on parameters of type ::kOfxParamPropLayoutPadWidth |
| 73 | + It tells the host how much space (in pixels) to leave between the current parameter and the next parameter in horizontal layouts. |
| 74 | + */ |
| 75 | +#define kOfxParamPropLayoutPadWidth "OfxParamPropLayoutPadWidth" |
| 76 | + |
| 77 | +/** @brief The suggested colour of an overlay colour in an interact. |
| 78 | +
|
| 79 | + - Type - double X 3 |
| 80 | + - Property Set - plugin parameter descriptor (read/write) and instance (read only) |
| 81 | + - Default - 1.0 |
| 82 | + - Valid Values - greater than or equal to 0.0 |
| 83 | +
|
| 84 | + This is a property of an overlay interact instance. |
| 85 | + */ |
| 86 | +#define kOfxPropOverlayColour "OfxPropOverlayColour" |
| 87 | + |
| 88 | +/** @brief Unique user readable version string for that identifies something from other versions |
| 89 | +
|
| 90 | + - Type - string X 1 |
| 91 | + - Property Set - host descriptor (read only), plugin descriptor (read/write) |
| 92 | + - Default - none, the host needs to set this |
| 93 | + - Valid Values - ASCII string |
| 94 | + */ |
| 95 | +#define kOfxPropVersionLabel "OfxPropVersionLabel" |
| 96 | + |
| 97 | +/** @brief The displayed named of the host |
| 98 | +
|
| 99 | + - Type - string X 1 |
| 100 | + - Property Set - host descriptor (read only), plugin descriptor (read/write) |
| 101 | + - Default - none |
| 102 | + - Valid Values - ASCII string |
| 103 | + */ |
| 104 | +#define kOfxPropHostProductTitle "OfxPropHostProductTitle" |
| 105 | + |
| 106 | +/** @brief The major version of the host |
| 107 | +
|
| 108 | + - Type - int X 1 |
| 109 | + - Property Set - param set instance (read/write) |
| 110 | + - Default - none |
| 111 | + - Valid Values - any positive integer values |
| 112 | + */ |
| 113 | +#define kOfxPropHostMajorVersion "OfxPropHostMajorVersion" |
| 114 | + |
| 115 | +/** @brief The minor version of the host |
| 116 | +
|
| 117 | + - Type - int X 1 |
| 118 | + - Property Set - param set instance (read/write) |
| 119 | + - Default - none |
| 120 | + - Valid Values - any positive integer values |
| 121 | + */ |
| 122 | +#define kOfxPropHostMinorVersion "OfxPropHostMinorVersion" |
| 123 | + |
| 124 | +/** @brief The build version of the host |
| 125 | +
|
| 126 | + - Type - string X 1 |
| 127 | + - Property Set - host descriptor (read only), plugin descriptor (read/write) |
| 128 | + - Default - none |
| 129 | + - Valid Values - ASCII string |
| 130 | + */ |
| 131 | +#define kOfxPropHostBuildVersion "OfxPropHostBuildVersion" |
| 132 | + |
| 133 | +/** @brief Whether to display a group as a tab |
| 134 | +
|
| 135 | + - Type - int X 1 |
| 136 | + - Property Set - plugin parameter descriptor (read/write) and instance (read only) |
| 137 | + - Default - 0 |
| 138 | + - Valid Values - 0 or 1 |
| 139 | + */ |
| 140 | +#define kFnOfxParamPropGroupIsTab "FnOfxParamPropGroupIsTab" |
| 141 | + |
| 142 | + |
| 143 | +#endif |
0 commit comments