Esempio n. 1
0
    from DejaVu.Geom import Geom
    from DejaVu.IndexedPolygons import IndexedPolygons
    from DejaVu.Points import Points
    from DejaVu.glfLabels import GlfLabels
    from DejaVu.Polylines import Polylines
elif ViewerType == 'c4d':
    import c4d
    #from Pmv.hostappInterface import pdb_c4d
    import Pmv.hostappInterface.cinema4d.helperC4D as pdb_c4d
    vi = pdb_c4d
    Box = pdb_c4d.box
    Geom = pdb_c4d.newEmpty
    IndexedPolygons = pdb_c4d.polygons
    Points = pdb_c4d.PointCloudObject
    sc = pdb_c4d.getCurrentScene()
    dejavumat = vi.createDejaVuColorMat()
    helper = pdb_c4d
elif ViewerType == 'blender':
    import Blender
    from Pmv.hostappInterface import pdb_blender
    vi = pdb_blender
    Box = pdb_blender.box
    Geom = pdb_blender.newEmpty
    IndexedPolygons = pdb_blender.polygons
    sc = pdb_blender.getCurrentScene()
    Points = None
#display fill box
#fbb = Box('fillpBB',cornerPoints=bb,visible=1) #maybe /10.
#vi.AddObject(fbb)

# create master for cytoplasm compartment
    from DejaVu.Geom import Geom
    from DejaVu.IndexedPolygons import IndexedPolygons
    from DejaVu.Points import Points
    from DejaVu.glfLabels import GlfLabels
    from DejaVu.Polylines import Polylines
elif ViewerType == 'c4d':
    import c4d
    #from Pmv.hostappInterface import pdb_c4d
    import Pmv.hostappInterface.cinema4d.helperC4D as pdb_c4d
    vi = pdb_c4d    
    Box = pdb_c4d.box
    Geom = pdb_c4d.newEmpty
    IndexedPolygons = pdb_c4d.polygons
    Points = pdb_c4d.PointCloudObject
    sc=pdb_c4d.getCurrentScene()
    dejavumat = vi.createDejaVuColorMat()
    helper = pdb_c4d
elif ViewerType == 'blender':
    import Blender
    from Pmv.hostappInterface import pdb_blender
    vi = pdb_blender
    Box = pdb_blender.box
    Geom = pdb_blender.newEmpty
    IndexedPolygons = pdb_blender.polygons
    sc=pdb_blender.getCurrentScene()
    Points =None
#display fill box
#fbb = Box('fillpBB',cornerPoints=bb,visible=1) #maybe /10.
#vi.AddObject(fbb)

# create master for cytoplasm compartment