1 |
# This file was created automatically by SWIG. |
2 |
import Projectionc |
3 |
class Projection: |
4 |
def __init__(self,*args): |
5 |
self.this = apply(Projectionc.new_Projection,args) |
6 |
self.thisown = 1 |
7 |
|
8 |
def __del__(self,Projectionc=Projectionc): |
9 |
if self.thisown == 1 : |
10 |
Projectionc.delete_Projection(self) |
11 |
def Forward(*args): |
12 |
val = apply(Projectionc.Projection_Forward,args) |
13 |
return val |
14 |
def Inverse(*args): |
15 |
val = apply(Projectionc.Projection_Inverse,args) |
16 |
return val |
17 |
def cobject(*args): |
18 |
val = apply(Projectionc.Projection_cobject,args) |
19 |
return val |
20 |
__setmethods__ = { |
21 |
"units" : Projectionc.Projection_units_set, |
22 |
"proj" : Projectionc.Projection_proj_set, |
23 |
} |
24 |
def __setattr__(self,name,value): |
25 |
if (name == "this") or (name == "thisown"): self.__dict__[name] = value; return |
26 |
method = Projection.__setmethods__.get(name,None) |
27 |
if method: return method(self,value) |
28 |
self.__dict__[name] = value |
29 |
__getmethods__ = { |
30 |
"units" : Projectionc.Projection_units_get, |
31 |
"proj" : Projectionc.Projection_proj_get, |
32 |
} |
33 |
def __getattr__(self,name): |
34 |
method = Projection.__getmethods__.get(name,None) |
35 |
if method: return method(self) |
36 |
raise AttributeError,name |
37 |
def __repr__(self): |
38 |
return "<C Projection instance at %s>" % (self.this,) |
39 |
|
40 |
def __del__(self,Projectionc=Projectionc): |
41 |
if getattr(self, 'thisown', 0): |
42 |
Projectionc.delete_Projection(self) |
43 |
|
44 |
class ProjectionPtr(Projection): |
45 |
def __init__(self,this): |
46 |
self.this = this |
47 |
self.thisown = 0 |
48 |
self.__class__ = Projection |
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
#-------------- FUNCTION WRAPPERS ------------------ |
55 |
|
56 |
int_array = Projectionc.int_array |
57 |
|
58 |
int_destroy = Projectionc.int_destroy |
59 |
|
60 |
int_get = Projectionc.int_get |
61 |
|
62 |
int_set = Projectionc.int_set |
63 |
|
64 |
double_array = Projectionc.double_array |
65 |
|
66 |
double_destroy = Projectionc.double_destroy |
67 |
|
68 |
double_get = Projectionc.double_get |
69 |
|
70 |
double_set = Projectionc.double_set |
71 |
|
72 |
float_array = Projectionc.float_array |
73 |
|
74 |
float_destroy = Projectionc.float_destroy |
75 |
|
76 |
float_get = Projectionc.float_get |
77 |
|
78 |
float_set = Projectionc.float_set |
79 |
|
80 |
string_array = Projectionc.string_array |
81 |
|
82 |
string_destroy = Projectionc.string_destroy |
83 |
|
84 |
string_get = Projectionc.string_get |
85 |
|
86 |
string_set = Projectionc.string_set |
87 |
|
88 |
|
89 |
|
90 |
#-------------- VARIABLE WRAPPERS ------------------ |
91 |
|
92 |
DEGREES = Projectionc.DEGREES |
93 |
RADIANS = Projectionc.RADIANS |