You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1930 lines
54 KiB
Plaintext
1930 lines
54 KiB
Plaintext
// Created by Microsoft (R) C/C++ Compiler Version 14.16.27050.0 (ae112048).
|
|
//
|
|
// d:\git\hzleaper\smokebox\tpvs17\smokeboxidentification\x64\release\lpvCore.tlh
|
|
//
|
|
// C++ source equivalent of type library c34b3e9e-6dea-4aa9-b500-0266f90dc15f
|
|
// compiler-generated file created 03/05/24 at 14:34:41 - DO NOT EDIT!
|
|
|
|
#pragma once
|
|
#pragma pack(push, 8)
|
|
|
|
#include <comdef.h>
|
|
|
|
//
|
|
// Forward references and typedefs
|
|
//
|
|
|
|
struct __declspec(uuid("c34b3e9e-6dea-4aa9-b500-0266f90dc15f"))
|
|
/* LIBID */ __LPVCoreLib;
|
|
struct LMatrix23;
|
|
struct LMatrix33;
|
|
struct LMatrix44;
|
|
struct LColor;
|
|
struct LSize;
|
|
enum LPVErrorCode;
|
|
enum LPVRoiHandle;
|
|
enum LPVTransformType;
|
|
enum LPVAggregation;
|
|
enum LPVPenStyle;
|
|
enum LPVPointShape;
|
|
enum LPVPolarity;
|
|
enum LPVExcludeBoundaryMode;
|
|
enum LPVSortBy;
|
|
enum LPVSortOrder;
|
|
enum LPVPositionMode;
|
|
enum LPVFindBy;
|
|
enum LPVChartDrawFlags;
|
|
enum LPVInterpolationMethod;
|
|
enum LPVThresholdType;
|
|
enum LPVMorphShape;
|
|
enum LPVEdgeKernel;
|
|
enum LPVFlipType;
|
|
enum LPVColor;
|
|
enum LPVImageFormat;
|
|
enum LPVColorSpace;
|
|
enum LPVDirection;
|
|
enum LPVAxis;
|
|
struct __declspec(uuid("52f4d75c-6994-445f-9852-45ac4bf86c50"))
|
|
/* interface */ ILDrawable;
|
|
struct __declspec(uuid("ded7e160-36bd-4fe3-8d98-72bddc93b83d"))
|
|
/* interface */ ILSortables;
|
|
struct __declspec(uuid("d56cf377-498f-4b5c-8913-6d77f2dd8a29"))
|
|
/* interface */ ILSortable;
|
|
struct __declspec(uuid("50cc1928-457b-4ce6-bfdf-1a9b47022a31"))
|
|
/* dual interface */ ILObject;
|
|
struct __declspec(uuid("ec419121-252e-4173-ad0d-2d3d69986af3"))
|
|
/* dual interface */ ILSystem;
|
|
struct __declspec(uuid("445d309e-0929-4b12-84a5-461e353d2bea"))
|
|
/* dual interface */ ILImage;
|
|
struct __declspec(uuid("edc919ed-2f22-48c3-b059-37e20a7d9a59"))
|
|
/* dual interface */ ILRegion;
|
|
struct __declspec(uuid("aecb7fb8-d910-457e-9b47-2da967335bf7"))
|
|
/* dual interface */ ILRectRegion;
|
|
struct __declspec(uuid("605251ec-4957-4d85-a9a2-cd42f1e8b4b7"))
|
|
/* dual interface */ ILRotRectRegion;
|
|
struct __declspec(uuid("7c63e516-8af9-47ec-a35a-a32c194a783b"))
|
|
/* dual interface */ ILCircleRegion;
|
|
struct __declspec(uuid("8e869611-1478-4c52-8083-3b19d99e5fdb"))
|
|
/* dual interface */ ILPolyRegion;
|
|
struct __declspec(uuid("de41b0b3-1a33-4e7a-b38d-5cc098dff62b"))
|
|
/* dual interface */ ILMaskRegion;
|
|
struct __declspec(uuid("09161909-a8f9-4623-aa75-9e5398a5145b"))
|
|
/* dual interface */ ILAnnulusRegion;
|
|
struct __declspec(uuid("23207784-c0ae-4f89-89f4-0d4a07536f9e"))
|
|
/* dual interface */ ILEllipseRegion;
|
|
struct __declspec(uuid("69904f7a-3370-425d-984a-e1a21d19957c"))
|
|
/* dual interface */ ILAnnulusSectorRegion;
|
|
struct __declspec(uuid("1c052ea3-25c1-434a-8b1e-903803415814"))
|
|
/* dual interface */ ILImageList;
|
|
struct /* coclass */ LSystem;
|
|
struct /* coclass */ LImage;
|
|
struct /* coclass */ LRegion;
|
|
struct /* coclass */ LRectRegion;
|
|
struct /* coclass */ LRotRectRegion;
|
|
struct /* coclass */ LCircleRegion;
|
|
struct /* coclass */ LPolyRegion;
|
|
struct /* coclass */ LMaskRegion;
|
|
struct /* coclass */ LAnnulusRegion;
|
|
struct /* coclass */ LEllipseRegion;
|
|
struct /* coclass */ LAnnulusSectorRegion;
|
|
struct /* coclass */ LImageList;
|
|
|
|
//
|
|
// Smart pointer typedef declarations
|
|
//
|
|
|
|
_COM_SMARTPTR_TYPEDEF(ILDrawable, __uuidof(ILDrawable));
|
|
_COM_SMARTPTR_TYPEDEF(ILSortable, __uuidof(ILSortable));
|
|
_COM_SMARTPTR_TYPEDEF(ILSortables, __uuidof(ILSortables));
|
|
_COM_SMARTPTR_TYPEDEF(ILObject, __uuidof(ILObject));
|
|
_COM_SMARTPTR_TYPEDEF(ILSystem, __uuidof(ILSystem));
|
|
_COM_SMARTPTR_TYPEDEF(ILImage, __uuidof(ILImage));
|
|
_COM_SMARTPTR_TYPEDEF(ILRegion, __uuidof(ILRegion));
|
|
_COM_SMARTPTR_TYPEDEF(ILRectRegion, __uuidof(ILRectRegion));
|
|
_COM_SMARTPTR_TYPEDEF(ILRotRectRegion, __uuidof(ILRotRectRegion));
|
|
_COM_SMARTPTR_TYPEDEF(ILCircleRegion, __uuidof(ILCircleRegion));
|
|
_COM_SMARTPTR_TYPEDEF(ILPolyRegion, __uuidof(ILPolyRegion));
|
|
_COM_SMARTPTR_TYPEDEF(ILMaskRegion, __uuidof(ILMaskRegion));
|
|
_COM_SMARTPTR_TYPEDEF(ILAnnulusRegion, __uuidof(ILAnnulusRegion));
|
|
_COM_SMARTPTR_TYPEDEF(ILEllipseRegion, __uuidof(ILEllipseRegion));
|
|
_COM_SMARTPTR_TYPEDEF(ILAnnulusSectorRegion, __uuidof(ILAnnulusSectorRegion));
|
|
_COM_SMARTPTR_TYPEDEF(ILImageList, __uuidof(ILImageList));
|
|
|
|
//
|
|
// Type library items
|
|
//
|
|
const long LPVMajorVersion = 1;
|
|
const long LPVMinorVersion = 18;
|
|
const long LPVMicroVersion = 6;
|
|
|
|
#pragma pack(push, 8)
|
|
|
|
struct __declspec(uuid("c1659ce1-a14b-4432-981e-d30976aadd66"))
|
|
LMatrix23
|
|
{
|
|
double m11;
|
|
double m12;
|
|
double m13;
|
|
double m21;
|
|
double m22;
|
|
double m23;
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#pragma pack(push, 8)
|
|
|
|
struct __declspec(uuid("4b6781ef-6779-420d-80d9-732217d0fc66"))
|
|
LMatrix33
|
|
{
|
|
double m11;
|
|
double m12;
|
|
double m13;
|
|
double m21;
|
|
double m22;
|
|
double m23;
|
|
double m31;
|
|
double m32;
|
|
double m33;
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#pragma pack(push, 8)
|
|
|
|
struct __declspec(uuid("b5cf4cef-3c3e-46d1-b1a2-468136e3e0f7"))
|
|
LMatrix44
|
|
{
|
|
double m11;
|
|
double m12;
|
|
double m13;
|
|
double m14;
|
|
double m21;
|
|
double m22;
|
|
double m23;
|
|
double m24;
|
|
double m31;
|
|
double m32;
|
|
double m33;
|
|
double m34;
|
|
double m41;
|
|
double m42;
|
|
double m43;
|
|
double m44;
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#pragma pack(push, 4)
|
|
|
|
struct __declspec(uuid("9f4a8547-70f7-495a-9d95-3748997f3d4d"))
|
|
LColor
|
|
{
|
|
int v0;
|
|
int v1;
|
|
int v2;
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#pragma pack(push, 4)
|
|
|
|
struct __declspec(uuid("a027182b-f8a8-4b0a-a48f-d8e34fd3d218"))
|
|
LSize
|
|
{
|
|
int w;
|
|
int h;
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
enum LPVErrorCode
|
|
{
|
|
LPVNoError = 0,
|
|
LPVNoResult = 1,
|
|
LPVErrUnknown = -2130706432,
|
|
LPVErrEmptyImage = -2130706431,
|
|
LPVErrEmptyRegion = -2130706430,
|
|
LPVErrSizeTooSmall = -2130706429,
|
|
LPVErrSizeNotMatch = -2130706428,
|
|
LPVErrTypeNotMatch = -2130706427,
|
|
LPVErrFile = -2130706176,
|
|
LPVErrFileUnsupportFormat = -2130706175,
|
|
LPVErrFileEmpty = -2130706174,
|
|
LPVErrFileFailEncode = -2130706173,
|
|
LPVErrFileFailDecode = -2130706172,
|
|
LPVErrFileFailOpen = -2130706171,
|
|
LPVErrFileUnexpect = -2130706170,
|
|
LPVErrFileFailSave = -2130706169,
|
|
LPVErrFileFailLoad = -2130706168,
|
|
LPVErrFileFailRemove = -2130706167,
|
|
LPVErrCalib = -2130705920,
|
|
LPVErrCalibTooFewPoints = -2130705919,
|
|
LPVErrCalibUnequalImageWorldPoints = -2130705918,
|
|
LPVErrCalibFailDetectImagePoints = -2130705917,
|
|
LPVErrCalibFailCalibration = -2130705916,
|
|
LPVErrCalibUnexpect = -2130705915,
|
|
LPVErrCalibNotCalib = -2130705914,
|
|
LPVErrCalibPointsCollinear = -2130705913,
|
|
LPVErrWithoutImgSize = -2130705912,
|
|
LPVErrInvalidAxisDir = -2130705911,
|
|
LPVErrFailMultiCameraCalibration = -2130705910,
|
|
LPVErrFailDetectRefInstance = -2130705909,
|
|
LPVErrFailUpdateRefInstance = -2130705908,
|
|
LPVErrFailVerifyRefInstance = -2130705907,
|
|
LPVErrFailImageSizeNotMatch = -2130705906,
|
|
LPVErrFailDistortionModelNotMatch = -2130705905,
|
|
LPVErrCalibRotationFailed = -2130705767,
|
|
LPVErrPat = -2130705664,
|
|
LPVErrPatFailTrain = -2130705663,
|
|
LPVErrPatNotTrain = -2130705662,
|
|
LPVErrGeomAdv = -2130705408,
|
|
LPVErrSortArrayFailed = -2130705407,
|
|
LPVErrML = -2130705152,
|
|
LPVErrMLSampleFailLoad = -2130705151,
|
|
LPVErrMLTooFewClass = -2130705150,
|
|
LPVErrMLNoModel = -2130705149,
|
|
LPVErrMLNoFeature = -2130705148,
|
|
LPVErrMLDirtyModel = -2130705147,
|
|
LPVErrMLNotTrained = -2130705146,
|
|
LPVErrMLTooFewSample = -2130705145,
|
|
LPVErrMLBusy = -2130705143,
|
|
LPVErrOCR = -2130704896,
|
|
LPVErrOCRNoFontDB = -2130704895,
|
|
LPVErrOCRNoCharDB = -2130704894,
|
|
LPVErrOCRModifyOOBFontDB = -2130704893,
|
|
LPVErrOCRFailAddSampleToFontDB = -2130704892,
|
|
LPVErrOCRFailRemoveFromFontDB = -2130704891,
|
|
LPVErrOCRFailTrainFontDB = -2130704890,
|
|
LPVErrOCRFailTrainTooFewChar = -2130704889,
|
|
LPVErrOCRFailTrainTooFewSample = -2130704888,
|
|
LPVErrOCRFailTrainFailExtFeature = -2130704887,
|
|
LPVErrOCRFailAddCharToFontDB = -2130704886
|
|
};
|
|
|
|
enum LPVRoiHandle
|
|
{
|
|
LPVRoiHandleUnknown = -1,
|
|
LPVRoiHandleNone = 0,
|
|
LPVRoiHandleInside = 16,
|
|
LPVRoiHandleTop = 1,
|
|
LPVRoiHandleBottom = 2,
|
|
LPVRoiHandleLeft = 4,
|
|
LPVRoiHandleRight = 8,
|
|
LPVRoiHandleTopLeft = 5,
|
|
LPVRoiHandleBottomLeft = 6,
|
|
LPVRoiHandleTopRight = 9,
|
|
LPVRoiHandleBottomRight = 10,
|
|
LPVRoiHandleRotation = 32,
|
|
LPVRoiHandleMoveVertex = 64,
|
|
LPVRoiHandleAddVertex = 128,
|
|
LPVRoiHandleRemoveVertex = 256,
|
|
LPVRoiHandleAnchor = 512
|
|
};
|
|
|
|
enum LPVTransformType
|
|
{
|
|
LPVTransformRigid = 0,
|
|
LPVTransformSimilar = 1,
|
|
LPVTransformAffine = 2,
|
|
LPVTransformHomography = 3
|
|
};
|
|
|
|
enum LPVAggregation
|
|
{
|
|
LPVAggAvg = 0,
|
|
LPVAggDev = 1,
|
|
LPVAggVar = 2,
|
|
LPVAggMin = 3,
|
|
LPVAggMax = 4,
|
|
LPVAggMajor = 5,
|
|
LPVAggSum = 6
|
|
};
|
|
|
|
enum LPVPenStyle
|
|
{
|
|
LPVPenSolid = 0,
|
|
LPVPenDash = 1,
|
|
LPVPenDot = 2,
|
|
LPVPenDashDot = 3,
|
|
LPVPenDashDotDot = 4
|
|
};
|
|
|
|
enum LPVPointShape
|
|
{
|
|
LPVPointShapeCross = 0,
|
|
LPVPointShapeTiltedCross = 1,
|
|
LPVPointShapeStar = 2,
|
|
LPVPointShapeDiamond = 3,
|
|
LPVPointShapeSquare = 4,
|
|
LPVPointShapeTriangle = 5,
|
|
LPVPointShapeTriangleInv = 6
|
|
};
|
|
|
|
enum LPVPolarity
|
|
{
|
|
LPVBlack2White = 0,
|
|
LPVWhite2Black = 1,
|
|
LPVPolarityEitherEdge = 2,
|
|
LPVBlackOnWhite = 3,
|
|
LPVWhiteOnBlack = 4,
|
|
LPVPolarityEitherObject = 5,
|
|
LPVPolarityEither = 6
|
|
};
|
|
|
|
enum LPVExcludeBoundaryMode
|
|
{
|
|
LPVEBModeNone = 0,
|
|
LPVEBModeEntire = 1,
|
|
LPVEBModePartial = 2
|
|
};
|
|
|
|
enum LPVSortBy
|
|
{
|
|
LPVSortByReserved = 0,
|
|
LPVSortByX = 1,
|
|
LPVSortByY = 2,
|
|
LPVSortByScore = 3,
|
|
LPVSortByColumn = 4,
|
|
LPVSortByRow = 5
|
|
};
|
|
|
|
enum LPVSortOrder
|
|
{
|
|
LPVSortOrderRandom = 1,
|
|
LPVSortOrderAscending = 2,
|
|
LPVSortOrderDescending = 3,
|
|
LPVSortOrderAscendingZigZag = 4,
|
|
LPVSortOrderDescendingZigZag = 5
|
|
};
|
|
|
|
enum LPVPositionMode
|
|
{
|
|
LPVPosModeCenter = 0,
|
|
LPVPosModeTopLeft = 1,
|
|
LPVPosModeTopRight = 2,
|
|
LPVPosModeBottomLeft = 3,
|
|
LPVPosModeBottomRight = 4
|
|
};
|
|
|
|
enum LPVFindBy
|
|
{
|
|
LPVFindBest = 0,
|
|
LPVFindFirst = 1,
|
|
LPVFindLast = 2,
|
|
LPVFindCentral = 3
|
|
};
|
|
|
|
enum LPVChartDrawFlags
|
|
{
|
|
LPVChartDrawAsBar = 1,
|
|
LPVChartDrawAsLine = 2,
|
|
LPVChartDrawGrid = 4,
|
|
LPVChartDrawIndexLabel = 8,
|
|
LPVChartDrawValueLabel = 16,
|
|
LPVChartDrawAsLineDefault = 26,
|
|
LPVChartDrawAsBarDefault = 25,
|
|
LPVChartDrawDefault = 25,
|
|
LPVChartDrawAll = 255
|
|
};
|
|
|
|
enum LPVInterpolationMethod
|
|
{
|
|
LPVInterNearest = 0,
|
|
LPVInterLinear = 1,
|
|
LPVInterCubic = 2,
|
|
LPVInterArea = 3
|
|
};
|
|
|
|
enum LPVThresholdType
|
|
{
|
|
LPVThresholdCustom = 0,
|
|
LPVThresholdAdaptGlobal = 1,
|
|
LPVThresholdAdaptLocal = 2
|
|
};
|
|
|
|
enum LPVMorphShape
|
|
{
|
|
LPVMorphRect = 0,
|
|
LPVMorphCross = 1,
|
|
LPVMorphEllipse = 2
|
|
};
|
|
|
|
enum LPVEdgeKernel
|
|
{
|
|
LPVSobel = 0,
|
|
LPVPrewitt = 1,
|
|
LPVScharr = 2
|
|
};
|
|
|
|
enum LPVFlipType
|
|
{
|
|
LPVFlipH = 1,
|
|
LPVFlipV = 2,
|
|
LPVFlipBoth = 3
|
|
};
|
|
|
|
enum LPVColor
|
|
{
|
|
LPVWhite = 16777215,
|
|
LPVBlack = 0,
|
|
LPVRed = 255,
|
|
LPVDarkRed = 128,
|
|
LPVGreen = 65280,
|
|
LPVDarkGreen = 32768,
|
|
LPVBlue = 16711680,
|
|
LPVDarkBlue = 8388608,
|
|
LPVCyan = 16776960,
|
|
LPVDarkCyan = 8421376,
|
|
LPVMagenta = 16711935,
|
|
LPVDarkMagenta = 8388736,
|
|
LPVYellow = 65535,
|
|
LPVDarkYellow = 32896,
|
|
LPVGray = 10789024,
|
|
LPVDarkGray = 8421504,
|
|
LPVLightGray = 12632256,
|
|
LPVTransparent = -1
|
|
};
|
|
|
|
enum LPVImageFormat
|
|
{
|
|
LPVImageFormatGrayscale8 = 0,
|
|
LPVImageFormatColor24 = 1
|
|
};
|
|
|
|
enum LPVColorSpace
|
|
{
|
|
LPVColorSpaceBGR = 0,
|
|
LPVColorSpaceHSV = 1,
|
|
LPVColorSpaceHLS = 2,
|
|
LPVColorSpaceYCrCb = 3,
|
|
LPVColorSpaceYUV = 4,
|
|
LPVColorSpaceXYZ = 5,
|
|
LPVColorSpaceLAB = 6,
|
|
LPVColorSpaceLUV = 7
|
|
};
|
|
|
|
enum LPVDirection
|
|
{
|
|
LPVDirLeft = 0,
|
|
LPVDirRight = 1,
|
|
LPVDirUp = 2,
|
|
LPVDirDown = 3
|
|
};
|
|
|
|
enum LPVAxis
|
|
{
|
|
LPVAxisX = 0,
|
|
LPVAxisY = 1,
|
|
LPVAxisZ = 2
|
|
};
|
|
|
|
struct __declspec(uuid("52f4d75c-6994-445f-9852-45ac4bf86c50"))
|
|
ILDrawable : IUnknown
|
|
{
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
HRESULT SetPen (
|
|
enum LPVPenStyle penStyle,
|
|
int penWidth,
|
|
unsigned long penColor );
|
|
HRESULT SetPenColor (
|
|
unsigned long penColor );
|
|
HRESULT SetPenWidth (
|
|
int penWidth );
|
|
HRESULT SetPenStyle (
|
|
enum LPVPenStyle penStyle );
|
|
HRESULT SetBrushColor (
|
|
unsigned long brushColor );
|
|
HRESULT SetFont (
|
|
_bstr_t fontFamily,
|
|
int fontHeight,
|
|
unsigned long fontColor,
|
|
VARIANT_BOOL bold,
|
|
VARIANT_BOOL italic,
|
|
VARIANT_BOOL underline,
|
|
VARIANT_BOOL strikeOut );
|
|
HRESULT SetFontFamily (
|
|
_bstr_t fontFamily );
|
|
HRESULT SetFontHeight (
|
|
int fontHeight );
|
|
HRESULT SetFontColor (
|
|
unsigned long fontColor );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall raw_SetPen (
|
|
/*[in]*/ enum LPVPenStyle penStyle,
|
|
/*[in]*/ int penWidth,
|
|
/*[in]*/ unsigned long penColor ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPenColor (
|
|
/*[in]*/ unsigned long penColor ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPenWidth (
|
|
/*[in]*/ int penWidth ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPenStyle (
|
|
/*[in]*/ enum LPVPenStyle penStyle ) = 0;
|
|
virtual HRESULT __stdcall raw_SetBrushColor (
|
|
/*[in]*/ unsigned long brushColor ) = 0;
|
|
virtual HRESULT __stdcall raw_SetFont (
|
|
/*[in]*/ BSTR fontFamily,
|
|
/*[in]*/ int fontHeight,
|
|
/*[in]*/ unsigned long fontColor,
|
|
/*[in]*/ VARIANT_BOOL bold,
|
|
/*[in]*/ VARIANT_BOOL italic,
|
|
/*[in]*/ VARIANT_BOOL underline,
|
|
/*[in]*/ VARIANT_BOOL strikeOut ) = 0;
|
|
virtual HRESULT __stdcall raw_SetFontFamily (
|
|
/*[in]*/ BSTR fontFamily ) = 0;
|
|
virtual HRESULT __stdcall raw_SetFontHeight (
|
|
/*[in]*/ int fontHeight ) = 0;
|
|
virtual HRESULT __stdcall raw_SetFontColor (
|
|
/*[in]*/ unsigned long fontColor ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("d56cf377-498f-4b5c-8913-6d77f2dd8a29"))
|
|
ILSortable : IUnknown
|
|
{
|
|
//
|
|
// Property data
|
|
//
|
|
|
|
__declspec(property(get=GetIndex,put=PutIndex))
|
|
int Index;
|
|
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
int GetIndex ( );
|
|
void PutIndex (
|
|
int val );
|
|
double GetPosX (
|
|
enum LPVPositionMode posMode );
|
|
double GetPosY (
|
|
enum LPVPositionMode posMode );
|
|
double GetScore ( );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall get_Index (
|
|
/*[out,retval]*/ int * val ) = 0;
|
|
virtual HRESULT __stdcall put_Index (
|
|
/*[in]*/ int val ) = 0;
|
|
virtual HRESULT __stdcall raw_GetPosX (
|
|
/*[in]*/ enum LPVPositionMode posMode,
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall raw_GetPosY (
|
|
/*[in]*/ enum LPVPositionMode posMode,
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall raw_GetScore (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("ded7e160-36bd-4fe3-8d98-72bddc93b83d"))
|
|
ILSortables : IUnknown
|
|
{
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
HRESULT Sort (
|
|
enum LPVSortBy sortBy,
|
|
enum LPVSortOrder sortOrder,
|
|
enum LPVPositionMode posMode );
|
|
SAFEARRAY * SortTo (
|
|
enum LPVSortBy sortBy,
|
|
enum LPVSortOrder sortOrder,
|
|
enum LPVPositionMode posMode );
|
|
HRESULT ApplySort (
|
|
SAFEARRAY * sortedIndexes );
|
|
int SortableCount ( );
|
|
ILSortablePtr GetSortable (
|
|
int Index );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall raw_Sort (
|
|
/*[in]*/ enum LPVSortBy sortBy,
|
|
/*[in]*/ enum LPVSortOrder sortOrder,
|
|
/*[in]*/ enum LPVPositionMode posMode ) = 0;
|
|
virtual HRESULT __stdcall raw_SortTo (
|
|
/*[in]*/ enum LPVSortBy sortBy,
|
|
/*[in]*/ enum LPVSortOrder sortOrder,
|
|
/*[in]*/ enum LPVPositionMode posMode,
|
|
/*[out,retval]*/ SAFEARRAY * * sortedIndexes ) = 0;
|
|
virtual HRESULT __stdcall raw_ApplySort (
|
|
/*[in]*/ SAFEARRAY * sortedIndexes ) = 0;
|
|
virtual HRESULT __stdcall raw_SortableCount (
|
|
/*[out,retval]*/ int * val ) = 0;
|
|
virtual HRESULT __stdcall raw_GetSortable (
|
|
/*[in]*/ int Index,
|
|
/*[out,retval]*/ struct ILSortable * * sortable ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("50cc1928-457b-4ce6-bfdf-1a9b47022a31"))
|
|
ILObject : IDispatch
|
|
{
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
HRESULT Reset ( );
|
|
enum LPVErrorCode Save (
|
|
_bstr_t filename );
|
|
enum LPVErrorCode Load (
|
|
_bstr_t filename );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall raw_Reset ( ) = 0;
|
|
virtual HRESULT __stdcall raw_Save (
|
|
/*[in]*/ BSTR filename,
|
|
/*[out,retval]*/ enum LPVErrorCode * error ) = 0;
|
|
virtual HRESULT __stdcall raw_Load (
|
|
/*[in]*/ BSTR filename,
|
|
/*[out,retval]*/ enum LPVErrorCode * error ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("ec419121-252e-4173-ad0d-2d3d69986af3"))
|
|
ILSystem : IDispatch
|
|
{
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
VARIANT_BOOL CheckVersion (
|
|
long majorVersion,
|
|
long minorVersion,
|
|
long microVersion );
|
|
HRESULT SetPen (
|
|
IDispatch * drawable,
|
|
enum LPVPenStyle penStyle,
|
|
int penWidth,
|
|
unsigned long penColor );
|
|
HRESULT SetPenColor (
|
|
IDispatch * drawable,
|
|
unsigned long penColor );
|
|
HRESULT SetPenWidth (
|
|
IDispatch * drawable,
|
|
int penWidth );
|
|
HRESULT SetPenStyle (
|
|
IDispatch * drawable,
|
|
enum LPVPenStyle penStyle );
|
|
HRESULT SetBrushColor (
|
|
IDispatch * drawable,
|
|
unsigned long penColor );
|
|
HRESULT SetFont (
|
|
IDispatch * drawable,
|
|
_bstr_t fontFamily,
|
|
int fontHeight,
|
|
unsigned long fontColor,
|
|
VARIANT_BOOL bold,
|
|
VARIANT_BOOL italic,
|
|
VARIANT_BOOL underline,
|
|
VARIANT_BOOL strikeOut );
|
|
HRESULT SetFontFamily (
|
|
IDispatch * drawable,
|
|
_bstr_t fontFamily );
|
|
HRESULT SetFontHeight (
|
|
IDispatch * drawable,
|
|
int fontHeight );
|
|
HRESULT SetFontColor (
|
|
IDispatch * drawable,
|
|
unsigned long fontColor );
|
|
unsigned long GetColorRef (
|
|
int red,
|
|
int green,
|
|
int blue );
|
|
HRESULT SetDrawPointSize (
|
|
int size );
|
|
HRESULT DrawPoint (
|
|
double x,
|
|
double y,
|
|
enum LPVPointShape shape,
|
|
void * hdc,
|
|
double zoomX,
|
|
double zoomY,
|
|
double panX,
|
|
double panY );
|
|
HRESULT DrawLine (
|
|
double x1,
|
|
double y1,
|
|
double x2,
|
|
double y2,
|
|
void * hdc,
|
|
double zoomX,
|
|
double zoomY,
|
|
double panX,
|
|
double panY );
|
|
HRESULT DrawCircle (
|
|
double x,
|
|
double y,
|
|
double r,
|
|
VARIANT_BOOL bFill,
|
|
void * hdc,
|
|
double zoomX,
|
|
double zoomY,
|
|
double panX,
|
|
double panY );
|
|
HRESULT DrawRect (
|
|
double x,
|
|
double y,
|
|
double w,
|
|
double h,
|
|
double a,
|
|
VARIANT_BOOL bFill,
|
|
void * hdc,
|
|
double zoomX,
|
|
double zoomY,
|
|
double panX,
|
|
double panY );
|
|
HRESULT DrawPolygon (
|
|
SAFEARRAY * xs,
|
|
SAFEARRAY * ys,
|
|
VARIANT_BOOL bClosed,
|
|
VARIANT_BOOL bFill,
|
|
void * hdc,
|
|
double zoomX,
|
|
double zoomY,
|
|
double panX,
|
|
double panY );
|
|
HRESULT DrawString (
|
|
_bstr_t text,
|
|
int tlx,
|
|
int tly,
|
|
void * hdc,
|
|
double zoomX,
|
|
double zoomY,
|
|
double panX,
|
|
double panY );
|
|
HRESULT GetRGBFromColorRef (
|
|
unsigned long colorRef,
|
|
int * red,
|
|
int * green,
|
|
int * blue );
|
|
HRESULT SetRegionHandleSize (
|
|
int size );
|
|
VARIANT_BOOL CheckLicense ( );
|
|
VARIANT_BOOL CheckLib (
|
|
_bstr_t libName );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall raw_CheckVersion (
|
|
/*[in]*/ long majorVersion,
|
|
/*[in]*/ long minorVersion,
|
|
/*[in]*/ long microVersion,
|
|
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPen (
|
|
/*[in]*/ IDispatch * drawable,
|
|
/*[in]*/ enum LPVPenStyle penStyle,
|
|
/*[in]*/ int penWidth,
|
|
/*[in]*/ unsigned long penColor ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPenColor (
|
|
/*[in]*/ IDispatch * drawable,
|
|
/*[in]*/ unsigned long penColor ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPenWidth (
|
|
/*[in]*/ IDispatch * drawable,
|
|
/*[in]*/ int penWidth ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPenStyle (
|
|
/*[in]*/ IDispatch * drawable,
|
|
/*[in]*/ enum LPVPenStyle penStyle ) = 0;
|
|
virtual HRESULT __stdcall raw_SetBrushColor (
|
|
/*[in]*/ IDispatch * drawable,
|
|
/*[in]*/ unsigned long penColor ) = 0;
|
|
virtual HRESULT __stdcall raw_SetFont (
|
|
/*[in]*/ IDispatch * drawable,
|
|
/*[in]*/ BSTR fontFamily,
|
|
/*[in]*/ int fontHeight,
|
|
/*[in]*/ unsigned long fontColor,
|
|
/*[in]*/ VARIANT_BOOL bold,
|
|
/*[in]*/ VARIANT_BOOL italic,
|
|
/*[in]*/ VARIANT_BOOL underline,
|
|
/*[in]*/ VARIANT_BOOL strikeOut ) = 0;
|
|
virtual HRESULT __stdcall raw_SetFontFamily (
|
|
/*[in]*/ IDispatch * drawable,
|
|
/*[in]*/ BSTR fontFamily ) = 0;
|
|
virtual HRESULT __stdcall raw_SetFontHeight (
|
|
/*[in]*/ IDispatch * drawable,
|
|
/*[in]*/ int fontHeight ) = 0;
|
|
virtual HRESULT __stdcall raw_SetFontColor (
|
|
/*[in]*/ IDispatch * drawable,
|
|
/*[in]*/ unsigned long fontColor ) = 0;
|
|
virtual HRESULT __stdcall raw_GetColorRef (
|
|
/*[in]*/ int red,
|
|
/*[in]*/ int green,
|
|
/*[in]*/ int blue,
|
|
/*[out,retval]*/ unsigned long * val ) = 0;
|
|
virtual HRESULT __stdcall raw_SetDrawPointSize (
|
|
/*[in]*/ int size ) = 0;
|
|
virtual HRESULT __stdcall raw_DrawPoint (
|
|
/*[in]*/ double x,
|
|
/*[in]*/ double y,
|
|
/*[in]*/ enum LPVPointShape shape,
|
|
/*[in]*/ void * hdc,
|
|
/*[in]*/ double zoomX,
|
|
/*[in]*/ double zoomY,
|
|
/*[in]*/ double panX,
|
|
/*[in]*/ double panY ) = 0;
|
|
virtual HRESULT __stdcall raw_DrawLine (
|
|
/*[in]*/ double x1,
|
|
/*[in]*/ double y1,
|
|
/*[in]*/ double x2,
|
|
/*[in]*/ double y2,
|
|
/*[in]*/ void * hdc,
|
|
/*[in]*/ double zoomX,
|
|
/*[in]*/ double zoomY,
|
|
/*[in]*/ double panX,
|
|
/*[in]*/ double panY ) = 0;
|
|
virtual HRESULT __stdcall raw_DrawCircle (
|
|
/*[in]*/ double x,
|
|
/*[in]*/ double y,
|
|
/*[in]*/ double r,
|
|
/*[in]*/ VARIANT_BOOL bFill,
|
|
/*[in]*/ void * hdc,
|
|
/*[in]*/ double zoomX,
|
|
/*[in]*/ double zoomY,
|
|
/*[in]*/ double panX,
|
|
/*[in]*/ double panY ) = 0;
|
|
virtual HRESULT __stdcall raw_DrawRect (
|
|
/*[in]*/ double x,
|
|
/*[in]*/ double y,
|
|
/*[in]*/ double w,
|
|
/*[in]*/ double h,
|
|
/*[in]*/ double a,
|
|
/*[in]*/ VARIANT_BOOL bFill,
|
|
/*[in]*/ void * hdc,
|
|
/*[in]*/ double zoomX,
|
|
/*[in]*/ double zoomY,
|
|
/*[in]*/ double panX,
|
|
/*[in]*/ double panY ) = 0;
|
|
virtual HRESULT __stdcall raw_DrawPolygon (
|
|
/*[in]*/ SAFEARRAY * xs,
|
|
/*[in]*/ SAFEARRAY * ys,
|
|
/*[in]*/ VARIANT_BOOL bClosed,
|
|
/*[in]*/ VARIANT_BOOL bFill,
|
|
/*[in]*/ void * hdc,
|
|
/*[in]*/ double zoomX,
|
|
/*[in]*/ double zoomY,
|
|
/*[in]*/ double panX,
|
|
/*[in]*/ double panY ) = 0;
|
|
virtual HRESULT __stdcall raw_DrawString (
|
|
/*[in]*/ BSTR text,
|
|
/*[in]*/ int tlx,
|
|
/*[in]*/ int tly,
|
|
/*[in]*/ void * hdc,
|
|
/*[in]*/ double zoomX,
|
|
/*[in]*/ double zoomY,
|
|
/*[in]*/ double panX,
|
|
/*[in]*/ double panY ) = 0;
|
|
virtual HRESULT __stdcall raw_GetRGBFromColorRef (
|
|
/*[in]*/ unsigned long colorRef,
|
|
/*[out]*/ int * red,
|
|
/*[out]*/ int * green,
|
|
/*[out]*/ int * blue ) = 0;
|
|
virtual HRESULT __stdcall raw_SetRegionHandleSize (
|
|
/*[in]*/ int size ) = 0;
|
|
virtual HRESULT __stdcall raw_CheckLicense (
|
|
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
|
|
virtual HRESULT __stdcall raw_CheckLib (
|
|
/*[in]*/ BSTR libName,
|
|
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("836a7b25-2ce4-4a65-9f04-3ea65a0eff45"))
|
|
LSystem;
|
|
// [ default ] interface ILSystem
|
|
|
|
struct __declspec(uuid("a546c1fb-c93e-4007-8e7d-f31ad829d6b0"))
|
|
LImage;
|
|
// [ default ] interface ILImage
|
|
|
|
struct __declspec(uuid("474178c7-bfff-4d2c-94c9-a3eda9cfb323"))
|
|
LRegion;
|
|
// [ default ] interface ILRegion
|
|
// interface ILDrawable
|
|
// interface ILSortable
|
|
|
|
struct __declspec(uuid("cca82067-d1e4-497d-ba04-e1e2210f497e"))
|
|
LRectRegion;
|
|
// [ default ] interface ILRectRegion
|
|
// interface ILDrawable
|
|
// interface ILSortable
|
|
|
|
struct __declspec(uuid("9d2e0d6c-e558-47c2-a6a0-05590c55dc13"))
|
|
LRotRectRegion;
|
|
// [ default ] interface ILRotRectRegion
|
|
// interface ILDrawable
|
|
// interface ILSortable
|
|
|
|
struct __declspec(uuid("46aac3e5-89ac-47b6-b57b-d5a38a77cda3"))
|
|
LCircleRegion;
|
|
// [ default ] interface ILCircleRegion
|
|
// interface ILDrawable
|
|
// interface ILSortable
|
|
|
|
struct __declspec(uuid("b72478c4-2101-4711-8935-911ef2be459f"))
|
|
LPolyRegion;
|
|
// [ default ] interface ILPolyRegion
|
|
// interface ILDrawable
|
|
// interface ILSortable
|
|
|
|
struct __declspec(uuid("de95c14b-a18e-41b8-aee2-a0ba2a6dd051"))
|
|
LMaskRegion;
|
|
// [ default ] interface ILMaskRegion
|
|
// interface ILDrawable
|
|
// interface ILSortable
|
|
|
|
struct __declspec(uuid("72a0c0a1-3b53-4bee-8709-22c433c487ef"))
|
|
LAnnulusRegion;
|
|
// [ default ] interface ILAnnulusRegion
|
|
// interface ILDrawable
|
|
// interface ILSortable
|
|
|
|
struct __declspec(uuid("6e8b5374-bbda-45b7-8c76-80f788d10e48"))
|
|
LEllipseRegion;
|
|
// [ default ] interface ILEllipseRegion
|
|
// interface ILDrawable
|
|
// interface ILSortable
|
|
|
|
struct __declspec(uuid("6bab604f-f638-40fe-b5e6-0036f55986da"))
|
|
LAnnulusSectorRegion;
|
|
// [ default ] interface ILAnnulusSectorRegion
|
|
// interface ILDrawable
|
|
// interface ILSortable
|
|
|
|
struct __declspec(uuid("9d591952-1d41-49f0-9fcd-b7b9c6479d63"))
|
|
LImageList;
|
|
// [ default ] interface ILImageList
|
|
|
|
struct __declspec(uuid("445d309e-0929-4b12-84a5-461e353d2bea"))
|
|
ILImage : ILObject
|
|
{
|
|
//
|
|
// Property data
|
|
//
|
|
|
|
__declspec(property(get=GetWidth))
|
|
int Width;
|
|
__declspec(property(get=GetHeight))
|
|
int Height;
|
|
__declspec(property(get=GetPixel,put=PutPixel))
|
|
int Pixel[][];
|
|
__declspec(property(get=GetImageFormat,put=PutImageFormat))
|
|
enum LPVImageFormat ImageFormat;
|
|
__declspec(property(get=GetPixelColor,put=PutPixelColor))
|
|
struct LColor PixelColor[][];
|
|
__declspec(property(get=GetBytesPerLine))
|
|
int BytesPerLine;
|
|
__declspec(property(get=GetDataPointer))
|
|
void * DataPointer;
|
|
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
enum LPVImageFormat GetImageFormat ( );
|
|
void PutImageFormat (
|
|
enum LPVImageFormat val );
|
|
int GetWidth ( );
|
|
int GetHeight ( );
|
|
int GetBytesPerLine ( );
|
|
void * GetDataPointer ( );
|
|
HRESULT SetSize (
|
|
int w,
|
|
int h );
|
|
int GetPixel (
|
|
int x,
|
|
int y );
|
|
void PutPixel (
|
|
int x,
|
|
int y,
|
|
int val );
|
|
VARIANT_BOOL Void ( );
|
|
HRESULT SetImageData (
|
|
int w,
|
|
int h,
|
|
void * dataPtr,
|
|
int bpl,
|
|
VARIANT_BOOL copyData );
|
|
HRESULT CopyTo (
|
|
struct ILImage * dstImg );
|
|
HRESULT CopyFrom (
|
|
struct ILImage * img,
|
|
struct ILRegion * region,
|
|
int panX,
|
|
int panY );
|
|
enum LPVErrorCode Save (
|
|
_bstr_t filename,
|
|
struct ILRegion * region );
|
|
HRESULT Draw (
|
|
void * hdc,
|
|
double zoomX,
|
|
double zoomY,
|
|
double panX,
|
|
double panY );
|
|
HRESULT DrawAsMask (
|
|
void * hdc,
|
|
double zoomX,
|
|
double zoomY,
|
|
double panX,
|
|
double panY );
|
|
struct LColor GetPixelColor (
|
|
int x,
|
|
int y );
|
|
void PutPixelColor (
|
|
int x,
|
|
int y,
|
|
struct LColor val );
|
|
HRESULT SetTo (
|
|
int val,
|
|
struct ILRegion * region );
|
|
HRESULT SetToColor (
|
|
struct LColor val,
|
|
struct ILRegion * region );
|
|
ILImagePtr GetChannel (
|
|
int channelIdx );
|
|
HRESULT SetChannel (
|
|
int channelIdx,
|
|
struct ILImage * channelImage );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall get_ImageFormat (
|
|
/*[out,retval]*/ enum LPVImageFormat * val ) = 0;
|
|
virtual HRESULT __stdcall put_ImageFormat (
|
|
/*[in]*/ enum LPVImageFormat val ) = 0;
|
|
virtual HRESULT __stdcall get_Width (
|
|
/*[out,retval]*/ int * val ) = 0;
|
|
virtual HRESULT __stdcall get_Height (
|
|
/*[out,retval]*/ int * val ) = 0;
|
|
virtual HRESULT __stdcall get_BytesPerLine (
|
|
/*[out,retval]*/ int * val ) = 0;
|
|
virtual HRESULT __stdcall get_DataPointer (
|
|
/*[out,retval]*/ void * * val ) = 0;
|
|
virtual HRESULT __stdcall raw_SetSize (
|
|
/*[in]*/ int w,
|
|
/*[in]*/ int h ) = 0;
|
|
virtual HRESULT __stdcall get_Pixel (
|
|
/*[in]*/ int x,
|
|
/*[in]*/ int y,
|
|
/*[out,retval]*/ int * val ) = 0;
|
|
virtual HRESULT __stdcall put_Pixel (
|
|
/*[in]*/ int x,
|
|
/*[in]*/ int y,
|
|
/*[in]*/ int val ) = 0;
|
|
virtual HRESULT __stdcall raw_Void (
|
|
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
|
|
virtual HRESULT __stdcall raw_SetImageData (
|
|
/*[in]*/ int w,
|
|
/*[in]*/ int h,
|
|
/*[in]*/ void * dataPtr,
|
|
/*[in]*/ int bpl,
|
|
/*[in]*/ VARIANT_BOOL copyData ) = 0;
|
|
virtual HRESULT __stdcall raw_CopyTo (
|
|
/*[in]*/ struct ILImage * dstImg ) = 0;
|
|
virtual HRESULT __stdcall raw_CopyFrom (
|
|
/*[in]*/ struct ILImage * img,
|
|
/*[in]*/ struct ILRegion * region,
|
|
/*[in]*/ int panX,
|
|
/*[in]*/ int panY ) = 0;
|
|
virtual HRESULT __stdcall raw_Save (
|
|
/*[in]*/ BSTR filename,
|
|
/*[in]*/ struct ILRegion * region,
|
|
/*[out,retval]*/ enum LPVErrorCode * error ) = 0;
|
|
virtual HRESULT __stdcall raw_Draw (
|
|
/*[in]*/ void * hdc,
|
|
/*[in]*/ double zoomX,
|
|
/*[in]*/ double zoomY,
|
|
/*[in]*/ double panX,
|
|
/*[in]*/ double panY ) = 0;
|
|
virtual HRESULT __stdcall raw_DrawAsMask (
|
|
/*[in]*/ void * hdc,
|
|
/*[in]*/ double zoomX,
|
|
/*[in]*/ double zoomY,
|
|
/*[in]*/ double panX,
|
|
/*[in]*/ double panY ) = 0;
|
|
virtual HRESULT __stdcall get_PixelColor (
|
|
/*[in]*/ int x,
|
|
/*[in]*/ int y,
|
|
/*[out,retval]*/ struct LColor * val ) = 0;
|
|
virtual HRESULT __stdcall put_PixelColor (
|
|
/*[in]*/ int x,
|
|
/*[in]*/ int y,
|
|
/*[in]*/ struct LColor val ) = 0;
|
|
virtual HRESULT __stdcall raw_SetTo (
|
|
/*[in]*/ int val,
|
|
/*[in]*/ struct ILRegion * region ) = 0;
|
|
virtual HRESULT __stdcall raw_SetToColor (
|
|
/*[in]*/ struct LColor val,
|
|
/*[in]*/ struct ILRegion * region ) = 0;
|
|
virtual HRESULT __stdcall raw_GetChannel (
|
|
/*[in]*/ int channelIdx,
|
|
/*[out,retval]*/ struct ILImage * * channelImage ) = 0;
|
|
virtual HRESULT __stdcall raw_SetChannel (
|
|
/*[in]*/ int channelIdx,
|
|
/*[in]*/ struct ILImage * channelImage ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("edc919ed-2f22-48c3-b059-37e20a7d9a59"))
|
|
ILRegion : ILObject
|
|
{
|
|
//
|
|
// Property data
|
|
//
|
|
|
|
__declspec(property(get=GetReduceAngle,put=PutReduceAngle))
|
|
double ReduceAngle;
|
|
__declspec(property(get=GetReduceScale,put=PutReduceScale))
|
|
double ReduceScale;
|
|
__declspec(property(get=GetInterpolationMethod,put=PutInterpolationMethod))
|
|
enum LPVInterpolationMethod InterpolationMethod;
|
|
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
HRESULT Draw (
|
|
void * hdc,
|
|
VARIANT_BOOL drawHandles,
|
|
double zoomX,
|
|
double zoomY,
|
|
double panX,
|
|
double panY );
|
|
enum LPVRoiHandle HitTest (
|
|
int x,
|
|
int y,
|
|
double zoomX,
|
|
double zoomY,
|
|
double panX,
|
|
double panY );
|
|
HRESULT Drag (
|
|
enum LPVRoiHandle roiHandle,
|
|
int x,
|
|
int y,
|
|
double zoomX,
|
|
double zoomY,
|
|
double panX,
|
|
double panY );
|
|
HRESULT EnableHandle (
|
|
enum LPVRoiHandle roiHandle,
|
|
VARIANT_BOOL enabled );
|
|
ILRegionPtr Add (
|
|
struct ILRegion * other );
|
|
ILRegionPtr Subtract (
|
|
struct ILRegion * other );
|
|
ILRegionPtr Union (
|
|
struct ILRegion * other );
|
|
VARIANT_BOOL Void ( );
|
|
HRESULT ReduceImage (
|
|
struct ILImage * image,
|
|
struct ILImage * * newImage,
|
|
struct ILImage * * newMask );
|
|
HRESULT MapFromImage (
|
|
double imagePointX,
|
|
double imagePointY,
|
|
double * regionPointX,
|
|
double * regionPointY );
|
|
HRESULT MapToImage (
|
|
double regionPointX,
|
|
double regionPointY,
|
|
double * imagePointX,
|
|
double * imagePointY );
|
|
IDispatchPtr MapObjectFromImage (
|
|
IDispatch * imageObject );
|
|
IDispatchPtr MapObjectToImage (
|
|
IDispatch * regionObject );
|
|
ILRegionPtr Translate (
|
|
double offsetX,
|
|
double offsetY );
|
|
ILRegionPtr Scale (
|
|
double factorX,
|
|
double factorY );
|
|
ILRegionPtr Rotate (
|
|
double da );
|
|
ILRegionPtr RotateAndTranslate (
|
|
double x,
|
|
double y,
|
|
double newX,
|
|
double newY,
|
|
double da );
|
|
ILImagePtr ToMask (
|
|
int w,
|
|
int h );
|
|
ILRegionPtr Intersect (
|
|
struct ILRegion * other );
|
|
ILRegionPtr XOR (
|
|
struct ILRegion * other );
|
|
ILRegionPtr Copy ( );
|
|
ILRegionPtr Invert ( );
|
|
double GetReduceAngle ( );
|
|
void PutReduceAngle (
|
|
double val );
|
|
double GetReduceScale ( );
|
|
void PutReduceScale (
|
|
double val );
|
|
enum LPVInterpolationMethod GetInterpolationMethod ( );
|
|
void PutInterpolationMethod (
|
|
enum LPVInterpolationMethod val );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall raw_Draw (
|
|
/*[in]*/ void * hdc,
|
|
/*[in]*/ VARIANT_BOOL drawHandles,
|
|
/*[in]*/ double zoomX,
|
|
/*[in]*/ double zoomY,
|
|
/*[in]*/ double panX,
|
|
/*[in]*/ double panY ) = 0;
|
|
virtual HRESULT __stdcall raw_HitTest (
|
|
/*[in]*/ int x,
|
|
/*[in]*/ int y,
|
|
/*[in]*/ double zoomX,
|
|
/*[in]*/ double zoomY,
|
|
/*[in]*/ double panX,
|
|
/*[in]*/ double panY,
|
|
/*[out,retval]*/ enum LPVRoiHandle * roiHandle ) = 0;
|
|
virtual HRESULT __stdcall raw_Drag (
|
|
/*[in]*/ enum LPVRoiHandle roiHandle,
|
|
/*[in]*/ int x,
|
|
/*[in]*/ int y,
|
|
/*[in]*/ double zoomX,
|
|
/*[in]*/ double zoomY,
|
|
/*[in]*/ double panX,
|
|
/*[in]*/ double panY ) = 0;
|
|
virtual HRESULT __stdcall raw_EnableHandle (
|
|
/*[in]*/ enum LPVRoiHandle roiHandle,
|
|
/*[in]*/ VARIANT_BOOL enabled ) = 0;
|
|
virtual HRESULT __stdcall raw_Add (
|
|
/*[in]*/ struct ILRegion * other,
|
|
/*[out,retval]*/ struct ILRegion * * newRegion ) = 0;
|
|
virtual HRESULT __stdcall raw_Subtract (
|
|
/*[in]*/ struct ILRegion * other,
|
|
/*[out,retval]*/ struct ILRegion * * newRegion ) = 0;
|
|
virtual HRESULT __stdcall raw_Union (
|
|
/*[in]*/ struct ILRegion * other,
|
|
/*[out,retval]*/ struct ILRegion * * newRegion ) = 0;
|
|
virtual HRESULT __stdcall raw_Void (
|
|
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
|
|
virtual HRESULT __stdcall raw_ReduceImage (
|
|
/*[in]*/ struct ILImage * image,
|
|
/*[out]*/ struct ILImage * * newImage,
|
|
/*[out]*/ struct ILImage * * newMask ) = 0;
|
|
virtual HRESULT __stdcall raw_MapFromImage (
|
|
/*[in]*/ double imagePointX,
|
|
/*[in]*/ double imagePointY,
|
|
/*[out]*/ double * regionPointX,
|
|
/*[out]*/ double * regionPointY ) = 0;
|
|
virtual HRESULT __stdcall raw_MapToImage (
|
|
/*[in]*/ double regionPointX,
|
|
/*[in]*/ double regionPointY,
|
|
/*[out]*/ double * imagePointX,
|
|
/*[out]*/ double * imagePointY ) = 0;
|
|
virtual HRESULT __stdcall raw_MapObjectFromImage (
|
|
/*[in]*/ IDispatch * imageObject,
|
|
/*[out,retval]*/ IDispatch * * regionObject ) = 0;
|
|
virtual HRESULT __stdcall raw_MapObjectToImage (
|
|
/*[in]*/ IDispatch * regionObject,
|
|
/*[out,retval]*/ IDispatch * * imageObject ) = 0;
|
|
virtual HRESULT __stdcall raw_Translate (
|
|
/*[in]*/ double offsetX,
|
|
/*[in]*/ double offsetY,
|
|
/*[out,retval]*/ struct ILRegion * * newRegion ) = 0;
|
|
virtual HRESULT __stdcall raw_Scale (
|
|
/*[in]*/ double factorX,
|
|
/*[in]*/ double factorY,
|
|
/*[out,retval]*/ struct ILRegion * * newRegion ) = 0;
|
|
virtual HRESULT __stdcall raw_Rotate (
|
|
/*[in]*/ double da,
|
|
/*[out,retval]*/ struct ILRegion * * newRegion ) = 0;
|
|
virtual HRESULT __stdcall raw_RotateAndTranslate (
|
|
/*[in]*/ double x,
|
|
/*[in]*/ double y,
|
|
/*[in]*/ double newX,
|
|
/*[in]*/ double newY,
|
|
/*[in]*/ double da,
|
|
/*[out,retval]*/ struct ILRegion * * newRegion ) = 0;
|
|
virtual HRESULT __stdcall raw_ToMask (
|
|
/*[in]*/ int w,
|
|
/*[in]*/ int h,
|
|
/*[out,retval]*/ struct ILImage * * mask ) = 0;
|
|
virtual HRESULT __stdcall raw_Intersect (
|
|
/*[in]*/ struct ILRegion * other,
|
|
/*[out,retval]*/ struct ILRegion * * newRegion ) = 0;
|
|
virtual HRESULT __stdcall raw_XOR (
|
|
/*[in]*/ struct ILRegion * other,
|
|
/*[out,retval]*/ struct ILRegion * * newRegion ) = 0;
|
|
virtual HRESULT __stdcall raw_Copy (
|
|
/*[out,retval]*/ struct ILRegion * * newRegion ) = 0;
|
|
virtual HRESULT __stdcall raw_Invert (
|
|
/*[out,retval]*/ struct ILRegion * * newRegion ) = 0;
|
|
virtual HRESULT __stdcall get_ReduceAngle (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_ReduceAngle (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_ReduceScale (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_ReduceScale (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_InterpolationMethod (
|
|
/*[out,retval]*/ enum LPVInterpolationMethod * val ) = 0;
|
|
virtual HRESULT __stdcall put_InterpolationMethod (
|
|
/*[in]*/ enum LPVInterpolationMethod val ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("aecb7fb8-d910-457e-9b47-2da967335bf7"))
|
|
ILRectRegion : ILRegion
|
|
{
|
|
//
|
|
// Property data
|
|
//
|
|
|
|
__declspec(property(get=GetLeft,put=PutLeft))
|
|
double Left;
|
|
__declspec(property(get=GetTop,put=PutTop))
|
|
double Top;
|
|
__declspec(property(get=GetWidth,put=PutWidth))
|
|
double Width;
|
|
__declspec(property(get=GetHeight,put=PutHeight))
|
|
double Height;
|
|
__declspec(property(get=GetCenterX))
|
|
double CenterX;
|
|
__declspec(property(get=GetCenterY))
|
|
double CenterY;
|
|
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
double GetLeft ( );
|
|
void PutLeft (
|
|
double val );
|
|
double GetTop ( );
|
|
void PutTop (
|
|
double val );
|
|
double GetWidth ( );
|
|
void PutWidth (
|
|
double val );
|
|
double GetHeight ( );
|
|
void PutHeight (
|
|
double val );
|
|
HRESULT SetPlacement (
|
|
double tlx,
|
|
double tly,
|
|
double w,
|
|
double h );
|
|
double GetCenterX ( );
|
|
double GetCenterY ( );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall get_Left (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_Left (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_Top (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_Top (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_Width (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_Width (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_Height (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_Height (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPlacement (
|
|
/*[in]*/ double tlx,
|
|
/*[in]*/ double tly,
|
|
/*[in]*/ double w,
|
|
/*[in]*/ double h ) = 0;
|
|
virtual HRESULT __stdcall get_CenterX (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall get_CenterY (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("605251ec-4957-4d85-a9a2-cd42f1e8b4b7"))
|
|
ILRotRectRegion : ILRegion
|
|
{
|
|
//
|
|
// Property data
|
|
//
|
|
|
|
__declspec(property(get=GetCenterX,put=PutCenterX))
|
|
double CenterX;
|
|
__declspec(property(get=GetCenterY,put=PutCenterY))
|
|
double CenterY;
|
|
__declspec(property(get=GetWidth,put=PutWidth))
|
|
double Width;
|
|
__declspec(property(get=GetHeight,put=PutHeight))
|
|
double Height;
|
|
__declspec(property(get=GetAngle,put=PutAngle))
|
|
double Angle;
|
|
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
double GetCenterX ( );
|
|
void PutCenterX (
|
|
double val );
|
|
double GetCenterY ( );
|
|
void PutCenterY (
|
|
double val );
|
|
double GetWidth ( );
|
|
void PutWidth (
|
|
double val );
|
|
double GetHeight ( );
|
|
void PutHeight (
|
|
double val );
|
|
double GetAngle ( );
|
|
void PutAngle (
|
|
double val );
|
|
HRESULT SetPlacement (
|
|
double cenx,
|
|
double ceny,
|
|
double w,
|
|
double h,
|
|
double a );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall get_CenterX (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_CenterX (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_CenterY (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_CenterY (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_Width (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_Width (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_Height (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_Height (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_Angle (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_Angle (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPlacement (
|
|
/*[in]*/ double cenx,
|
|
/*[in]*/ double ceny,
|
|
/*[in]*/ double w,
|
|
/*[in]*/ double h,
|
|
/*[in]*/ double a ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("7c63e516-8af9-47ec-a35a-a32c194a783b"))
|
|
ILCircleRegion : ILRegion
|
|
{
|
|
//
|
|
// Property data
|
|
//
|
|
|
|
__declspec(property(get=GetCenterX,put=PutCenterX))
|
|
double CenterX;
|
|
__declspec(property(get=GetCenterY,put=PutCenterY))
|
|
double CenterY;
|
|
__declspec(property(get=GetRadius,put=PutRadius))
|
|
double Radius;
|
|
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
double GetCenterX ( );
|
|
void PutCenterX (
|
|
double val );
|
|
double GetCenterY ( );
|
|
void PutCenterY (
|
|
double val );
|
|
double GetRadius ( );
|
|
void PutRadius (
|
|
double val );
|
|
HRESULT SetPlacement (
|
|
double cenx,
|
|
double ceny,
|
|
double r );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall get_CenterX (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_CenterX (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_CenterY (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_CenterY (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_Radius (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_Radius (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPlacement (
|
|
/*[in]*/ double cenx,
|
|
/*[in]*/ double ceny,
|
|
/*[in]*/ double r ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("8e869611-1478-4c52-8083-3b19d99e5fdb"))
|
|
ILPolyRegion : ILRegion
|
|
{
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
int CtrlCount ( );
|
|
HRESULT AddCtrl (
|
|
double x,
|
|
double y,
|
|
int ctrlIndex );
|
|
HRESULT GetCtrl (
|
|
int ctrlIndex,
|
|
double * x,
|
|
double * y );
|
|
HRESULT SetPlacement (
|
|
SAFEARRAY * xs,
|
|
SAFEARRAY * ys );
|
|
HRESULT RemoveCtrl (
|
|
int ctrlIndex );
|
|
HRESULT SetCtrl (
|
|
double x,
|
|
double y,
|
|
int ctrlIndex );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall raw_CtrlCount (
|
|
/*[out,retval]*/ int * val ) = 0;
|
|
virtual HRESULT __stdcall raw_AddCtrl (
|
|
/*[in]*/ double x,
|
|
/*[in]*/ double y,
|
|
/*[in]*/ int ctrlIndex ) = 0;
|
|
virtual HRESULT __stdcall raw_GetCtrl (
|
|
/*[in]*/ int ctrlIndex,
|
|
/*[out]*/ double * x,
|
|
/*[out]*/ double * y ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPlacement (
|
|
/*[in]*/ SAFEARRAY * xs,
|
|
/*[in]*/ SAFEARRAY * ys ) = 0;
|
|
virtual HRESULT __stdcall raw_RemoveCtrl (
|
|
/*[in]*/ int ctrlIndex ) = 0;
|
|
virtual HRESULT __stdcall raw_SetCtrl (
|
|
/*[in]*/ double x,
|
|
/*[in]*/ double y,
|
|
/*[in]*/ int ctrlIndex ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("de41b0b3-1a33-4e7a-b38d-5cc098dff62b"))
|
|
ILMaskRegion : ILRegion
|
|
{
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
HRESULT SetMask (
|
|
struct ILImage * mask,
|
|
double tlx,
|
|
double tly );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall raw_SetMask (
|
|
/*[in]*/ struct ILImage * mask,
|
|
/*[in]*/ double tlx,
|
|
/*[in]*/ double tly ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("09161909-a8f9-4623-aa75-9e5398a5145b"))
|
|
ILAnnulusRegion : ILRegion
|
|
{
|
|
//
|
|
// Property data
|
|
//
|
|
|
|
__declspec(property(get=GetCenterX,put=PutCenterX))
|
|
double CenterX;
|
|
__declspec(property(get=GetCenterY,put=PutCenterY))
|
|
double CenterY;
|
|
__declspec(property(get=GetInnerRadius,put=PutInnerRadius))
|
|
double InnerRadius;
|
|
__declspec(property(get=GetOuterRadius,put=PutOuterRadius))
|
|
double OuterRadius;
|
|
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
double GetCenterX ( );
|
|
void PutCenterX (
|
|
double val );
|
|
double GetCenterY ( );
|
|
void PutCenterY (
|
|
double val );
|
|
double GetInnerRadius ( );
|
|
void PutInnerRadius (
|
|
double val );
|
|
double GetOuterRadius ( );
|
|
void PutOuterRadius (
|
|
double val );
|
|
HRESULT SetPlacement (
|
|
double cenx,
|
|
double ceny,
|
|
double rInner,
|
|
double rOuter );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall get_CenterX (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_CenterX (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_CenterY (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_CenterY (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_InnerRadius (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_InnerRadius (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_OuterRadius (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_OuterRadius (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPlacement (
|
|
/*[in]*/ double cenx,
|
|
/*[in]*/ double ceny,
|
|
/*[in]*/ double rInner,
|
|
/*[in]*/ double rOuter ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("23207784-c0ae-4f89-89f4-0d4a07536f9e"))
|
|
ILEllipseRegion : ILRegion
|
|
{
|
|
//
|
|
// Property data
|
|
//
|
|
|
|
__declspec(property(get=GetAngle,put=PutAngle))
|
|
double Angle;
|
|
__declspec(property(get=GetCenterX,put=PutCenterX))
|
|
double CenterX;
|
|
__declspec(property(get=GetCenterY,put=PutCenterY))
|
|
double CenterY;
|
|
__declspec(property(get=GetWidth,put=PutWidth))
|
|
double Width;
|
|
__declspec(property(get=GetHeight,put=PutHeight))
|
|
double Height;
|
|
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
double GetCenterX ( );
|
|
void PutCenterX (
|
|
double val );
|
|
double GetCenterY ( );
|
|
void PutCenterY (
|
|
double val );
|
|
double GetWidth ( );
|
|
void PutWidth (
|
|
double val );
|
|
double GetHeight ( );
|
|
void PutHeight (
|
|
double val );
|
|
double GetAngle ( );
|
|
void PutAngle (
|
|
double val );
|
|
HRESULT SetPlacement (
|
|
double cenx,
|
|
double ceny,
|
|
double w,
|
|
double h,
|
|
double a );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall get_CenterX (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_CenterX (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_CenterY (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_CenterY (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_Width (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_Width (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_Height (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_Height (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_Angle (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_Angle (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPlacement (
|
|
/*[in]*/ double cenx,
|
|
/*[in]*/ double ceny,
|
|
/*[in]*/ double w,
|
|
/*[in]*/ double h,
|
|
/*[in]*/ double a ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("69904f7a-3370-425d-984a-e1a21d19957c"))
|
|
ILAnnulusSectorRegion : ILRegion
|
|
{
|
|
//
|
|
// Property data
|
|
//
|
|
|
|
__declspec(property(get=GetCenterX,put=PutCenterX))
|
|
double CenterX;
|
|
__declspec(property(get=GetCenterY,put=PutCenterY))
|
|
double CenterY;
|
|
__declspec(property(get=GetInnerRadius,put=PutInnerRadius))
|
|
double InnerRadius;
|
|
__declspec(property(get=GetOuterRadius,put=PutOuterRadius))
|
|
double OuterRadius;
|
|
__declspec(property(get=GetStartAngle,put=PutStartAngle))
|
|
double StartAngle;
|
|
__declspec(property(get=GetEndAngle,put=PutEndAngle))
|
|
double EndAngle;
|
|
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
double GetCenterX ( );
|
|
void PutCenterX (
|
|
double val );
|
|
double GetCenterY ( );
|
|
void PutCenterY (
|
|
double val );
|
|
double GetInnerRadius ( );
|
|
void PutInnerRadius (
|
|
double val );
|
|
double GetOuterRadius ( );
|
|
void PutOuterRadius (
|
|
double val );
|
|
double GetStartAngle ( );
|
|
void PutStartAngle (
|
|
double val );
|
|
double GetEndAngle ( );
|
|
void PutEndAngle (
|
|
double val );
|
|
HRESULT SetPlacement (
|
|
double cenx,
|
|
double ceny,
|
|
double rInner,
|
|
double rOuter,
|
|
double aStart,
|
|
double aEnd );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall get_CenterX (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_CenterX (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_CenterY (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_CenterY (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_InnerRadius (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_InnerRadius (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_OuterRadius (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_OuterRadius (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_StartAngle (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_StartAngle (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall get_EndAngle (
|
|
/*[out,retval]*/ double * val ) = 0;
|
|
virtual HRESULT __stdcall put_EndAngle (
|
|
/*[in]*/ double val ) = 0;
|
|
virtual HRESULT __stdcall raw_SetPlacement (
|
|
/*[in]*/ double cenx,
|
|
/*[in]*/ double ceny,
|
|
/*[in]*/ double rInner,
|
|
/*[in]*/ double rOuter,
|
|
/*[in]*/ double aStart,
|
|
/*[in]*/ double aEnd ) = 0;
|
|
};
|
|
|
|
struct __declspec(uuid("1c052ea3-25c1-434a-8b1e-903803415814"))
|
|
ILImageList : IDispatch
|
|
{
|
|
//
|
|
// Property data
|
|
//
|
|
|
|
__declspec(property(get=GetMaxCount,put=PutMaxCount))
|
|
int MaxCount;
|
|
__declspec(property(get=GetUseCache,put=PutUseCache))
|
|
VARIANT_BOOL UseCache;
|
|
__declspec(property(get=GetSameSize,put=PutSameSize))
|
|
VARIANT_BOOL SameSize;
|
|
|
|
//
|
|
// Wrapper methods for error-handling
|
|
//
|
|
|
|
int GetMaxCount ( );
|
|
void PutMaxCount (
|
|
int val );
|
|
HRESULT Reset ( );
|
|
int Count ( );
|
|
HRESULT Add (
|
|
struct ILImage * img,
|
|
struct ILRectRegion * region );
|
|
HRESULT Adds (
|
|
SAFEARRAY * images );
|
|
ILImagePtr Item (
|
|
int imgIndex );
|
|
VARIANT_BOOL GetUseCache ( );
|
|
void PutUseCache (
|
|
VARIANT_BOOL val );
|
|
VARIANT_BOOL GetSameSize ( );
|
|
void PutSameSize (
|
|
VARIANT_BOOL val );
|
|
|
|
//
|
|
// Raw methods provided by interface
|
|
//
|
|
|
|
virtual HRESULT __stdcall get_MaxCount (
|
|
/*[out,retval]*/ int * val ) = 0;
|
|
virtual HRESULT __stdcall put_MaxCount (
|
|
/*[in]*/ int val ) = 0;
|
|
virtual HRESULT __stdcall raw_Reset ( ) = 0;
|
|
virtual HRESULT __stdcall raw_Count (
|
|
/*[out,retval]*/ int * val ) = 0;
|
|
virtual HRESULT __stdcall raw_Add (
|
|
/*[in]*/ struct ILImage * img,
|
|
/*[in]*/ struct ILRectRegion * region ) = 0;
|
|
virtual HRESULT __stdcall raw_Adds (
|
|
/*[in]*/ SAFEARRAY * images ) = 0;
|
|
virtual HRESULT __stdcall raw_Item (
|
|
/*[in]*/ int imgIndex,
|
|
/*[out,retval]*/ struct ILImage * * img ) = 0;
|
|
virtual HRESULT __stdcall get_UseCache (
|
|
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
|
|
virtual HRESULT __stdcall put_UseCache (
|
|
/*[in]*/ VARIANT_BOOL val ) = 0;
|
|
virtual HRESULT __stdcall get_SameSize (
|
|
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
|
|
virtual HRESULT __stdcall put_SameSize (
|
|
/*[in]*/ VARIANT_BOOL val ) = 0;
|
|
};
|
|
|
|
//
|
|
// Wrapper method implementations
|
|
//
|
|
|
|
#include "d:\git\hzleaper\smokebox\tpvs17\smokeboxidentification\x64\release\lpvCore.tli"
|
|
|
|
#pragma pack(pop)
|