123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.ShapeModule
- {
- // C++: class AffineTransformer
- //javadoc: AffineTransformer
- public class AffineTransformer : ShapeTransformer
- {
- protected override void Dispose (bool disposing)
- {
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
- try {
- if (disposing) {
- }
- if (IsEnabledDispose) {
- if (nativeObj != IntPtr.Zero)
- shape_AffineTransformer_delete(nativeObj);
- nativeObj = IntPtr.Zero;
- }
- } finally {
- base.Dispose (disposing);
- }
- #else
- return;
- #endif
- }
- protected internal AffineTransformer (IntPtr addr) : base (addr) { }
- // internal usage only
- public static new AffineTransformer __fromPtr__ (IntPtr addr) { return new AffineTransformer (addr); }
- //
- // C++: bool cv::AffineTransformer::getFullAffine()
- //
- //javadoc: AffineTransformer::getFullAffine()
- public bool getFullAffine ()
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- bool retVal = shape_AffineTransformer_getFullAffine_10(nativeObj);
-
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: void cv::AffineTransformer::setFullAffine(bool fullAffine)
- //
- //javadoc: AffineTransformer::setFullAffine(fullAffine)
- public void setFullAffine (bool fullAffine)
- {
- ThrowIfDisposed ();
- #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
-
- shape_AffineTransformer_setFullAffine_10(nativeObj, fullAffine);
-
- return;
- #else
- return;
- #endif
- }
- #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
- const string LIBNAME = "__Internal";
- #else
- const string LIBNAME = "opencvforunity";
- #endif
- // C++: bool cv::AffineTransformer::getFullAffine()
- [DllImport (LIBNAME)]
- private static extern bool shape_AffineTransformer_getFullAffine_10 (IntPtr nativeObj);
- // C++: void cv::AffineTransformer::setFullAffine(bool fullAffine)
- [DllImport (LIBNAME)]
- private static extern void shape_AffineTransformer_setFullAffine_10 (IntPtr nativeObj, bool fullAffine);
- // native support for java finalize()
- [DllImport (LIBNAME)]
- private static extern void shape_AffineTransformer_delete (IntPtr nativeObj);
- }
- }
|