Beispiel #1
0
# Inviwo Python script 
import inviwo
import inviwoqt 


inviwoqt.loadWorkspace( inviwo.getDataPath() + "/workspaces/tests/simpleraycaster.inv")
Beispiel #2
0
# Inviwo Python script 
import inviwo 

inviwo.loadTransferFunction("SimpleRaycaster.transferFunction",inviwo.getDataPath() + "transferfunction.itf")
# Inviwo Python script 
import inviwo 
import inviwoqt 

#help('modules')


#help('inviwo')

outpath = "D:/temp/pythontest/"

ws = inviwo.getDataPath() + "/workspaces/boron.inv"
inviwoqt.loadWorkspace(ws)

inviwo.wait() 

inviwo.snapshotCanvas(0,outpath +"/snapshot001.png")

inviwo.setPropertyValue("CubeProxyGeometry.clipX",(75,149))

inviwo.snapshotAllCanvases(outpath, "snapshots" , "png")
inviwo.snapshotAllCanvases(outpath)


sampRate = inviwo.getPropertyValue("VolumeRaycaster.raycaster.samplingRate");
if sampRate != 3.0:
    print("should not get here" , file=sys.stderr)
Beispiel #4
0
# Inviwo Python script 
import inviwo
import inviwoqt 


inviwoqt.loadWorkspace( inviwo.getDataPath() + "/workspaces/boron.inv")
Beispiel #5
0
# Inviwo Python script
import inviwo

inviwo.saveTransferFunction("VolumeRaycaster.transferFunction",
                            inviwo.getDataPath() + "/transferfunction.itf")
# Inviwo Python script
import inviwo
import inviwoqt

#help('modules')

#help('inviwo')

outpath = "D:/temp/pythontest/"

ws = inviwo.getDataPath() + "/workspaces/boron.inv"
inviwoqt.loadWorkspace(ws)

inviwo.wait()

inviwo.snapshotCanvas(0, outpath + "/snapshot001.png")

inviwo.setPropertyValue("CubeProxyGeometry.clipX", (75, 149))

inviwo.snapshotAllCanvases(outpath, "snapshots", "png")
inviwo.snapshotAllCanvases(outpath)

sampRate = inviwo.getPropertyValue("VolumeRaycaster.raycaster.samplingRate")
if sampRate != 3.0:
    print("should not get here", file=sys.stderr)
Beispiel #7
0
# Inviwo Python script 
import inviwo 

inviwo.loadTransferFunction("VolumeRaycaster.transferFunction",inviwo.getDataPath() + "/transferfunction.itf")