/ . / VolumeViewer / volumecommand.py
Functions
|
|
|
parse_symmetry
|
parse_symmetry ( fields, name )
Exceptions
|
|
syn, 'Invalid symmetry spec "%s", must start with "icos"' % fields [ 0 ]
syn, 'Missing %s value' % name
syn, 'Unknown icosahedral symmetry coordinate system "%s", use %s' %(spec [ 1 ], '|'.join( coordinate_system_names ) )
|
|
|
volume_command
|
volume_command ( cmdname, args )
Exceptions
|
|
syn, 'Unknown option "%s"' % k
syn, 'Syntax: %s [options ...]' % cmdname
syn, 'No volumes specified by "%s"' % fields [ 0 ]
|
|
|
volumes_from_specifier
|
volumes_from_specifier ( spec )
|
|
parse_color
|
parse_color ( fields, name )
Exceptions
|
|
syn, 'Choose color in panel first'
syn, 'Missing %s value' % name
|
|
|
global_option_parse_table
|
global_option_parse_table ()
|
|
region
|
region ( v, options )
|
|
apply_volume_options
|
apply_volume_options (
v,
doptions,
roptions,
)
|
|
parse_string
|
parse_string (
fields,
name,
allowed_values=None,
)
Exceptions
|
|
syn, 'Missing %s value' % name
syn, ('Invalid %s "%s", should be one of %s' %(name, fields [ 0 ], ', '.join( allowed_values ) ) )
|
|
|
data_option_parse_table
|
data_option_parse_table ()
|
|
option_name_table
|
option_name_table ( *ptables )
|
|
level_and_color_settings
|
level_and_color_settings ( v, options )
Exceptions
|
|
syn, 'Surface level must be a single data value'
syn, ('Number of colors (%d) does not match number of levels (%d)' %(len( colors ), len( levels ) ) )
syn, 'Solid level must be '
|
|
|
parse_table
|
parse_table ( dict )
|
|
rendering_option_parse_table
|
rendering_option_parse_table ()
|
|
save
|
save ( vlist, doptions )
|
|
parse_boolean
|
parse_boolean ( fields, name )
|
|
parse_values
|
parse_values (
fields,
name,
vtype,
nallowed=1,
string_ok=False,
)
Exceptions
|
|
syn, 'Missing %s value' % name
syn, msg %(name, fields [ 0 ] )
|
|
|
boolean_value
|
boolean_value ( b )
|
|
|