# 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('_surface', [dirname(__file__)]) except ImportError: import _surface return _surface if fp is not None: try: _mod = imp.load_module('_surface', fp, pathname, description) finally: fp.close() return _mod _surface = swig_import_helper() del swig_import_helper else: import _surface 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 = _surface.new_intp() try: self.this.append(this) except: self.this = this __swig_destroy__ = _surface.delete_intp __del__ = lambda self: None def assign(self, value): return _surface.intp_assign(self, value) def value(self): return _surface.intp_value(self) def cast(self): return _surface.intp_cast(self) __swig_getmethods__["frompointer"] = lambda x: _surface.intp_frompointer if _newclass: frompointer = staticmethod(_surface.intp_frompointer) intp_swigregister = _surface.intp_swigregister intp_swigregister(intp) def intp_frompointer(t): return _surface.intp_frompointer(t) intp_frompointer = _surface.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 = _surface.new_doublep() try: self.this.append(this) except: self.this = this __swig_destroy__ = _surface.delete_doublep __del__ = lambda self: None def assign(self, value): return _surface.doublep_assign(self, value) def value(self): return _surface.doublep_value(self) def cast(self): return _surface.doublep_cast(self) __swig_getmethods__["frompointer"] = lambda x: _surface.doublep_frompointer if _newclass: frompointer = staticmethod(_surface.doublep_frompointer) doublep_swigregister = _surface.doublep_swigregister doublep_swigregister(doublep) def doublep_frompointer(t): return _surface.doublep_frompointer(t) doublep_frompointer = _surface.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 = _surface.new_floatp() try: self.this.append(this) except: self.this = this __swig_destroy__ = _surface.delete_floatp __del__ = lambda self: None def assign(self, value): return _surface.floatp_assign(self, value) def value(self): return _surface.floatp_value(self) def cast(self): return _surface.floatp_cast(self) __swig_getmethods__["frompointer"] = lambda x: _surface.floatp_frompointer if _newclass: frompointer = staticmethod(_surface.floatp_frompointer) floatp_swigregister = _surface.floatp_swigregister floatp_swigregister(floatp) def floatp_frompointer(t): return _surface.floatp_frompointer(t) floatp_frompointer = _surface.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 = _surface.new_inta(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _surface.delete_inta __del__ = lambda self: None def __getitem__(self, index): return _surface.inta___getitem__(self, index) def __setitem__(self, index, value): return _surface.inta___setitem__(self, index, value) def cast(self): return _surface.inta_cast(self) __swig_getmethods__["frompointer"] = lambda x: _surface.inta_frompointer if _newclass: frompointer = staticmethod(_surface.inta_frompointer) inta_swigregister = _surface.inta_swigregister inta_swigregister(inta) def inta_frompointer(t): return _surface.inta_frompointer(t) inta_frompointer = _surface.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 = _surface.new_doublea(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _surface.delete_doublea __del__ = lambda self: None def __getitem__(self, index): return _surface.doublea___getitem__(self, index) def __setitem__(self, index, value): return _surface.doublea___setitem__(self, index, value) def cast(self): return _surface.doublea_cast(self) __swig_getmethods__["frompointer"] = lambda x: _surface.doublea_frompointer if _newclass: frompointer = staticmethod(_surface.doublea_frompointer) doublea_swigregister = _surface.doublea_swigregister doublea_swigregister(doublea) def doublea_frompointer(t): return _surface.doublea_frompointer(t) doublea_frompointer = _surface.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 = _surface.new_floata(nelements) try: self.this.append(this) except: self.this = this __swig_destroy__ = _surface.delete_floata __del__ = lambda self: None def __getitem__(self, index): return _surface.floata___getitem__(self, index) def __setitem__(self, index, value): return _surface.floata___setitem__(self, index, value) def cast(self): return _surface.floata_cast(self) __swig_getmethods__["frompointer"] = lambda x: _surface.floata_frompointer if _newclass: frompointer = staticmethod(_surface.floata_frompointer) floata_swigregister = _surface.floata_swigregister floata_swigregister(floata) def floata_frompointer(t): return _surface.floata_frompointer(t) floata_frompointer = _surface.floata_frompointer import mmut class Primitive(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Primitive, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Primitive, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _surface.delete_Primitive __del__ = lambda self: None def get_origin(self): return _surface.Primitive_get_origin(self) def set_origin(self, *args): return _surface.Primitive_set_origin(self, *args) def SetColourOverride(self, colour_override_in): return _surface.Primitive_SetColourOverride(self, colour_override_in) def GetColourOverride(self): return _surface.Primitive_GetColourOverride(self) def draw(self, override_colour=None, selective_override=0): return _surface.Primitive_draw(self, override_colour, selective_override) def DrawPovray(self, fp, quat, radius, ox, oy, oz, objrotmatrix, objorigin, v): return _surface.Primitive_DrawPovray(self, fp, quat, radius, ox, oy, oz, objrotmatrix, objorigin, v) def DrawPostScript(self, fp, quat, radius, ox, oy, oz, objrotmatrix, objorigin, xoff, yoff, xscale, yscale, xscaleps, v): return _surface.Primitive_DrawPostScript(self, fp, quat, radius, ox, oy, oz, objrotmatrix, objorigin, xoff, yoff, xscale, yscale, xscaleps, v) def set_draw_colour(self, colp=None): return _surface.Primitive_set_draw_colour(self, colp) def SetAlpha(self, alpha_in): return _surface.Primitive_SetAlpha(self, alpha_in) def GetAlpha(self): return _surface.Primitive_GetAlpha(self) def set_draw_colour_poly(self): return _surface.Primitive_set_draw_colour_poly(self) def set_draw_colour_line(self): return _surface.Primitive_set_draw_colour_line(self) def set_draw_colour_poly_override(self, colp): return _surface.Primitive_set_draw_colour_poly_override(self, colp) def set_draw_colour_line_override(self, colp): return _surface.Primitive_set_draw_colour_line_override(self, colp) def initialize_lighting(self): return _surface.Primitive_initialize_lighting(self) def apply_textures(self): return _surface.Primitive_apply_textures(self) def unbind_textures(self): return _surface.Primitive_unbind_textures(self) def get_transparent(self): return _surface.Primitive_get_transparent(self) def set_transparent(self, trans_in): return _surface.Primitive_set_transparent(self, trans_in) def SetColours(self, colours_in): return _surface.Primitive_SetColours(self, colours_in) def GetColours(self): return _surface.Primitive_GetColours(self) def SetNormals(self, normals_in): return _surface.Primitive_SetNormals(self, normals_in) def GetNormals(self): return _surface.Primitive_GetNormals(self) def SetVertices(self, vertices_in): return _surface.Primitive_SetVertices(self, vertices_in) def GetVertices(self): return _surface.Primitive_GetVertices(self) def GetColour(self): return _surface.Primitive_GetColour(self) def GetSize(self): return _surface.Primitive_GetSize(self) def SetSize(self, size_in): return _surface.Primitive_SetSize(self, size_in) def SetOrigin(self, o_in): return _surface.Primitive_SetOrigin(self, o_in) def SetColour(self, *args): return _surface.Primitive_SetColour(self, *args) def isLine(self): return _surface.Primitive_isLine(self) def isDots(self): return _surface.Primitive_isDots(self) def isImposter(self): return _surface.Primitive_isImposter(self) def GetSimplePrimitives(self, clip_vol, objrotmatrix, objorigin, start=-1, end=-1): return _surface.Primitive_GetSimplePrimitives(self, clip_vol, objrotmatrix, objorigin, start, end) def GetNumberOfSimplePrimitives(self): return _surface.Primitive_GetNumberOfSimplePrimitives(self) def SetOccDataAttrib(self, occDataAttrib_in): return _surface.Primitive_SetOccDataAttrib(self, occDataAttrib_in) def forceRegenerateArrays(self): return _surface.Primitive_forceRegenerateArrays(self) def GetUseVBO(self): return _surface.Primitive_GetUseVBO(self) def SetUseVBO(self, _useVBO): return _surface.Primitive_SetUseVBO(self, _useVBO) def GetUseVertexArrays(self): return _surface.Primitive_GetUseVertexArrays(self) def SetUseVertexArrays(self, _useVertexArrays): return _surface.Primitive_SetUseVertexArrays(self, _useVertexArrays) def generateArrays(self): return _surface.Primitive_generateArrays(self) def GetNumberOfBufferVertices(self): return _surface.Primitive_GetNumberOfBufferVertices(self) def GetNumberOfBufferIndices(self): return _surface.Primitive_GetNumberOfBufferIndices(self) def GetBufferVertices(self): return _surface.Primitive_GetBufferVertices(self) def GetBufferNormals(self): return _surface.Primitive_GetBufferNormals(self) def GetBufferColours(self): return _surface.Primitive_GetBufferColours(self) def GetBufferIndices(self): return _surface.Primitive_GetBufferIndices(self) def GetPrimitiveTypeAsString(self): return _surface.Primitive_GetPrimitiveTypeAsString(self) Primitive_swigregister = _surface.Primitive_swigregister Primitive_swigregister(Primitive) _surface.GL_GLEXT_PROTOTYPES_swigconstant(_surface) GL_GLEXT_PROTOTYPES = _surface.GL_GLEXT_PROTOTYPES _surface.GL_ARRAY_BUFFER_swigconstant(_surface) GL_ARRAY_BUFFER = _surface.GL_ARRAY_BUFFER _surface.GL_ELEMENT_ARRAY_BUFFER_swigconstant(_surface) GL_ELEMENT_ARRAY_BUFFER = _surface.GL_ELEMENT_ARRAY_BUFFER _surface.GL_STATIC_DRAW_swigconstant(_surface) GL_STATIC_DRAW = _surface.GL_STATIC_DRAW _surface.CCP4MG_SURFACE_SOLID_swigconstant(_surface) CCP4MG_SURFACE_SOLID = _surface.CCP4MG_SURFACE_SOLID _surface.CCP4MG_SURFACE_DOTS_swigconstant(_surface) CCP4MG_SURFACE_DOTS = _surface.CCP4MG_SURFACE_DOTS _surface.CCP4MG_SURFACE_MESH_swigconstant(_surface) CCP4MG_SURFACE_MESH = _surface.CCP4MG_SURFACE_MESH class surface(Primitive): __swig_setmethods__ = {} for _s in [Primitive]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, surface, name, value) __swig_getmethods__ = {} for _s in [Primitive]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, surface, name) __repr__ = _swig_repr __swig_destroy__ = _surface.delete_surface __del__ = lambda self: None def __init__(self, *args): this = _surface.new_surface(*args) try: self.this.append(this) except: self.this = this def calculate(self, theManager, selHnd, probe_radius, delta, blend_edges): return _surface.surface_calculate(self, theManager, selHnd, probe_radius, delta, blend_edges) def calculate_with_context(self, theManager, selHnd, contextSelHnd, probe_radius, delta, blend_edges): return _surface.surface_calculate_with_context(self, theManager, selHnd, contextSelHnd, probe_radius, delta, blend_edges) def calculate_vdw(self, theManager, selHnd, probe_radius, delta, blend_edges): return _surface.surface_calculate_vdw(self, theManager, selHnd, probe_radius, delta, blend_edges) def calculate_vdw_with_context(self, theManager, selHnd, contextSelHnd, probe_radius, delta, blend_edges): return _surface.surface_calculate_vdw_with_context(self, theManager, selHnd, contextSelHnd, probe_radius, delta, blend_edges) def calculate_accessible(self, theManager, selHnd, probe_radius, delta, blend_edges): return _surface.surface_calculate_accessible(self, theManager, selHnd, probe_radius, delta, blend_edges) def calculate_accessible_with_context(self, theManager, selHnd, contextSelHnd, probe_radius, delta, blend_edges): return _surface.surface_calculate_accessible_with_context(self, theManager, selHnd, contextSelHnd, probe_radius, delta, blend_edges) def draw(self, override_colour=None, selective_override=0): return _surface.surface_draw(self, override_colour, selective_override) def drawElement(self, element): return _surface.surface_drawElement(self, element) def draw_dots(self, override_colour=None, selective_override=0): return _surface.surface_draw_dots(self, override_colour, selective_override) def SetDotSpacing(self, dotSpacing_in): return _surface.surface_SetDotSpacing(self, dotSpacing_in) def GetDotSpacing(self): return _surface.surface_GetDotSpacing(self) def SetDotSize(self, dotSize_in): return _surface.surface_SetDotSize(self, dotSize_in) def GetDotSize(self): return _surface.surface_GetDotSize(self) def SetLineWidth(self, lineWidth_in): return _surface.surface_SetLineWidth(self, lineWidth_in) def GetLineWidth(self): return _surface.surface_GetLineWidth(self) def set_style(self, style_in): return _surface.surface_set_style(self, style_in) def set_draw_colour(self, col=None): return _surface.surface_set_draw_colour(self, col) def DrawPovray(self, fp, quat, radius, ox, oy, oz, objrotmatrix, objorigin, v): return _surface.surface_DrawPovray(self, fp, quat, radius, ox, oy, oz, objrotmatrix, objorigin, v) def DrawPostScript(self, fp, quat, radius, ox, oy, oz, objrotmatrix, objorigin, xoff, yoff, xscale, yscale, xscaleps, v): return _surface.surface_DrawPostScript(self, fp, quat, radius, ox, oy, oz, objrotmatrix, objorigin, xoff, yoff, xscale, yscale, xscaleps, v) def ColourSurface(self, theManager, selHnd, atm_col_vec): return _surface.surface_ColourSurface(self, theManager, selHnd, atm_col_vec) def report(self): return _surface.surface_report(self) def evaluatePhiAndColourWithScheme(self, theManager, selHnd, context_selHnd, colourScheme, contains_hydrogen): return _surface.surface_evaluatePhiAndColourWithScheme(self, theManager, selHnd, context_selHnd, colourScheme, contains_hydrogen) def evaluatePhiAndColourWithDefaultScheme(self, theManager, selHnd, context_selHnd, contains_hydrogen): return _surface.surface_evaluatePhiAndColourWithDefaultScheme(self, theManager, selHnd, context_selHnd, contains_hydrogen) def interpolateIntoMap(self, coordinateType, scalarType, aMap): return _surface.surface_interpolateIntoMap(self, coordinateType, scalarType, aMap) def colourByScalarValue(self, scalarType, colourScheme): return _surface.surface_colourByScalarValue(self, scalarType, colourScheme) def readNXMap(self, map_file_name): return _surface.surface_readNXMap(self, map_file_name) def writeNXMap(self, map, map_file_name): return _surface.surface_writeNXMap(self, map, map_file_name) def readPhiMapAndColourWithScheme(self, map_file_name, colourScheme): return _surface.surface_readPhiMapAndColourWithScheme(self, map_file_name, colourScheme) def loadMapAndColourWithScheme(self, map_file_name, colourScheme): return _surface.surface_loadMapAndColourWithScheme(self, map_file_name, colourScheme) def writePhiMap(self, map_file_name): return _surface.surface_writePhiMap(self, map_file_name) def writeGraspFile(self, map_file_name): return _surface.surface_writeGraspFile(self, map_file_name) def readGraspFile(self, map_file_name): return _surface.surface_readGraspFile(self, map_file_name) def isLine(self): return _surface.surface_isLine(self) def GetSimplePrimitives(self, clip_vol, objrotmatrix, objorigin, start=-1, end=-1): return _surface.surface_GetSimplePrimitives(self, clip_vol, objrotmatrix, objorigin, start, end) def GetStyle(self): return _surface.surface_GetStyle(self) def GetRawDots(self): return _surface.surface_GetRawDots(self) def GetNumberOfSimplePrimitives(self): return _surface.surface_GetNumberOfSimplePrimitives(self) def forceRegenerateArrays(self): return _surface.surface_forceRegenerateArrays(self) def SetAlpha(self, alpha_in): return _surface.surface_SetAlpha(self, alpha_in) def generateArrays(self): return _surface.surface_generateArrays(self) def GetNumberOfBufferVertices(self): return _surface.surface_GetNumberOfBufferVertices(self) def GetNumberOfBufferIndices(self): return _surface.surface_GetNumberOfBufferIndices(self) def GetBufferVertices(self): return _surface.surface_GetBufferVertices(self) def GetBufferNormals(self): return _surface.surface_GetBufferNormals(self) def GetBufferColours(self): return _surface.surface_GetBufferColours(self) def GetBufferIndices(self): return _surface.surface_GetBufferIndices(self) def GetPrimitiveTypeAsString(self): return _surface.surface_GetPrimitiveTypeAsString(self) surface_swigregister = _surface.surface_swigregister surface_swigregister(surface) def add_surface(surf, obj): return _surface.add_surface(surf, obj) add_surface = _surface.add_surface # This file is compatible with both classic and new-style classes.