python_code stringlengths 0 992k | repo_name stringlengths 8 46 | file_path stringlengths 5 162 |
|---|---|---|
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
CrossoverSite_Marker.py
CrossoverSite_Marker object wraps the functionality of identifying
the potential crossoversites between the given DNA segments. It also
creates Handles at these crossover sites. The user can then click on
a hanle to create that c... | NanoCAD-master | cad/src/dna/commands/MakeCrossovers/CrossoverSite_Marker.py |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
@version:$Id$
History:
2008-05-21 - 2008-06-01 Created and further refactored and modified
@See: ListWidgetItems_Command_Mixin,
ListWidgetItems_GraphicsMode_Mixin
... | NanoCAD-master | cad/src/dna/commands/MakeCrossovers/MakeCrossovers_Handle.py |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@version: $Id$
@copyright: 2008-2009 Nanorex, Inc. See LICENSE file for details.
History:
2008-05-21 - 2008-06-01 Created and further refactored and modified
@See: ListWidgetItems_Command_Mixin,
ListWidgetItems_GraphicsMode_M... | NanoCAD-master | cad/src/dna/commands/MakeCrossovers/MakeCrossovers_GraphicsMode.py |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
@version:$Id$
History:
TODO:
See ListWidgetItems_Command_Mixin for details.
@see: MakeCrossovers_PropertyManager
ListWidgetItems_Command_Mixin
ListWidgetItems_Gr... | NanoCAD-master | cad/src/dna/commands/MakeCrossovers/ListWidgetItems_PM_Mixin.py |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@version: $Id$
@copyright: 2008-2009 Nanorex, Inc. See LICENSE file for details.
History:
TODO:
See ListWidgetItems_Command_Mixin for details.
@see: MakeCrossovers_GraphicsMode
ListWidgetItems_Command_Mixin
ListWidget... | NanoCAD-master | cad/src/dna/commands/MakeCrossovers/ListWidgetItems_GraphicsMode_Mixin.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
A_Dna_PAM3_Generator.py -- DNA duplex generator helper class, based on empirical data.
@author: Mark Sims
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
Mark 2007-10-18:
- Created. Major rewrite of DnaG... | NanoCAD-master | cad/src/dna/generators/A_Dna_PAM3_Generator.py |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
B_Dna_PAM3_Generator_SingleStrand allows resizing a single strand of a DNA.
See self.modify(). Note that self.make() to create a DnaStrnad from scratch
is not implemented as of 2008-04-02.
@author: Ninad
@copyright: 2008 Nanorex, Inc. See LICENSE file ... | NanoCAD-master | cad/src/dna/generators/B_Dna_PAM3_SingleStrand_Generator.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
DnaDuplex.py -- DNA duplex generator helper classes, based on empirical data.
@author: Mark Sims
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Mark 2007-10-18:
- Created. Major rewrite of DnaGenHelper.... | NanoCAD-master | cad/src/dna/generators/Z_Dna_PAM5_Generator.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
DnaDuplex.py -- DNA duplex generator helper classes, based on empirical data.
@author: Mark Sims
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
Mark 2007-10-18:
- Created. Major rewrite of DnaGenHelper.... | NanoCAD-master | cad/src/dna/generators/A_Dna_PAM5_Generator.py |
NanoCAD-master | cad/src/dna/generators/__init__.py | |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
B_Dna_Generator.py -- DNA duplex generator helper classes, based on empirical data.
@author: Mark Sims
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
Mark 2007-10-18:
- Created. Major rewrite of DnaGenH... | NanoCAD-master | cad/src/dna/generators/B_Dna_Generator.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
DnaDuplex.py -- DNA duplex generator helper classes, based on empirical data.
@author: Mark Sims
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Mark 2007-10-18:
- Created. Major rewrite of DnaGenHelper.... | NanoCAD-master | cad/src/dna/generators/Z_Dna_Generator.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
DnaDuplex.py -- DNA duplex generator helper classes, based on empirical data.
@author: Mark Sims
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Mark 2007-10-18:
- Created. Major rewrite of DnaGenHelper.... | NanoCAD-master | cad/src/dna/generators/B_Dna_PAM5_Generator.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
A_Dna_Generator.py -- DNA duplex generator helper class, based on empirical data.
@author: Mark Sims
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
Mark 2007-10-18:
- Created. Major rewrite of DnaGenHel... | NanoCAD-master | cad/src/dna/generators/A_Dna_Generator.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
DnaDuplex.py -- DNA duplex generator helper classes, based on empirical data.
@author: Mark Sims
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Mark 2007-10-18:
- Created. Major rewrite of DnaGenHelper.... | NanoCAD-master | cad/src/dna/generators/Z_Dna_Atomistic_Generator.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
DnaDuplex.py -- DNA duplex generator helper classes, based on empirical data.
@author: Mark Sims
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
Mark 2007-10-18:
- Created. Major rewrite of DnaGenHelper.... | NanoCAD-master | cad/src/dna/generators/B_Dna_PAM3_Generator.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
DnaDuplex.py -- DNA duplex generator helper classes, based on empirical data.
@author: Mark Sims
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
Mark 2007-10-18:
- Created. Major rewrite of DnaGenHelper.... | NanoCAD-master | cad/src/dna/generators/Dna_Generator.py |
NanoCAD-master | cad/src/dna/temporary_commands/__init__.py | |
# Copyright 2007-2009 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@copyright: 2007-2009 Nanorex, Inc. See LICENSE file for details.
@version: $Id$
@license: GPL
TODO:
- User Preferences for different rubberband line display styles
"""
from utilities.constants import black, white
from util... | NanoCAD-master | cad/src/dna/temporary_commands/DnaLineMode.py |
# Copyright 2005-2009 Nanorex, Inc. See LICENSE file for details.
"""
Rotate mode functionality.
@author: Mark Sims
@version: $Id$
@copyright: 2005-2009 Nanorex, Inc. See LICENSE file for details.
@license: GPL
piotr 080808: added "auto-rotation" feature.
"""
from temporary_commands.TemporaryCommand import ... | NanoCAD-master | cad/src/temporary_commands/RotateMode.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
Zoom to Area functionality.
@author: Mark Sims
@version: $Id$
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details.
@license: GPL
History:
Mark 2008-01-31: Renamed from ZoomMode to ZoomToAreaMode.py
"""
from Numeric import dot... | NanoCAD-master | cad/src/temporary_commands/ZoomToAreaMode.py |
NanoCAD-master | cad/src/temporary_commands/__init__.py | |
# Copyright 2005-2007 Nanorex, Inc. See LICENSE file for details.
"""
Pan mode functionality.
@author: Mark Sims
@version: $Id$
@copyright: 2005-2007 Nanorex, Inc. See LICENSE file for details.
@license: GPL
"""
from temporary_commands.TemporaryCommand import TemporaryCommand_Overdrawing
# == GraphicsMode p... | NanoCAD-master | cad/src/temporary_commands/PanMode.py |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@version: $Id$
@copyright: 2008-2009 Nanorex, Inc. See LICENSE file for details.
History:
TODO: 2008-04-20
- Created a support a NFR to rotate about a point just before FNANO 2008
conference. This may be revised further.
-- Need d... | NanoCAD-master | cad/src/temporary_commands/RotateAboutPoint_Command.py |
# Copyright 2007-2009 Nanorex, Inc. See LICENSE file for details.
"""
TemporaryCommand.py -- provides several kinds of TemporaryCommand superclasses
(so far, just TemporaryCommand_Overdrawing, used for Zoom/Pan/Rotate).
@author: Mark, Bruce
@version: $Id$
@copyright: 2007-2009 Nanorex, Inc. See LICENSE file for... | NanoCAD-master | cad/src/temporary_commands/TemporaryCommand.py |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
Zoom in/out mode functionality.
@author: Mark Sims
@version: $Id$
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
@license: GPL
"""
from Numeric import exp
from temporary_commands.TemporaryCommand import TemporaryCommand_Overdrawin... | NanoCAD-master | cad/src/temporary_commands/ZoomInOutMode.py |
NanoCAD-master | cad/src/temporary_commands/LineMode/__init__.py | |
# Copyright 2007-2009 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@version: $Id$
@copyright: 2007-2009 Nanorex, Inc. See LICENSE file for details.
@license: GPL
History:
Split this out of LineMode.py (and deprecated that class)
TODOs:
- Refactor/ expand snap code. Should all the snapping ... | NanoCAD-master | cad/src/temporary_commands/LineMode/Line_GraphicsMode.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@version: $Id$
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details.
@license: GPL
History:
Split this out of LineMode.py (and deprecated that class)
TODOs:
- Refactor/ expand snap code. Should all the snapping ... | NanoCAD-master | cad/src/temporary_commands/LineMode/Line_Command.py |
NanoCAD-master | cad/src/graphics/__init__.py | |
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
draw_grid_lines.py - helper functions for drawing grid lines in OpenGL.
@version: $Id$
History:
someone wrote these in drawer.py
bruce 071030 split them into a separate module
to remove an import cycle.
TODO:
does drawer.drawGrid also belong h... | NanoCAD-master | cad/src/graphics/drawing/draw_grid_lines.py |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
DrawingSet.py -- Top-level API for drawing with batched primitives (spheres,
cylinders, cones) supported by specialized OpenGL shader programs.
@author: Russ
@version: $Id$
@copyright: 2008-2009 Nanorex, Inc. See LICENSE file for details.
History... | NanoCAD-master | cad/src/graphics/drawing/DrawingSet.py |
# Copyright 2006-2008 Nanorex, Inc. See LICENSE file for details.
"""
texture_fonts.py -- OpenGL fonts based on texture images of the characters
@author: Bruce
@version: $Id$
@copyright: 2006-2008 Nanorex, Inc. See LICENSE file for details.
"""
import os
from OpenGL.GL import glTranslatef
from OpenGL.GL import GL_... | NanoCAD-master | cad/src/graphics/drawing/texture_fonts.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
drawers.py - Miscellaneous drawing functions that are not used as primitives.
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Originated by Josh as drawer.py
Various developers extended it since then.
... | NanoCAD-master | cad/src/graphics/drawing/drawers.py |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
Guides.py - Draws horizontal and vertical rulers along the edges of the
3D graphics area.
@author: Mark Sims
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
@version: $Id$
@license: GPL
"""
from OpenGL.GL import glDisable
from Open... | NanoCAD-master | cad/src/graphics/drawing/Guides.py |
# Copyright 2006-2009 Nanorex, Inc. See LICENSE file for details.
"""
texture_helpers.py -- helper functions for using OpenGL textures
@author: Bruce
@version: $Id$
@copyright: 2006-2009 Nanorex, Inc. See LICENSE file for details.
"""
from OpenGL.GL import glGenTextures
from OpenGL.GL import GL_TEXTURE_2D
from Open... | NanoCAD-master | cad/src/graphics/drawing/texture_helpers.py |
# Copyright 2009 Nanorex, Inc. See LICENSE file for details.
"""
DrawingSetCache.py -- cache of DrawingSets with associated drawing intents
@author: Bruce
@version: $Id$
@copyright: 2009 Nanorex, Inc. See LICENSE file for details.
History:
Bruce 090313 moved into its own file, from GLPane_drawingset_methods.py,
th... | NanoCAD-master | cad/src/graphics/drawing/DrawingSetCache.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
drawing_globals.py - A module containing global state within the
graphics.drawing suite (which is, in principle, mostly specific to
one "GL resource context" (display list namespace, etc)). For historical
reasons, a lot of its state is assigned from... | NanoCAD-master | cad/src/graphics/drawing/drawing_globals.py |
# Copyright 2007-2009 Nanorex, Inc. See LICENSE file for details.
"""
Draws the DNA ribbons where each strand is represented as a ribbon. DNA ribbons
are drawn as sine waves
@author: Ninad
@copyright: 2007-2009 Nanorex, Inc. See LICENSE file for details.
@version: $Id$
@license: GPL
TODO:
It should support v... | NanoCAD-master | cad/src/graphics/drawing/drawDnaRibbons.py |
"""
### This is a copy of file OpenGL/GL/ARB/shader_objects.py from
### /Library/Python/2.5/site-packages/PyOpenGL-3.0.0b3-py2.5.egg .
### It replaces the broken version in PyOpenGL-3.0.0a6-py2.5.egg .
###
### The difference between the two is mainly that the wrapper function
### definitions aren't in "if" statements c... | NanoCAD-master | cad/src/graphics/drawing/shader_objects_patch.py |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
patterned_drawing.py - special effects for highlighted/selected drawing styles
@author: Russ
@version: $Id$
@copyright: 2008-2009 Nanorex, Inc. See LICENSE file for details.
History:
Russ 080523 wrote this [in chunk.py?]
Russ 080530 refactored ... | NanoCAD-master | cad/src/graphics/drawing/patterned_drawing.py |
"""
# Patch the gle[GS]etNumSides functions to call gle[GS]etNumSlices.
$Id$
# The following was extracted and modified from gle[GS]etNumSides in
# /Library/Python/2.5/site-packages/PyOpenGL-3.0.0a6-py2.5.egg/
# OpenGL/raw/GLE/__init__.py
"""
# Patch the gle[GS]etNumSides functions to call gle[GS]etNumSlic... | NanoCAD-master | cad/src/graphics/drawing/gleNumSides_patch.py |
# Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
"""
dimensions.py - code to help draw dimensions
$Id$
History:
wware 060324 - created this file
bruce 071030 - split Font3D out of dimensions module (since used in drawer.py)
"""
__author__ = "Will"
import math
import Numeric
from Numeric import d... | NanoCAD-master | cad/src/graphics/drawing/dimensions.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
Draws the DNA in a ladder display where each strand is represented as a ladder
beam and each step represents duplex rise.
@author: Ninad
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details.
@version: $Id$
@license: GPL
"""
impo... | NanoCAD-master | cad/src/graphics/drawing/drawDnaLadder.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
gl_lighting.py - Lights, materials, and special effects (fog).
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Originated by Josh in drawer.py .
Various developers extended it since then.
Brad G. added... | NanoCAD-master | cad/src/graphics/drawing/gl_lighting.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
CS_draw_primitives.py - Public entry points for ColorSorter drawing primitives.
These functions all call ColorSorter.schedule_* methods, which record object
data for sorting, including the object color and an eventual call on the
appropriate drawin... | NanoCAD-master | cad/src/graphics/drawing/CS_draw_primitives.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
drawing_constants.py - constants and helpers for graphics.drawing package
@author: Russ, plus others if the code that belongs here is ever moved here
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
09030... | NanoCAD-master | cad/src/graphics/drawing/drawing_constants.py |
# Copyright 2005-2007 Nanorex, Inc. See LICENSE file for details.
"""
draw_bond_vanes.py -- part of the drawing code for higher-order bonds --
represent pi orbitals as "vanes".
@author: bruce
@version: $Id$
@copyright: 2005-2007 Nanorex, Inc. See LICENSE file for details.
"""
import math
from Numeric import dot
fr... | NanoCAD-master | cad/src/graphics/drawing/draw_bond_vanes.py |
# Copyright 2005-2009 Nanorex, Inc. See LICENSE file for details.
"""
graphics_card_info.py - def get_gl_info_string, to query OpenGL extensions
@version: $Id$
@copyright: 2005-2009 Nanorex, Inc. See LICENSE file for details.
History:
051129 Brad G developed (in drawer.py)
(since then, perhaps, minor improvements... | NanoCAD-master | cad/src/graphics/drawing/graphics_card_info.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
gl_GLE.py - Details of loading the GLE functions.
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
russ 080523: Factored out duplicate code from CS_draw_primitives.py,
CS_workers.py, and drawers.py .
... | NanoCAD-master | cad/src/graphics/drawing/gl_GLE.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
setup_draw.py - The function to allocate and compile our standard display lists
into the current GL context, and initialize the globals that hold their opengl
names.
NOTE/TODO: this needs to be merged with drawing_globals, and refactored,
since it'... | NanoCAD-master | cad/src/graphics/drawing/setup_draw.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
glprefs.py - class GLPrefs encapsulates prefs affecting all Chunk display lists
@author: Brad G, Bruce, Russ
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
080519 russ pulled the globals into a drawing_... | NanoCAD-master | cad/src/graphics/drawing/glprefs.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
shape_vertices.py - Geometric constructions of vertex lists used
by the drawing functions.
This includes vertices for the shapes of primitives that will go into display
lists in the setup_drawer function in setup_draw.py .
@ver... | NanoCAD-master | cad/src/graphics/drawing/shape_vertices.py |
NanoCAD-master | cad/src/graphics/drawing/__init__.py | |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
ShaderGlobals.py - "global state" about a kind of shader in a GL resource context
@author: Russ, Bruce
@version: $Id$
@copyright: 2008-2009 Nanorex, Inc. See LICENSE file for details.
History:
Russ developed some of this code in other files, mai... | NanoCAD-master | cad/src/graphics/drawing/ShaderGlobals.py |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
Creates a schematic "trace" drawing for PeptideBuilder.
@author: Piotr
@version: $Id$
@copyright: 2008-2009 Nanorex, Inc. See LICENSE file for details.
@license: GPL
"""
from OpenGL.GL import glDisable
from OpenGL.GL import glEnable
from OpenGL.... | NanoCAD-master | cad/src/graphics/drawing/drawPeptideTrace.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
CS_workers.py - Drawing functions for primitives drawn by the ColorSorter.
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Originated by Josh in drawer.py .
Various developers extended it since then.
B... | NanoCAD-master | cad/src/graphics/drawing/CS_workers.py |
# Copyright 2005-2008 Nanorex, Inc. See LICENSE file for details.
"""
glselect_name_dict.py - allocate GL_SELECT names and record their owners.
@author: Bruce
@version: $Id$
@copyright: 2005-2008 Nanorex, Inc. See LICENSE file for details.
Module classification: [bruce 080223]
It imports nothing, but the code tha... | NanoCAD-master | cad/src/graphics/drawing/glselect_name_dict.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
GLPrimitiveBuffer.py -- Manage VBO space for drawing primitives in large batches.
@author: Russ
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Originally written by Russ Fish; designed together with Bruc... | NanoCAD-master | cad/src/graphics/drawing/GLPrimitiveBuffer.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
drawcompass.py
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
bruce 080910 factored this out of class GLPane's drawcompass method
bruce 081015 put constant parts into a display list (possible speedup),
and creat... | NanoCAD-master | cad/src/graphics/drawing/drawcompass.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
gl_buffers.py - OpenGL data buffer objects.
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Originated by Josh as drawer.py .
Various developers extended it since then.
Brad G. added ColorSorter featur... | NanoCAD-master | cad/src/graphics/drawing/gl_buffers.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
gl_shaders.py - OpenGL shader objects.
For shader concepts and links, see the Wikipedia introductions at:
http://en.wikipedia.org/wiki/GLSL
http://en.wikipedia.org/wiki/Graphics_pipeline
The GLSL quick reference card and language... | NanoCAD-master | cad/src/graphics/drawing/gl_shaders.py |
# Copyright 2006-2007 Nanorex, Inc. See LICENSE file for details.
"""
Fond3D.py - a vector-drawing OpenGL font.
The font is a vector-drawing thing. The entries in the font are
integer coordinates. The drawing space is 5x7.
$Id$
History:
wware 060324 - created
bruce 071030 - split Font3D out of dimensions module (... | NanoCAD-master | cad/src/graphics/drawing/Font3D.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
gl_Scale.py - Details of loading the glScale functions.
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
russ 080523: Factored out duplicate code from CS_workers.py and drawers.py .
"""
try:
from Ope... | NanoCAD-master | cad/src/graphics/drawing/gl_Scale.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
ColorSorter.py - sort primitives and store them in a ColorSortedDisplayList
@author: Grantham, Russ
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
This was originally written by Brad Grantham (as part o... | NanoCAD-master | cad/src/graphics/drawing/ColorSorter.py |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
@version:$Id$
History:
2008-08-14 created.
Originally created in BreakOrJoinstrands_GraphicsMode. Moved into its own
module as its a general helper function used by many Graph... | NanoCAD-master | cad/src/graphics/drawing/drawDnaLabels.py |
# Copyright 2009 Nanorex, Inc. See LICENSE file for details.
"""
GLCylinderBuffer.py -- Subclass of GLPrimitiveBuffer for cylinder primitives.
@author: Russ
@version: $Id$
@copyright: 2009 Nanorex, Inc. See LICENSE file for details.
History:
Originally written by Russ Fish; designed together with Bruce Smith.
Russ... | NanoCAD-master | cad/src/graphics/drawing/GLCylinderBuffer.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
Draws the CNT in a ladder display.
@author: Ninad, Mark
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details.
@version: $Id$
@license: GPL
"""
import foundation.env as env
from OpenGL.GL import glDisable
from OpenGL.GL import gl... | NanoCAD-master | cad/src/graphics/drawing/drawNanotubeLadder.py |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
sphere_shader.py - Sphere shader GLSL source code.
@author: Russ Fish
@version: $Id$
@copyright: 2008-2009 Nanorex, Inc. See LICENSE file for details.
History:
Russ 090106: Chopped the GLSL source string blocks out of gl_shaders.py .
"""
# See ... | NanoCAD-master | cad/src/graphics/drawing/sphere_shader.py |
# Copyright 2009 Nanorex, Inc. See LICENSE file for details.
"""
cylinder_shader.py - Cylinder shader GLSL source code.
@author: Russ Fish
@version: $Id$
@copyright: 2009 Nanorex, Inc. See LICENSE file for details.
History:
Russ 090106: Design description file created.
The most detailed level of items will becom... | NanoCAD-master | cad/src/graphics/drawing/cylinder_shader.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
GLSphereBuffer.py -- Subclass of GLPrimitiveBuffer for sphere primitives.
@author: Russ
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
Originally written by Russ Fish; designed together with Bruce Smith.... | NanoCAD-master | cad/src/graphics/drawing/GLSphereBuffer.py |
"""
### This is a copy of file OpenGL/GL/ARB/vertex_shader.py from
### /Library/Python/2.5/site-packages/PyOpenGL-3.0.0b3-py2.5.egg .
### It replaces the broken version in PyOpenGL-3.0.0a6-py2.5.egg .
###
### The only difference between the two is in the glGetActiveAttribARB function,
### where the max_index and length... | NanoCAD-master | cad/src/graphics/drawing/vertex_shader_patch.py |
# Patch to the array size of glBufferDataARB, which should be the size in bytes,
# not the array size (number of elements.) glBufferSubDataARB has the same bug.
#
# From PyOpenGL-3.0.0a6-py2.5.egg/OpenGL/GL/ARB/vertex_buffer_object.py
from OpenGL import platform, constants, constant, arrays
from OpenGL import extensi... | NanoCAD-master | cad/src/graphics/drawing/vbo_patch.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
TransformControl.py -- A local coordinate frame for a set of CSDLs.
WARNING: This class is deprecated, though it's still used by some test cases
and still partly supported in the code. It was never finished. As of 090223,
the CSDL attribute intende... | NanoCAD-master | cad/src/graphics/drawing/TransformControl.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
GLPrimitiveSet.py -- Cached data structure for rapidly drawing a set of batched
primitives collected from the CSDLs in a DrawingSet, along with any other kind
of drawable content in the CSDLs.
@author: Russ
@version: $Id$
@copyright: 2004-2009 Nano... | NanoCAD-master | cad/src/graphics/drawing/GLPrimitiveSet.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
c_renderer.py - Interface to the experimental C++ renderer:
- quux_module_import_succeeded (boolean)
- classes for the ColorSorter's arrays of C++ primitives to draw;
does some memoization as a speedup.
WARNING: this has not been maintained for... | NanoCAD-master | cad/src/graphics/drawing/c_renderer.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
ColorSortedDisplayList.py - A set of primitives to be drawn as a unit,
under runtime-determined drawing styles
@author: Russ
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
This was originally written by... | NanoCAD-master | cad/src/graphics/drawing/ColorSortedDisplayList.py |
NanoCAD-master | cad/src/graphics/images/__init__.py | |
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
ImageUtils.py - Image utilities based on PIL.
(Some doc of PIL can be found at http://www.pythonware.com/library/pil/handbook .)
@author: Huaicai
@version: $Id$
@copyright: 2004-2007 Nanorex, Inc. See LICENSE file for details.
History:
050930. ... | NanoCAD-master | cad/src/graphics/images/ImageUtils.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
handles.py - graphical handles used in Extrude Mode.
Deprecated for new code, since they don't use the Selobj_API
used by most handle-like things.
@author: Bruce
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
TO... | NanoCAD-master | cad/src/graphics/drawables/handles.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
ResizeHandle.py - provides Handles for resizing the parent object. The parent
object in most cases is a reference geometry model object (e.g. Plane, Line etc)
@author: Ninad
@version: $Id$
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for d... | NanoCAD-master | cad/src/graphics/drawables/ResizeHandle.py |
# Copyright 2006-2009 Nanorex, Inc. See LICENSE file for details.
"""
Selobj.py -- provides class Selobj_API, [### WHICH WILL BE RENAMED, ALONG WITH THIS FILE]
which documents the interface from the GLPane to drawable objects which need
to detect whether the mouse touches them, i.e. mainly for
"hover-highlightable" ob... | NanoCAD-master | cad/src/graphics/drawables/Selobj.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
DirectionArrow.py
@author: Ninad
@version: $Id$
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details.
History:
ninad 2007-06-12: Created this class (initially) to support the implementation
of 'offset plane' (was created in Plane.py)
... | NanoCAD-master | cad/src/graphics/drawables/DirectionArrow.py |
NanoCAD-master | cad/src/graphics/drawables/__init__.py | |
# Copyright 2008 Nanorex, Inc. See LICENSE file for details.
"""
@author: Ninad
@copyright: 2008 Nanorex, Inc. See LICENSE file for details.
@version: $Id$
@license: GPL
TODO:
To be revised. This handle can't be dragged. (need modifications in
DragBehavior_AlongCircle). Also the handle appearance
needs to be ... | NanoCAD-master | cad/src/graphics/drawables/RotationHandle.py |
# Copyright 2006-2008 Nanorex, Inc. See LICENSE file for details.
"""
DragHandler.py -- provides class DragHandler_API,
which documents the interface from selectMode to highlightable
objects which want to handle their own mouse events (unlike Atom,
Bond, and Jig, whose behavior is hardcoded into selectMode),
and possi... | NanoCAD-master | cad/src/graphics/drawables/DragHandler.py |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
special_drawing.py - help class ChunkDrawer do special drawing in extra display lists
@author: Bruce
@version: $Id$
@copyright: 2008-2009 Nanorex, Inc. See LICENSE file for details.
TODO:
Eventually, this should be divided into general and speci... | NanoCAD-master | cad/src/graphics/model_drawing/special_drawing.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
bond_drawer.py -- implementations of Bond.draw and Bond.writepov.
@author: Josh, Bruce
@version: $Id$
@copyright: 2004-2009 Nanorex, Inc. See LICENSE file for details.
History:
050727 bruce moved bodies of Bond.draw and Bond.writepov into functi... | NanoCAD-master | cad/src/graphics/model_drawing/bond_drawer.py |
NanoCAD-master | cad/src/graphics/model_drawing/__init__.py | |
# Copyright 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
ExternalBondSetDrawer.py - can draw an ExternalBondSet, and keep drawing caches
for it (e.g. display lists, perhaps for multiple drawing styles)
@author: Bruce
@version: $Id$
@copyright: 2008-2009 Nanorex, Inc. See LICENSE file for details.
"""
... | NanoCAD-master | cad/src/graphics/model_drawing/ExternalBondSetDrawer.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
ChunkDrawer.py -- class ChunkDrawer, for drawing a chunk
(using OpenGL or compatible primitives -- someday this may cover POV-Ray
as well, but it doesn't as of early 2009)
@author: Josh, Bruce, others
@version: $Id$
@copyright: 2004-2009 Nanorex, I... | NanoCAD-master | cad/src/graphics/model_drawing/ChunkDrawer.py |
# Copyright 2004-2009 Nanorex, Inc. See LICENSE file for details.
"""
TransformedDisplayListsDrawer.py - abstract class for something that draws
using display lists which it caches under a local coordinate system.
Note: as of 090213-17 this contains common code which is used, though
the "transformed" aspects are stil... | NanoCAD-master | cad/src/graphics/model_drawing/TransformedDisplayListsDrawer.py |
NanoCAD-master | cad/src/graphics/behaviors/__init__.py | |
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
Trackball.py - one kind of Trackball.
class Trackball produces incremental quaternions using a mapping of the screen
onto a sphere, tracking the cursor on the sphere.
@author: Josh
@version: $Id$
@copyright: 2004-2007 Nanorex, Inc. See LICENSE fi... | NanoCAD-master | cad/src/graphics/behaviors/Trackball.py |
# Copyright 2007-2008 Nanorex, Inc. See LICENSE file for details.
"""
confirmation_corner.py -- helpers for modes with a confirmation corner
(or other overlay widgets).
@author: Bruce
@version: $Id$
@copyright: 2007-2008 Nanorex, Inc. See LICENSE file for details.
Note: confirmation corners make use of two methods ... | NanoCAD-master | cad/src/graphics/behaviors/confirmation_corner.py |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
shape.py -- handle freehand curves for selection and crystal-cutting
@author: Josh, Huaicai, maybe others
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
By Josh. Portions rewritten or extended by at lea... | NanoCAD-master | cad/src/graphics/behaviors/shape.py |
NanoCAD-master | cad/src/graphics/rendering/__init__.py | |
# Copyright 2004-2007 Nanorex, Inc. See LICENSE file for details.
"""
mdldata.py
$Id$
"""
filler = "0 0 1.10899\n";
marks = [(0.0017098087515823326, -1.0, -1.1903588901433509e-008) ,
(0.0012090115980704097, -1.0, -0.001209025283109241) ,
(-1.2261384241677788e-008, -1.0, -0.0017098087515823326) ,
(-0.... | NanoCAD-master | cad/src/graphics/rendering/mdl/mdldata.py |
NanoCAD-master | cad/src/graphics/rendering/mdl/__init__.py | |
# Copyright 2004-2008 Nanorex, Inc. See LICENSE file for details.
"""
writemdlfile.py -- write a Part into an MDL (Animation Master Model) file
(available from NE1's File -> Export menu)
@author: Chris Phoenix and Mark Sims
@version: $Id$
@copyright: 2004-2008 Nanorex, Inc. See LICENSE file for details.
History:
B... | NanoCAD-master | cad/src/graphics/rendering/mdl/writemdlfile.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.