CVB.Net 14.0
Processing Class Reference

Utility functions used for marshaling processing function calls. More...

Public Member Functions

delegate int ReturnCodeTranslation (int val)
 Delegate for converting tool-specific return codes to generalized return codes. More...
 
delegate int StandardProcessingFunction1< TOut > (out TOut valOut)
 Delegate for generating the bound Lambda expressions that will help reduce code duplication. More...
 
delegate int StandardProcessingFunction2< TOut > (out TOut valOut1, out TOut valOut2)
 Delegate for generating the bound Lambda expressions that will help reduce code duplication. More...
 
delegate int StandardProcessingFunctionVoid ()
 Delegate for generating the bound Lambda expressions that will help reduce code duplication. More...
 
delegate int StandardProcessingFunctionImg (out IntPtr imgOut)
 Delegate for generating the bound Lambda expressions that will help reduce code duplication. More...
 
delegate bool BoolProcessingFunctionImg (out IntPtr imgOut)
 Delegate for generating the bound Lambda expressions that will help reduce code duplication. More...
 

Static Public Member Functions

static Image StandardProcessingImg (StandardProcessingFunctionImg fn)
 Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image. More...
 
static Image BoolProcessingImg (Image img, BoolProcessingFunctionImg fn)
 Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image. More...
 
static Image StandardProcessingImg (INativeHandle obj, StandardProcessingFunctionImg fn)
 Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image. More...
 
static Image StandardProcessingImg (INativeHandle obj, StandardProcessingFunctionImg fn, ReturnCodeTranslation returnCodeTranslator)
 Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image. More...
 
static Image StandardProcessingImg (INativeHandle obj1, INativeHandle obj2, StandardProcessingFunctionImg fn)
 Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image. More...
 
static TOut StandardProcessing< TOut > (INativeHandle obj, StandardProcessingFunction1< TOut > fn)
 Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image. More...
 
static TOut StandardProcessing< TOut > (INativeHandle obj1, INativeHandle obj2, StandardProcessingFunction1< TOut > fn)
 Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image. More...
 
static TOut StandardProcessing< TOut > (StandardProcessingFunction1< TOut > fn)
 Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image. More...
 
static void StandardProcessing< TOut > (StandardProcessingFunction2< TOut > fn, out TOut val1, out TOut val2)
 Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image. More...
 
static void StandardProcessing (StandardProcessingFunctionVoid fn, ReturnCodeTranslation translator)
 Generic processing function that handles the basic input checks and caters to error reporting for functions some and generate nothing. More...
 
static void StandardProcessing (StandardProcessingFunctionVoid fn)
 Generic processing function. More...
 
static void StandardProcessing (INativeHandle obj, StandardProcessingFunctionVoid fn)
 Processing function that accepts an image and returns nothing. More...
 
static void StandardProcessing (INativeHandle obj, StandardProcessingFunctionVoid fn, ReturnCodeTranslation translator)
 Generic processing function that handles the basic input checks and caters to error reporting for functions some and generate nothing. More...
 
static void StandardProcessing (INativeHandle obj1, INativeHandle obj2, StandardProcessingFunctionVoid fn, ReturnCodeTranslation translator)
 Processing function that accepts two images and returns nothing. More...
 

Detailed Description

Utility functions used for marshaling processing function calls.

Member Function Documentation

◆ BoolProcessingFunctionImg()

delegate bool BoolProcessingFunctionImg ( out IntPtr  imgOut)

Delegate for generating the bound Lambda expressions that will help reduce code duplication.

Parameters
imgOutoutput image created by the processor

◆ BoolProcessingImg()

static Image BoolProcessingImg ( Image  img,
BoolProcessingFunctionImg  fn 
)
static

Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image.

Parameters
imginput image to be checked
fnfunction to be called
Returns
image created by the fn call

◆ ReturnCodeTranslation()

delegate int ReturnCodeTranslation ( int  val)

Delegate for converting tool-specific return codes to generalized return codes.

Parameters
valvalue to be converted
Returns
converted value

◆ StandardProcessing() [1/5]

static void StandardProcessing ( INativeHandle  obj,
StandardProcessingFunctionVoid  fn 
)
static

Processing function that accepts an image and returns nothing.

Parameters
objimage for consistency check
fnfunction to call

◆ StandardProcessing() [2/5]

static void StandardProcessing ( INativeHandle  obj,
StandardProcessingFunctionVoid  fn,
ReturnCodeTranslation  translator 
)
static

Generic processing function that handles the basic input checks and caters to error reporting for functions some and generate nothing.

Parameters
objimage to perform consistency checks on
fnfunction to be invoked
translatorreturn value translator

