PDA

View Full Version : Capture oblique slice in a seperate top view


ShawnZhang
4th March 2008, 15:36
Description

Creating an image data object, and update it when the obliqueslice is moved by the user. This eliminate the need of calculating camera position.

Credits

Shawn Zhang, Hauke Bartsch (VI) and Justin Bourgeois

CaptureObliqueSlice.scro

*********************************************
# Amira-Script-Object
# Mercury Computer System Inc.
# szhang@mc.com
# Dec. 06, 2007

$this script hide

$this proc constructor {} {
$this newPortConnection con HxObliqueSlice
}

$this proc compute {} {

viewer 1 show
remove testImage.am

set os1 [$this con source]
if { $os1 == "" } {
return
}
$os1 fire
$os1 createImage testImage.am
create HxOrthoSlice
OrthoSlice data connect testImage.am
OrthoSlice setViewerMask 2
OrthoSlice fire
}