Older Newer
Fri, 04 Apr 2014 13:11:56 . . . . SyneRyder [Adding reference to DESIGNTIME]


Changes by last author:

Added:
= C Miscellaneous Constants =

These constants are specified in the C standard which FilterMeister aims to support; as such, they are available for developers.

_MAX_DIR - Maximum size in characters of a directory name (e.g., "adobe/photoshop/plug-ins").

_MAX_DRIVE - Maximum size in characters of a drive name (e.g., "C:").

_MAX_EXT - Maximum size in characters of a file extension (e.g., ".8bf").

_MAX_FNAME - Maximum size in characters of a file name (e.g., "myplugin").

_MAX_PATH - Maximum size in characters of a path name (e.g., "adobe/photoshop/plug-in/").

CLOCKS_PER_SEC

EDOM

ERANGE

EXIT_FAILURE

EXIT_SUCCESS

NULL - Constant for the integer value 0, representing a pointer to nothing.

RAND_MAX - Maximum value generated by the integer random number generator.

= C Mathematical Constants =

These constants are specified in the C standard which FilterMeister aims to support; especially in the library "math.h".

M_E - Same value as exp(1.0)

M_LOG2E - Same value as 1.0/log(2.0)

M_LOG10E - Same value as 1.0/log(10.0)

M_LN2 - Same value as log(2.0)

M_LN10 - Same value as log(10.0)

M_PI - The numerical value of the ratio of the circumference of a circle to its diameter (approximately 3.14159). Usually represented by the Greek letter Pi.

M_PI_2 - Same value as M_PI/2.0

M_PI_4 - Same value as M_PI/4.0

M_1_PI - Same value as 1.0/M_PI

M_2_PI - Same value as 2.0/M_PI

M_2_SQRTPI - Same value as 2.0/sqrt(M_PI)

M_SQRT2 - Same value as sqrt(2.0)

M_SQRT1_2 - Same value as 1.0/sqrt(2.0)

= Image constants =

These constants contain information about the image or preview being processed.

D - Maximum angle, always "1023". Datatype "int".

imageHRes - The horizontal DPI (Dots Per Inch) setting of the source image. Datatype "double".

imageVRes - The vertical DPI (Dots Per Inch) setting of the source image. Datatype "double".

imageWidth - Width of the ORIGINAL image in pixels. Datatype "int".

imageHeight - Height of the ORIGINAL image in pixels. Datatype "int".

X - Width of the currently processed image in pixels: on the run it's the (preview zoomratio dependent) PROXY IMAGE width but it's the original image width when effect is actually applied. Datatype "int".

Y - Height of the currently processed image in pixels: on the run it's the (preview zoomratio dependent) PROXY IMAGE height but it's the original image height when effect is actually applied. Datatype "int".

Z - Number of available channels. Number of color channels + one option channel if image is not the background layer. Datatype "int".

= Processing constants =

These constants contain information about how the image is being processed and the platform it is being processed on.

doingProxy - true if the filter is running in a preview dialog window, and false if the filter is applying the effect to the image in the host program.

scaleFactor - an integer representing the current zoom/scale of the preview proxy window (eg 1 for 100%, 3 for 33%, 5 for 20%)

platformData - a value that can sometimes be used to identify a particular combination of host program & operating system

hostSig - a value that can sometimes be used to identify the host program the plugin is running in (eg particular Photoshop versions)

FMC_TARGET - set to 32 for 32-bit plugins, and 64 for 64-bit plugins. Only available from FM1.0 Beta9g MT4 onwards.

DESIGNTIME - true if the filter is running in the FilterMeister development environment, false if a compiled filter plugin.

[[Transclude Events]]

= Filtermeister Limits =

MAX_LABEL_SIZE -max number of chars in a control label or dropdown list

MAX_TOOLTIP_SIZE -max number of chars in a tooltip

MAX_SOURCE_CODE_SIZE -max number of chars allowed by the source editor

MAX_DLITS -size of floating-point/string literal pool (in 8 byte units)

MAX_LOCALS -max number of local variables in a handler or user-defined function

MAX_TEMPS -max number of compiler-generated temporaries per handler or user-defined function

MAX_CASE_LABELS -max number of case labels per switch statement

N_CELLS -number of anonymous get/put cells

N_CTLS -max number of controls (user-defined and system reserved)

CTL_LAST_USER -index of last available user-defined control