|
__init__(self)
|
|
initValues(self)
Set the initial values.
|
|
onAddCmdToViewer(self)
Called when the command is loaded (added) to the viewer.
|
|
updateInfo(self,
zoomTool)
updates crop box info on the input form
|
|
guiCallback(self)
Pops up file brawser to specify data filename(if loading new
data).
|
|
parseData(self,
filename)
reads .data file, extracts data info used in zooming
|
|
checkData(self,
resol,
files,
cs,
mps)
Checks info from .data file: resol - the lowest data resolution
has to be power of 2; number of files(nfiles = len(files) ) has to
correspond to resol( 2**(nfiles-1)=resol; e.g.
|
|
displayMessage(self,
text,
title)
Creates and displays a message dialog.
|
|
buildForm(self)
Builds the input form (GUI).
|
|
setMode(self)
sets the command's mode: zoom - for zooming between resolution
levels, move - to get another part of parent volume (the one with
highest resolution) at current level
|
|
setZoomTool(self)
sets the zooming tool to be either the crop box or the geometry
box
|
|
setLineWidth(self,
val)
sets the line width of the geometry zooming box
|
|
reset_box(self)
resets the geometry zoom box to outline the volume
|
|
reset_crop(self)
resets the crop box to full volume size
|
|
volumeboxes_onoff_cb(self)
switches the outlines of the nested volumes on/off
|
|
showZoomBox(self)
shows/hides the geometry zooming box
|
|
max_zoom_box(self)
reduces the current zoomming tool to the max.
|
|
reduce_to_zoom(self)
reduces current zomming tool dimensions that are greater than
MAXBOXDIM to MAXBOXDIM
|
|
dismiss(self)
dismisses the input form
|
|
max_move_box(self)
reduces the moving box size to the max.
|
|
reduce_to_move(self)
reduces moving box dimentions that are greater than MAXDIM to
MAXDIM
|
|
getSub(self,
bounds,
action,
ratio,
zoombounds)
gets a subvolume from a given resolution level and loads it into
the Viewer
|
|
createNewVolume(self,
arrPtr,
dx,
dy,
dz)
Creates a new volume object.
|
|
setTransfomation(self,
dx,
dy,
dz)
Sets the volume transformation matrix.
|
|
loadNewVolume(self,
vlivol,
arrPtr)
Loads new volume object in to the viewer.
|
|
doit_thread(self,
bounds,
action,
ratio,
zoombounds)
Executes method getSub() in a new thread.
|
|
updateZoomTool(self)
Updates the size of the crop box or geometry box after a new
volume has been loaded.
|
|
doit(self,
zoombounds=None,
action=None,
nextresol=None,
newdata=None,
**kw)
Computes bounds of subvolume when zooming in/out.
|
|
__call__(self,
zoombounds=None,
action=None,
resolution=None,
newdata=None,
**kw)
None <- Zoom(zoombounds=None, action=None,
resolution=None, newdata=None, **kw)
zoombounds: the bounds of the zooming box,
a tuple(Xmin, Xmax, Ymin, Ymax, Zmin, Zmax), if None - no zooming
action is performed;
action: 'zoom in' or 'zoom out'.
|
|
zoomin_callback(self,
*arg)
Called when 'Zoom in' button is pressed.
|
|
zoomout_callback(self,
*arg)
Called when 'Zoom out' button is pressed.
|
|
zoomto_callback(self)
Called when 'Zoom To...' button is pressed.
|
|
cancel_cb(self)
Withdraws the GUI.
|
|
zoomtolevel(self)
Called when 'Zoom' button of 'Zoom To' input form is pressed.
|
|
maxboxsizeinfo(self)
|
|
showParentVolume(self)
|
|
update_volumeBoundBox(self)
Checks if the volume bounding box needs to be updated.
|
|
getVolumeScale(self)
Get current scale of the volume object.
|
|
getvolume_callback(self)
gets bounds of another subvolume of parent volume at current level
in 'move' mode.
|
|
Inherited from ViewerFramework.VFCommand.Command:
__repr__,
addCallbackAfter,
addCallbackBefore,
addUndoCall,
afterDoit,
beforeDoit,
buildFormDescr,
buildLogArgList,
checkDependencies,
cleanup,
customizeGUI,
doitWrapper,
getArguments,
getHelp,
getLogArgs,
getValNamedArgs,
log,
logString,
onAddNewCmd,
setupUndoAfter,
setupUndoBefore,
showForm,
strArg,
tkCb,
updateGeom,
warningMsg
|