Inheritance: global::System.IDisposable
コード例 #1
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 internal static HandleRef getCPtr(Matrix2d obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #2
0
ファイル: MgEllipse.cs プロジェクト: vvhh2002/TouchVG
 public override void transform(Matrix2d mat)
 {
     touchvgPINVOKE.MgEllipse_transform(swigCPtr, Matrix2d.getCPtr(mat));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #3
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public bool isEqualTo(Matrix2d mat) {
   bool ret = touchvgPINVOKE.Matrix2d_isEqualTo__SWIG_1(swigCPtr, Matrix2d.getCPtr(mat));
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #4
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public static Matrix2d rotation(float angle) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_rotation__SWIG_1(angle), true);
   return ret;
 }
コード例 #5
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public static Matrix2d mirroring(Point2d pnt, Vector2d dir) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_mirroring__SWIG_2(Point2d.getCPtr(pnt), Vector2d.getCPtr(dir)), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #6
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d setToRotation(float angle) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToRotation__SWIG_1(swigCPtr, angle), false);
   return ret;
 }
コード例 #7
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d setToMirroring(Point2d pnt, Vector2d dir) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToMirroring__SWIG_2(swigCPtr, Point2d.getCPtr(pnt), Vector2d.getCPtr(dir)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #8
0
        public Matrix2d setToIdentity()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToIdentity(swigCPtr), false);

            return(ret);
        }
コード例 #9
0
        public Matrix2d set(float _m11, float _m12, float _m21, float _m22, float _dx, float _dy)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_set(swigCPtr, _m11, _m12, _m21, _m22, _dx, _dy), false);

            return(ret);
        }
コード例 #10
0
        public Matrix2d inverse()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_inverse(swigCPtr), true);

            return(ret);
        }
コード例 #11
0
 internal static HandleRef getCPtr(Matrix2d obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #12
0
        public Matrix2d setToProduct(Matrix2d m1, Matrix2d m2)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToProduct(swigCPtr, Matrix2d.getCPtr(m1), Matrix2d.getCPtr(m2)), false);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #13
0
        public Matrix2d scaleBy(float s)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_scaleBy__SWIG_1(swigCPtr, s), false);

            return(ret);
        }
コード例 #14
0
        public static Matrix2d kIdentity()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_kIdentity(), false);

            return(ret);
        }
コード例 #15
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public static Matrix2d coordSystem(Point2d origin, float scaleX) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_coordSystem__SWIG_3(Point2d.getCPtr(origin), scaleX), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #16
0
        public Matrix2d setToRotation(float angle)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToRotation__SWIG_1(swigCPtr, angle), false);

            return(ret);
        }
コード例 #17
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d set(float _m11, float _m12, float _m21, float _m22, float _dx, float _dy) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_set(swigCPtr, _m11, _m12, _m21, _m22, _dx, _dy), false);
   return ret;
 }
コード例 #18
0
        public Matrix2d setToScaling(float scaleX, float scaleY)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToScaling__SWIG_3(swigCPtr, scaleX, scaleY), false);

            return(ret);
        }
コード例 #19
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d setToScaling(float scaleX, float scaleY) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToScaling__SWIG_3(swigCPtr, scaleX, scaleY), false);
   return ret;
 }
コード例 #20
0
        public Matrix2d setToMirroring()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToMirroring__SWIG_1(swigCPtr), false);

            return(ret);
        }
コード例 #21
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public static Matrix2d translation(Vector2d vec) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_translation(Vector2d.getCPtr(vec)), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #22
0
        public Matrix2d setToShearing(float sx, float sy)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToShearing__SWIG_1(swigCPtr, sx, sy), false);

            return(ret);
        }
コード例 #23
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public static Matrix2d scaling(float scaleX, float scaleY) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_scaling__SWIG_3(scaleX, scaleY), true);
   return ret;
 }
コード例 #24
0
        public static Matrix2d rotation(float angle)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_rotation__SWIG_1(angle), true);

            return(ret);
        }
コード例 #25
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public static Matrix2d shearing(float sx, float sy) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_shearing__SWIG_1(sx, sy), true);
   return ret;
 }
コード例 #26
0
        public static Matrix2d scaling(float scaleX, float scaleY)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_scaling__SWIG_3(scaleX, scaleY), true);

            return(ret);
        }
コード例 #27
0
ファイル: MgView.cs プロジェクト: shuangyou/TouchVG
        public virtual Matrix2d modelTransform()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.MgView_modelTransform(swigCPtr), false);

            return(ret);
        }
コード例 #28
0
        public static Matrix2d mirroring()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_mirroring__SWIG_1(), true);

            return(ret);
        }
コード例 #29
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d setCoordSystem(Vector2d e0, Vector2d e1, Point2d origin) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setCoordSystem(swigCPtr, Vector2d.getCPtr(e0), Vector2d.getCPtr(e1), Point2d.getCPtr(origin)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #30
0
        public static Matrix2d shearing(float sx, float sy)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_shearing__SWIG_1(sx, sy), true);

            return(ret);
        }
