flagZoomIn = False
flagZoomOut = False
flagRotateUpDown = 0.0
flagRotateLeftRight = 0.0
speed = 100
omegaRate = 2
menuShow = False

################################
# 	This kinda works.
# 	MENU GUI
#
max = 255

tfobj = transferFunction(10, 0, 2, -5, 2, 1, 0.01)
tfvalue = []


def changeTransfer():
    global tfvalue
    global tfobj
    global max
    val = []
    for i in range(0, 5):
        val.append(float(tfvalue[i].getValue()) / max)
    tfobj.update(val[0], val[1], val[2], val[3], val[4])


def getTransfer():
    global tfvalue
flagZoomIn = False
flagZoomOut = False
flagRotateUpDown = 0.0
flagRotateLeftRight = 0.0
speed = 100
omegaRate = 2
menuShow = False

################################
#	This kinda works.
#	MENU GUI
#
max = 255

tfobj = transferFunction(10, 0, 2, -5, 2, 1, 0.01)
tfvalue = []


def changeTransfer():
    global tfvalue
    global tfobj
    global max
    val = []
    for i in range(0, 5):
        val.append(float(tfvalue[i].getValue()) / max)
    tfobj.update(val[0], val[1], val[2], val[3], val[4])


def getTransfer():
    global tfvalue
Beispiel #3
0
axisRoot.addChild(q)
q.setFacingCamera(cam)

axisLine.setEffect("colored -e #aaaaaaaa -t")
axisRoot.addChild(axisLine)
axisRoot.setPosition(Vector3(0, 1.3, -3))
cam.addChild(axisRoot)

################################
#
#	MENU GUI
#
################################
max = 255

tfobj = transferFunction(volume, -0.25, 2.1, -1.01, 0.5, 0.1, 0.002)
cam.addChild(tfobj.root)
tfvalue = []
shadingOption = []
soButton = []


def changeTransfer():
    global tfvalue
    global tfobj
    global max
    val = []
    for i in range(0, 5):
        val.append(float(tfvalue[i].getValue()) / max)
    tfobj.update(val[0], val[1], val[2], val[3], val[4])
Beispiel #4
0
axisRoot.addChild(q)
q.setFacingCamera(cam)

axisLine.setEffect("colored -e #aaaaaaaa -t")
axisRoot.addChild(axisLine)
axisRoot.setPosition(Vector3(0,1.3,-3))
cam.addChild(axisRoot)

################################
#	
#	MENU GUI
#
################################
max = 255

tfobj = transferFunction(volume, -0.25, 2.1, -1.01, 0.5, 0.1, 0.002)
cam.addChild(tfobj.root)
tfvalue = []
shadingOption = []
soButton = []
def changeTransfer():
	global tfvalue
	global tfobj
	global max
	val = []
	for i in range(0, 5):
		val.append(float(tfvalue[i].getValue())/max)
	tfobj.update(val[0], val[1], val[2], val[3], val[4])
def getTransfer():
	global tfvalue
	global tfobj