◆ StandardProcessing() [3/5]

static void StandardProcessing ( INativeHandle  obj1,
INativeHandle  obj2,
StandardProcessingFunctionVoid  fn,
ReturnCodeTranslation  translator 
)
static

Processing function that accepts two images and returns nothing.

Parameters
obj1image 1 for consistency check
obj2image 2 for consistency check
fnfunction to call
translatorreturn value translator

◆ StandardProcessing() [4/5]

static void StandardProcessing ( StandardProcessingFunctionVoid  fn)
static

Generic processing function.

Parameters
fnfunction to call

◆ StandardProcessing() [5/5]

static void StandardProcessing ( StandardProcessingFunctionVoid  fn,
ReturnCodeTranslation  translator 
)
static

Generic processing function that handles the basic input checks and caters to error reporting for functions some and generate nothing.

Parameters
fnfunction to be invoked
translatorreturn value translator

◆ StandardProcessing< TOut >() [1/4]

static TOut StandardProcessing< TOut > ( INativeHandle  obj,
StandardProcessingFunction1< TOut >  fn 
)
static

Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image.

Parameters
objimage input parameter to verify
fnfunction to invoke
Returns
the value(s) returned by fn as an out parameter

◆ StandardProcessing< TOut >() [2/4]

static TOut StandardProcessing< TOut > ( INativeHandle  obj1,
INativeHandle  obj2,
StandardProcessingFunction1< TOut >  fn 
)
static

Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image.

Parameters
obj1image input parameter to verify
obj2image input parameter to verify
fnfunction to invoke
Returns
the value(s) returned by fn as an out parameter

◆ StandardProcessing< TOut >() [3/4]

static TOut StandardProcessing< TOut > ( StandardProcessingFunction1< TOut >  fn)
static

Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image.

Parameters
fnfunction to invoke
Returns
the value(s) returned by fn as an out parameter

◆ StandardProcessing< TOut >() [4/4]

static void StandardProcessing< TOut > ( StandardProcessingFunction2< TOut >  fn,
out TOut  val1,
out TOut  val2 
)
static

Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image.

Parameters
val1output value created by the processor
val2output value created by the processor
fnfunction to invoke

◆ StandardProcessingFunction1< TOut >()

delegate int StandardProcessingFunction1< TOut > ( out TOut  valOut)

Delegate for generating the bound Lambda expressions that will help reduce code duplication.

Parameters
valOutoutput value created by the processor
Returns
true if processing succeeded, false others

◆ StandardProcessingFunction2< TOut >()

delegate int StandardProcessingFunction2< TOut > ( out TOut  valOut1,
out TOut  valOut2 
)

Delegate for generating the bound Lambda expressions that will help reduce code duplication.

Parameters
valOut1output value created by the processor
valOut2output value created by the processor
Returns
true if processing succeeded, false others

◆ StandardProcessingFunctionImg()

delegate int StandardProcessingFunctionImg ( out IntPtr  imgOut)

Delegate for generating the bound Lambda expressions that will help reduce code duplication.

Parameters
imgOutoutput image created by the processor

◆ StandardProcessingFunctionVoid()

delegate int StandardProcessingFunctionVoid ( )

Delegate for generating the bound Lambda expressions that will help reduce code duplication.

Returns
true if processing succeeded, false others

◆ StandardProcessingImg() [1/4]

static Image StandardProcessingImg ( INativeHandle  obj,
StandardProcessingFunctionImg  fn 
)
static

Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image.

Parameters
objinput image to be checked
fnfuncitn to be called
Returns
image returned by the fn call

◆ StandardProcessingImg() [2/4]

static Image StandardProcessingImg ( INativeHandle  obj,
StandardProcessingFunctionImg  fn,
ReturnCodeTranslation  returnCodeTranslator 
)
static

Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image.

Parameters
objinput image to be checked
fnfuncitn to be called
returnCodeTranslatortranslation function for tool specific return codes.
Returns
image returned by the fn call

◆ StandardProcessingImg() [3/4]

static Image StandardProcessingImg ( INativeHandle  obj1,
INativeHandle  obj2,
StandardProcessingFunctionImg  fn 
)
static

Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image.

Parameters
obj1input image 1 to check
obj2input image 2 to check
fnfunction to be called
Returns
image returned by the fn call

◆ StandardProcessingImg() [4/4]

static Image StandardProcessingImg ( StandardProcessingFunctionImg  fn)
static

Generic processing function that handles the basic input checks and caters to the result image creation and error reporting for functions that take an image (plus potentially some parameters) and generate an output image.

Parameters
fnfunction to be called
Returns
image created by the fn call