コード例 #31
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public static Matrix2d coordSystem(Vector2d e0, Vector2d e1, Point2d origin) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_coordSystem__SWIG_0(Vector2d.getCPtr(e0), Vector2d.getCPtr(e1), Point2d.getCPtr(origin)), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #32
0
ファイル: MgBaseShape.cs プロジェクト: shuangyou/TouchVG
 public virtual void transform(Matrix2d mat)
 {
     if (SwigDerivedClassHasMethod("transform", swigMethodTypes13))
     {
         touchvgPINVOKE.MgBaseShape_transformSwigExplicitMgBaseShape(swigCPtr, Matrix2d.getCPtr(mat));
     }
     else
     {
         touchvgPINVOKE.MgBaseShape_transform(swigCPtr, Matrix2d.getCPtr(mat));
     }
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #33
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d setToIdentity() {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToIdentity(swigCPtr), false);
   return ret;
 }
コード例 #34
0
        public Matrix2d worldToModel()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.GiTransform_worldToModel(swigCPtr), false);

            return(ret);
        }
コード例 #35
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d setToTranslation(Vector2d vec) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToTranslation(swigCPtr, Vector2d.getCPtr(vec)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #36
0
        public Matrix2d displayToWorld()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.GiTransform_displayToWorld(swigCPtr), false);

            return(ret);
        }
コード例 #37
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d setToScaling(float scale, Point2d center) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToScaling__SWIG_0(swigCPtr, scale, Point2d.getCPtr(center)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #38
0
        public Matrix2d displayToModel()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.GiTransform_displayToModel__SWIG_2(swigCPtr), false);

            return(ret);
        }
コード例 #39
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d setToMirroring() {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToMirroring__SWIG_1(swigCPtr), false);
   return ret;
 }
コード例 #40
0
        public Matrix2d modelToDisplay()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.GiTransform_modelToDisplay(swigCPtr), false);

            return(ret);
        }
コード例 #41
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d setToShearing(float sx, float sy) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToShearing__SWIG_1(swigCPtr, sx, sy), false);
   return ret;
 }
コード例 #42
0
ファイル: MgSplines.cs プロジェクト: shuangyou/TouchVG
        public int smoothForPoints(int count, Point2d points, Matrix2d m2d, float tol)
        {
            int ret = touchvgPINVOKE.MgSplines_smoothForPoints(swigCPtr, count, Point2d.getCPtr(points), Matrix2d.getCPtr(m2d), tol);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #43
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public static Matrix2d rotation(float angle, Point2d center) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_rotation__SWIG_0(angle, Point2d.getCPtr(center)), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #44
0
        public Matrix2d modelTransform()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.MgShapeDoc_modelTransform(swigCPtr), false);

            return(ret);
        }
コード例 #45
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public static Matrix2d scaling(float scaleX, float scaleY, Point2d center) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_scaling__SWIG_2(scaleX, scaleY, Point2d.getCPtr(center)), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #46
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d(Matrix2d src) : this(touchvgPINVOKE.new_Matrix2d__SWIG_1(Matrix2d.getCPtr(src)), true) {
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #47
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public static Matrix2d mirroring() {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_mirroring__SWIG_1(), true);
   return ret;
 }
コード例 #48
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d postMultBy(Matrix2d rightSide) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_postMultBy(swigCPtr, Matrix2d.getCPtr(rightSide)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #49
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public static Matrix2d shearing(float sx, float sy, Point2d pnt) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_shearing__SWIG_0(sx, sy, Point2d.getCPtr(pnt)), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #50
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d setToProduct(Matrix2d m1, Matrix2d m2) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToProduct(swigCPtr, Matrix2d.getCPtr(m1), Matrix2d.getCPtr(m2)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #51
0
ファイル: MgShapeDoc.cs プロジェクト: stonelin129/Touchvg
 public Matrix2d modelTransform()
 {
     Matrix2d ret = new Matrix2d(touchvgPINVOKE.MgShapeDoc_modelTransform(swigCPtr), false);
     return ret;
 }
コード例 #52
0
ファイル: Matrix2d.cs プロジェクト: rhcad/touchvg-v0.6
 public Matrix2d inverse() {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_inverse(swigCPtr), true);
   return ret;
 }
コード例 #53
0
ファイル: Point2d.cs プロジェクト: stonelin129/Touchvg
 public Point2d transform(Matrix2d m)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_transform(swigCPtr, Matrix2d.getCPtr(m)), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #54
0
 public GiSaveModelTransform(GiTransform xform, Matrix2d mat) : this(touchvgPINVOKE.new_GiSaveModelTransform(GiTransform.getCPtr(xform), Matrix2d.getCPtr(mat)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }