~ubuntu-branches/ubuntu/saucy/mapserver/saucy-security

« back to all changes in this revision

Viewing changes to mapscript/csharp/shapeObj.cs

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-12-23 14:02:06 UTC
  • mfrom: (26.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20111223140206-n3h9t2hsa8hyslmu
Tags: 6.0.1-2
Added missed stuff for libmapscript-perl.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
    } 
96
96
  }
97
97
 
98
 
  public lineObj line {
99
 
    get {
100
 
      IntPtr cPtr = mapscriptPINVOKE.shapeObj_line_get(swigCPtr);
101
 
      lineObj ret = (cPtr == IntPtr.Zero) ? null : new lineObj(cPtr, false, ThisOwn_false());
102
 
      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
103
 
      return ret;
104
 
    } 
105
 
  }
106
 
 
107
 
  public string[] values {
108
 
    get {
109
 
        IntPtr cPtr = mapscriptPINVOKE.shapeObj_values_get(swigCPtr);
110
 
        IntPtr objPtr;
111
 
            string[] ret = new string[this.numvalues];
112
 
        for(int cx = 0; cx < this.numvalues; cx++) {
113
 
            objPtr = System.Runtime.InteropServices.Marshal.ReadIntPtr(cPtr, cx * System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)));
114
 
            ret[cx]= (objPtr == IntPtr.Zero) ? null : System.Runtime.InteropServices.Marshal.PtrToStringAnsi(objPtr);
115
 
        }
116
 
        
117
 
      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
118
 
        return ret;
119
 
    }
120
 
 
121
 
  }
122
 
 
123
98
  public rectObj bounds {
124
99
    set {
125
100
      mapscriptPINVOKE.shapeObj_bounds_set(swigCPtr, rectObj.getCPtr(value));
193
168
    } 
194
169
  }
195
170
 
 
171
  public int scratch {
 
172
    set {
 
173
      mapscriptPINVOKE.shapeObj_scratch_set(swigCPtr, value);
 
174
      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
 
175
    } 
 
176
    get {
 
177
      int ret = mapscriptPINVOKE.shapeObj_scratch_get(swigCPtr);
 
178
      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
 
179
      return ret;
 
180
    } 
 
181
  }
 
182
 
 
183
  public int resultindex {
 
184
    set {
 
185
      mapscriptPINVOKE.shapeObj_resultindex_set(swigCPtr, value);
 
186
      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
 
187
    } 
 
188
    get {
 
189
      int ret = mapscriptPINVOKE.shapeObj_resultindex_get(swigCPtr);
 
190
      if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
 
191
      return ret;
 
192
    } 
 
193
  }
 
194
 
196
195
  public shapeObj(int type) : this(mapscriptPINVOKE.new_shapeObj(type), true, null) {
197
196
    if (mapscriptPINVOKE.SWIGPendingException.Pending) throw mapscriptPINVOKE.SWIGPendingException.Retrieve();
198
197
  }