# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.6 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2, 6, 0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_xmapview', [dirname(__file__)]) except ImportError: import _xmapview return _xmapview if fp is not None: try: _mod = imp.load_module('_xmapview', fp, pathname, description) finally: fp.close() return _mod _xmapview = swig_import_helper() del swig_import_helper else: import _xmapview del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self, class_type, name, value, static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name, None) if method: return method(self, value) if (not static): if _newclass: object.__setattr__(self, name, value) else: self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self, class_type, name, value): return _swig_setattr_nondynamic(self, class_type, name, value, 0) def _swig_getattr_nondynamic(self, class_type, name, static=1): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name, None) if method: return method(self) if (not static): return object.__getattr__(self, name) else: raise AttributeError(name) def _swig_getattr(self, class_type, name): return _swig_getattr_nondynamic(self, class_type, name, 0) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object: pass _newclass = 0 class intp(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, intp, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, intp, name) __repr__ = _swig_repr def __init__(self): this = _xmapview.new_intp() try: self.this.append(this) except: self.this = this __swig_destroy__ = _xmapview.delete_intp __del__ = lambda self: None def assign(self, value): return _xmapview.intp_assign(self, value) def value(self): return _xmapview.intp_value(self) def cast(self): return _xmapview.intp_cast(self) __swig_getmethods__["frompointer"] = lambda x: _xmapview.intp_frompointer if _newclass: frompointer = staticmethod(_xmapview.intp_frompointer) intp_swigregister = _xmapview.intp_swigregister intp_swigregister(intp) def intp_frompointer(t): return _xmapview.intp_frompointer(t) intp_frompointer = _xmapview.intp_frompointer class doublep(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, doublep, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, doublep, name) __repr__ = _swig_repr def __init__(self): this = _xmapview.new_doublep() try: self.this.append(this) except: self.this = this __swig_destroy__ = _xmapview.delete_doublep __del__ = lambda self: None def assign(self, value): return _xmapview.doublep_assign(self, value) def value(self): return _xmapview.doublep_value(self) def cast(self): return _xmapview.doublep_cast(self) __swig_getmethods__["frompointer"] = lambda x: _xmapview.doublep_frompointer if _newclass: frompointer = staticmethod(_xmapview.doublep_frompointer) doublep_swigregister = _xmapview.doublep_swigregister doublep_swigregister(doublep) def doublep_frompointer(t): return _xmapview.doublep_frompointer(t) doublep_frompointer = _xmapview.doublep_frompointer class floatp(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, floatp, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, floatp, name) __repr__ = _swig_repr def __init__(self): this = _xmapview.new_floatp() try: self.this.append(this) except: self.this = this __swig_destroy__ = _xmapview.delete_floatp __del__ = lambda self: None def assign(self, value): return _xmapview.floatp_assign(self, value) def value(self): return _xmapview.floatp_value(self) def cast(self): return _xmapview.floatp_cast(self) __swig_getmethods__["frompointer"] = lambda x: _xmapview.floatp_frompointer if _newclass: frompointer = staticmethod(_xmapview.floatp_frompointer) floatp_swigregister = _xmapview.floatp_swigregister floatp_swigregister(floatp) def floatp_frompointer(t): return _xmapview.floatp_frompointer(t) floatp_frompointer = _xmapview.floatp_frompointer class inta(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, inta, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, inta, name) __repr__ = _swig_repr def __init__(self, nelements): this = _xmapview.new_inta(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _xmapview.delete_inta __del__ = lambda self: None def __getitem__(self, index): return _xmapview.inta___getitem__(self, index) def __setitem__(self, index, value): return _xmapview.inta___setitem__(self, index, value) def cast(self): return _xmapview.inta_cast(self) __swig_getmethods__["frompointer"] = lambda x: _xmapview.inta_frompointer if _newclass: frompointer = staticmethod(_xmapview.inta_frompointer) inta_swigregister = _xmapview.inta_swigregister inta_swigregister(inta) def inta_frompointer(t): return _xmapview.inta_frompointer(t) inta_frompointer = _xmapview.inta_frompointer class doublea(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, doublea, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, doublea, name) __repr__ = _swig_repr def __init__(self, nelements): this = _xmapview.new_doublea(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _xmapview.delete_doublea __del__ = lambda self: None def __getitem__(self, index): return _xmapview.doublea___getitem__(self, index) def __setitem__(self, index, value): return _xmapview.doublea___setitem__(self, index, value) def cast(self): return _xmapview.doublea_cast(self) __swig_getmethods__["frompointer"] = lambda x: _xmapview.doublea_frompointer if _newclass: frompointer = staticmethod(_xmapview.doublea_frompointer) doublea_swigregister = _xmapview.doublea_swigregister doublea_swigregister(doublea) def doublea_frompointer(t): return _xmapview.doublea_frompointer(t) doublea_frompointer = _xmapview.doublea_frompointer class floata(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, floata, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, floata, name) __repr__ = _swig_repr def __init__(self, nelements): this = _xmapview.new_floata(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _xmapview.delete_floata __del__ = lambda self: None def __getitem__(self, index): return _xmapview.floata___getitem__(self, index) def __setitem__(self, index, value): return _xmapview.floata___setitem__(self, index, value) def cast(self): return _xmapview.floata_cast(self) __swig_getmethods__["frompointer"] = lambda x: _xmapview.floata_frompointer if _newclass: frompointer = staticmethod(_xmapview.floata_frompointer) floata_swigregister = _xmapview.floata_swigregister floata_swigregister(floata) def floata_frompointer(t): return _xmapview.floata_frompointer(t) floata_frompointer = _xmapview.floata_frompointer class SwigPyIterator(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _xmapview.delete_SwigPyIterator __del__ = lambda self: None def value(self): return _xmapview.SwigPyIterator_value(self) def incr(self, n=1): return _xmapview.SwigPyIterator_incr(self, n) def decr(self, n=1): return _xmapview.SwigPyIterator_decr(self, n) def distance(self, x): return _xmapview.SwigPyIterator_distance(self, x) def equal(self, x): return _xmapview.SwigPyIterator_equal(self, x) def copy(self): return _xmapview.SwigPyIterator_copy(self) def next(self): return _xmapview.SwigPyIterator_next(self) def __next__(self): return _xmapview.SwigPyIterator___next__(self) def previous(self): return _xmapview.SwigPyIterator_previous(self) def advance(self, n): return _xmapview.SwigPyIterator_advance(self, n) def __eq__(self, x): return _xmapview.SwigPyIterator___eq__(self, x) def __ne__(self, x): return _xmapview.SwigPyIterator___ne__(self, x) def __iadd__(self, n): return _xmapview.SwigPyIterator___iadd__(self, n) def __isub__(self, n): return _xmapview.SwigPyIterator___isub__(self, n) def __add__(self, n): return _xmapview.SwigPyIterator___add__(self, n) def __sub__(self, *args): return _xmapview.SwigPyIterator___sub__(self, *args) def __iter__(self): return self SwigPyIterator_swigregister = _xmapview.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) import cprim import pygl_coord _xmapview.MARCHINGCUBES_swigconstant(_xmapview) MARCHINGCUBES = _xmapview.MARCHINGCUBES _xmapview.CHICKENWIRE_swigconstant(_xmapview) CHICKENWIRE = _xmapview.CHICKENWIRE _xmapview.CONTOURS_swigconstant(_xmapview) CONTOURS = _xmapview.CONTOURS _xmapview.MASK_swigconstant(_xmapview) MASK = _xmapview.MASK _xmapview.MULTICHICKEN_swigconstant(_xmapview) MULTICHICKEN = _xmapview.MULTICHICKEN _xmapview.WIREFRAME_swigconstant(_xmapview) WIREFRAME = _xmapview.WIREFRAME _xmapview.HIDDENLINE_swigconstant(_xmapview) HIDDENLINE = _xmapview.HIDDENLINE _xmapview.DOTS_swigconstant(_xmapview) DOTS = _xmapview.DOTS _xmapview.SOLID_swigconstant(_xmapview) SOLID = _xmapview.SOLID _xmapview.POLY_swigconstant(_xmapview) POLY = _xmapview.POLY _xmapview.COLOUR_BY_RADIUS_NONE_swigconstant(_xmapview) COLOUR_BY_RADIUS_NONE = _xmapview.COLOUR_BY_RADIUS_NONE _xmapview.COLOUR_BY_RADIUS_GREYSCALE_swigconstant(_xmapview) COLOUR_BY_RADIUS_GREYSCALE = _xmapview.COLOUR_BY_RADIUS_GREYSCALE _xmapview.COLOUR_BY_RADIUS_COLOUR_swigconstant(_xmapview) COLOUR_BY_RADIUS_COLOUR = _xmapview.COLOUR_BY_RADIUS_COLOUR class MGMap(cprim.Displayobject): __swig_setmethods__ = {} for _s in [cprim.Displayobject]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, MGMap, name, value) __swig_getmethods__ = {} for _s in [cprim.Displayobject]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, MGMap, name) __repr__ = _swig_repr def __init__(self, *args): this = _xmapview.new_MGMap(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _xmapview.delete_MGMap __del__ = lambda self: None def GetPrimitives(self): return _xmapview.MGMap_GetPrimitives(self) def GetSurfacePrimitives(self): return _xmapview.MGMap_GetSurfacePrimitives(self) def GetImagePrimitives(self): return _xmapview.MGMap_GetImagePrimitives(self) def update_map_triangles(self): return _xmapview.MGMap_update_map_triangles(self) def draw(self, white=None, transparent=0, selective_override=0, line_scaling=1.0): return _xmapview.MGMap_draw(self, white, transparent, selective_override, line_scaling) def draw_lines(self, override_colour=None, transparent=0, selective_override=0, line_scaling=1.0): return _xmapview.MGMap_draw_lines(self, override_colour, transparent, selective_override, line_scaling) def draw_solids(self, override_colour=None, transparent=0, selective_override=0): return _xmapview.MGMap_draw_solids(self, override_colour, transparent, selective_override) def draw_surface(self, textured): return _xmapview.MGMap_draw_surface(self, textured) def define_field(self, field_in): return _xmapview.MGMap_define_field(self, field_in) def SetPlotType(self, plottype_in): return _xmapview.MGMap_SetPlotType(self, plottype_in) def SetRadius(self, radius_in): return _xmapview.MGMap_SetRadius(self, radius_in) def GetRadius(self): return _xmapview.MGMap_GetRadius(self) def SetClipRadius(self, clip_radius_in): return _xmapview.MGMap_SetClipRadius(self, clip_radius_in) def SetClipPositions(self, clip_in): return _xmapview.MGMap_SetClipPositions(self, clip_in) def SetLightStyle(self, lightstyle_in): return _xmapview.MGMap_SetLightStyle(self, lightstyle_in) def SetLineStyle(self, linestyle_in): return _xmapview.MGMap_SetLineStyle(self, linestyle_in) def SetContourLevel(self, contour_level_in): return _xmapview.MGMap_SetContourLevel(self, contour_level_in) def SetNumberOfContours(self, ncont_in): return _xmapview.MGMap_SetNumberOfContours(self, ncont_in) def SetMaxContourLevel(self, contour_level_in): return _xmapview.MGMap_SetMaxContourLevel(self, contour_level_in) def SetMinContourLevel(self, contour_level_in): return _xmapview.MGMap_SetMinContourLevel(self, contour_level_in) def SetContourLevelStep(self, contour_level_step_in): return _xmapview.MGMap_SetContourLevelStep(self, contour_level_step_in) def SetPlane(self, plane_in): return _xmapview.MGMap_SetPlane(self, plane_in) def GetContourLevel(self): return _xmapview.MGMap_GetContourLevel(self) def GetMaxContourLevel(self): return _xmapview.MGMap_GetMaxContourLevel(self) def GetMinContourLevel(self): return _xmapview.MGMap_GetMinContourLevel(self) def GetContourLevelStep(self): return _xmapview.MGMap_GetContourLevelStep(self) def move_origin(self, *args): return _xmapview.MGMap_move_origin(self, *args) def SetCentre(self, *args): return _xmapview.MGMap_SetCentre(self, *args) def BuildDisplayList(self): return _xmapview.MGMap_BuildDisplayList(self) def ZoomIn(self): return _xmapview.MGMap_ZoomIn(self) def ZoomOut(self): return _xmapview.MGMap_ZoomOut(self) def SetColour(self, r, g, b, a=-1.): return _xmapview.MGMap_SetColour(self, r, g, b, a) def SetColour2(self, r, g, b, a=-1.): return _xmapview.MGMap_SetColour2(self, r, g, b, a) def SetColourByRadius(self, colour_by_radius_in): return _xmapview.MGMap_SetColourByRadius(self, colour_by_radius_in) def GetColourByRadius(self): return _xmapview.MGMap_GetColourByRadius(self) def DrawPostscript(self, fp, quat, radius, ox, oy, oz): return _xmapview.MGMap_DrawPostscript(self, fp, quat, radius, ox, oy, oz) def DrawPovRay(self, fp, quat, radius, ox, oy, oz): return _xmapview.MGMap_DrawPovRay(self, fp, quat, radius, ox, oy, oz) def draw_dots(self): return _xmapview.MGMap_draw_dots(self) def SetDotSpacing(self, dotSpacing_in): return _xmapview.MGMap_SetDotSpacing(self, dotSpacing_in) def GetDotSpacing(self): return _xmapview.MGMap_GetDotSpacing(self) def SetDotSize(self, dotSize_in): return _xmapview.MGMap_SetDotSize(self, dotSize_in) def GetDotSize(self): return _xmapview.MGMap_GetDotSize(self) def SetLineWidth(self, wiresize_in): return _xmapview.MGMap_SetLineWidth(self, wiresize_in) def SetCylinderWidth(self, cylindersize_in): return _xmapview.MGMap_SetCylinderWidth(self, cylindersize_in) def GetLineWidth(self): return _xmapview.MGMap_GetLineWidth(self) def GetLineStyle(self): return _xmapview.MGMap_GetLineStyle(self) def SetTransformMatrix(self, m_in): return _xmapview.MGMap_SetTransformMatrix(self, m_in) def GetTransformMatrix(self, m_in): return _xmapview.MGMap_GetTransformMatrix(self, m_in) MGMap_swigregister = _xmapview.MGMap_swigregister MGMap_swigregister(MGMap) def ClipMapPoints(chicken_vertices, clip_positions, radius): return _xmapview.ClipMapPoints(chicken_vertices, clip_positions, radius) ClipMapPoints = _xmapview.ClipMapPoints class VectorFloat(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, VectorFloat, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, VectorFloat, name) __repr__ = _swig_repr def iterator(self): return _xmapview.VectorFloat_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self): return _xmapview.VectorFloat___nonzero__(self) def __bool__(self): return _xmapview.VectorFloat___bool__(self) def __len__(self): return _xmapview.VectorFloat___len__(self) def pop(self): return _xmapview.VectorFloat_pop(self) def __getslice__(self, i, j): return _xmapview.VectorFloat___getslice__(self, i, j) def __setslice__(self, *args): return _xmapview.VectorFloat___setslice__(self, *args) def __delslice__(self, i, j): return _xmapview.VectorFloat___delslice__(self, i, j) def __delitem__(self, *args): return _xmapview.VectorFloat___delitem__(self, *args) def __getitem__(self, *args): return _xmapview.VectorFloat___getitem__(self, *args) def __setitem__(self, *args): return _xmapview.VectorFloat___setitem__(self, *args) def append(self, x): return _xmapview.VectorFloat_append(self, x) def empty(self): return _xmapview.VectorFloat_empty(self) def size(self): return _xmapview.VectorFloat_size(self) def clear(self): return _xmapview.VectorFloat_clear(self) def swap(self, v): return _xmapview.VectorFloat_swap(self, v) def get_allocator(self): return _xmapview.VectorFloat_get_allocator(self) def begin(self): return _xmapview.VectorFloat_begin(self) def end(self): return _xmapview.VectorFloat_end(self) def rbegin(self): return _xmapview.VectorFloat_rbegin(self) def rend(self): return _xmapview.VectorFloat_rend(self) def pop_back(self): return _xmapview.VectorFloat_pop_back(self) def erase(self, *args): return _xmapview.VectorFloat_erase(self, *args) def __init__(self, *args): this = _xmapview.new_VectorFloat(*args) try: self.this.append(this) except: self.this = this def push_back(self, x): return _xmapview.VectorFloat_push_back(self, x) def front(self): return _xmapview.VectorFloat_front(self) def back(self): return _xmapview.VectorFloat_back(self) def assign(self, n, x): return _xmapview.VectorFloat_assign(self, n, x) def resize(self, *args): return _xmapview.VectorFloat_resize(self, *args) def insert(self, *args): return _xmapview.VectorFloat_insert(self, *args) def reserve(self, n): return _xmapview.VectorFloat_reserve(self, n) def capacity(self): return _xmapview.VectorFloat_capacity(self) __swig_destroy__ = _xmapview.delete_VectorFloat __del__ = lambda self: None VectorFloat_swigregister = _xmapview.VectorFloat_swigregister VectorFloat_swigregister(VectorFloat) class XmapFloat(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, XmapFloat, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, XmapFloat, name) __repr__ = _swig_repr def __init__(self): this = _xmapview.new_XmapFloat() try: self.this.append(this) except: self.this = this __swig_destroy__ = _xmapview.delete_XmapFloat __del__ = lambda self: None XmapFloat_swigregister = _xmapview.XmapFloat_swigregister XmapFloat_swigregister(XmapFloat) class XMap(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, XMap, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, XMap, name) __repr__ = _swig_repr __swig_setmethods__["xmap"] = _xmapview.XMap_xmap_set __swig_getmethods__["xmap"] = _xmapview.XMap_xmap_get if _newclass: xmap = _swig_property(_xmapview.XMap_xmap_get, _xmapview.XMap_xmap_set) def __init__(self, *args): this = _xmapview.new_XMap(*args) try: self.this.append(this) except: self.this = this def GetCell(self): return _xmapview.XMap_GetCell(self) def GetSpaceGroup(self): return _xmapview.XMap_GetSpaceGroup(self) def GetMin(self): return _xmapview.XMap_GetMin(self) def GetMax(self): return _xmapview.XMap_GetMax(self) def GetMean(self): return _xmapview.XMap_GetMean(self) def GetStdDev(self): return _xmapview.XMap_GetStdDev(self) def GetOrigin(self): return _xmapview.XMap_GetOrigin(self) def SetOrigin(self, origin_in): return _xmapview.XMap_SetOrigin(self, origin_in) def GetMaxDim(self): return _xmapview.XMap_GetMaxDim(self) __swig_destroy__ = _xmapview.delete_XMap __del__ = lambda self: None XMap_swigregister = _xmapview.XMap_swigregister XMap_swigregister(XMap) class MGXMap(MGMap): __swig_setmethods__ = {} for _s in [MGMap]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, MGXMap, name, value) __swig_getmethods__ = {} for _s in [MGMap]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, MGXMap, name) __repr__ = _swig_repr def __init__(self, *args): this = _xmapview.new_MGXMap(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _xmapview.delete_MGXMap __del__ = lambda self: None def update_map_triangles(self): return _xmapview.MGXMap_update_map_triangles(self) MGXMap_swigregister = _xmapview.MGXMap_swigregister MGXMap_swigregister(MGXMap) def GetCompleteGrid(xmap, orthToFracMat, fracToOrthMat): return _xmapview.GetCompleteGrid(xmap, orthToFracMat, fracToOrthMat) GetCompleteGrid = _xmapview.GetCompleteGrid # This file is compatible with both classic and new-style classes.