~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to swig/csharp/ogr/Envelope3D.cs

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ----------------------------------------------------------------------------
 
2
 * This file was automatically generated by SWIG (http://www.swig.org).
 
3
 * Version 1.3.40
 
4
 *
 
5
 * Do not make changes to this file unless you know what you are doing--modify
 
6
 * the SWIG interface file instead.
 
7
 * ----------------------------------------------------------------------------- */
 
8
 
 
9
namespace OSGeo.OGR {
 
10
 
 
11
using System;
 
12
using System.Runtime.InteropServices;
 
13
 
 
14
public class Envelope3D : IDisposable {
 
15
  private HandleRef swigCPtr;
 
16
  protected bool swigCMemOwn;
 
17
  protected object swigParentRef;
 
18
  
 
19
  protected static object ThisOwn_true() { return null; }
 
20
  protected object ThisOwn_false() { return this; }
 
21
 
 
22
  public Envelope3D(IntPtr cPtr, bool cMemoryOwn, object parent) {
 
23
    swigCMemOwn = cMemoryOwn;
 
24
    swigParentRef = parent;
 
25
    swigCPtr = new HandleRef(this, cPtr);
 
26
  }
 
27
 
 
28
  public static HandleRef getCPtr(Envelope3D obj) {
 
29
    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 
30
  }
 
31
  public static HandleRef getCPtrAndDisown(Envelope3D obj, object parent) {
 
32
    if (obj != null)
 
33
    {
 
34
      obj.swigCMemOwn = false;
 
35
      obj.swigParentRef = parent;
 
36
      return obj.swigCPtr;
 
37
    }
 
38
    else
 
39
    {
 
40
      return new HandleRef(null, IntPtr.Zero);
 
41
    }
 
42
  }
 
43
  public static HandleRef getCPtrAndSetReference(Envelope3D obj, object parent) {
 
44
    if (obj != null)
 
45
    {
 
46
      obj.swigParentRef = parent;
 
47
      return obj.swigCPtr;
 
48
    }
 
49
    else
 
50
    {
 
51
      return new HandleRef(null, IntPtr.Zero);
 
52
    }
 
53
  }
 
54
 
 
55
  ~Envelope3D() {
 
56
    Dispose();
 
57
  }
 
58
 
 
59
  public virtual void Dispose() {
 
60
  lock(this) {
 
61
      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
 
62
        swigCMemOwn = false;
 
63
        OgrPINVOKE.delete_Envelope3D(swigCPtr);
 
64
      }
 
65
      swigCPtr = new HandleRef(null, IntPtr.Zero);
 
66
      swigParentRef = null;
 
67
      GC.SuppressFinalize(this);
 
68
    }
 
69
  }
 
70
 
 
71
  public double MinX {
 
72
    set {
 
73
      OgrPINVOKE.Envelope3D_MinX_set(swigCPtr, value);
 
74
      if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
75
    } 
 
76
    get {
 
77
      double ret = OgrPINVOKE.Envelope3D_MinX_get(swigCPtr);
 
78
      if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
79
      return ret;
 
80
    } 
 
81
  }
 
82
 
 
83
  public double MaxX {
 
84
    set {
 
85
      OgrPINVOKE.Envelope3D_MaxX_set(swigCPtr, value);
 
86
      if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
87
    } 
 
88
    get {
 
89
      double ret = OgrPINVOKE.Envelope3D_MaxX_get(swigCPtr);
 
90
      if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
91
      return ret;
 
92
    } 
 
93
  }
 
94
 
 
95
  public double MinY {
 
96
    set {
 
97
      OgrPINVOKE.Envelope3D_MinY_set(swigCPtr, value);
 
98
      if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
99
    } 
 
100
    get {
 
101
      double ret = OgrPINVOKE.Envelope3D_MinY_get(swigCPtr);
 
102
      if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
103
      return ret;
 
104
    } 
 
105
  }
 
106
 
 
107
  public double MaxY {
 
108
    set {
 
109
      OgrPINVOKE.Envelope3D_MaxY_set(swigCPtr, value);
 
110
      if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
111
    } 
 
112
    get {
 
113
      double ret = OgrPINVOKE.Envelope3D_MaxY_get(swigCPtr);
 
114
      if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
115
      return ret;
 
116
    } 
 
117
  }
 
118
 
 
119
  public double MinZ {
 
120
    set {
 
121
      OgrPINVOKE.Envelope3D_MinZ_set(swigCPtr, value);
 
122
      if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
123
    } 
 
124
    get {
 
125
      double ret = OgrPINVOKE.Envelope3D_MinZ_get(swigCPtr);
 
126
      if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
127
      return ret;
 
128
    } 
 
129
  }
 
130
 
 
131
  public double MaxZ {
 
132
    set {
 
133
      OgrPINVOKE.Envelope3D_MaxZ_set(swigCPtr, value);
 
134
      if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
135
    } 
 
136
    get {
 
137
      double ret = OgrPINVOKE.Envelope3D_MaxZ_get(swigCPtr);
 
138
      if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
139
      return ret;
 
140
    } 
 
141
  }
 
142
 
 
143
  public Envelope3D() : this(OgrPINVOKE.new_Envelope3D(), true, null) {
 
144
    if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 
145
  }
 
146
 
 
147
}
 
148
 
 
149
}