@@ -65,7 +65,7 @@ open class CellTrackingBase(
6565
6666 private lateinit var lightTetrahedron: List <PointLight >
6767
68- val volumeTPWidget = TextBoard ()
68+ val volumeTimepointWidget = TextBoard ()
6969
7070 /* * determines whether the volume and hedgehogs should keep listening for updates or not */
7171 var cellTrackingActive: Boolean = false
@@ -212,7 +212,7 @@ open class CellTrackingBase(
212212 TrackerRole .RightHand -> rightVRController = device
213213 }
214214 if (device.role == TrackerRole .RightHand ) {
215- attachCursorAndTPWidget ()
215+ attachCursorAndTimepointWidget ()
216216 device.model?.name = " rightHand"
217217 } else if (device.role == TrackerRole .LeftHand ) {
218218 device.model?.name = " leftHand"
@@ -543,24 +543,24 @@ open class CellTrackingBase(
543543 }
544544
545545 /* * Attach a spherical cursor to the right controller. */
546- private fun attachCursorAndTPWidget (debug : Boolean = false) {
546+ private fun attachCursorAndTimepointWidget (debug : Boolean = false) {
547547 // Only attach if not already attached
548548 if (sciview.findNodes { it.name == " VR Cursor" }.isNotEmpty()) {
549549 return
550550 }
551551
552- volumeTPWidget .text = volume.currentTimepoint.toString()
553- volumeTPWidget .name = " Volume Timepoint Widget"
554- volumeTPWidget .fontColor = Vector4f (0.4f , 0.45f , 1f , 1f )
555- volumeTPWidget .spatial {
552+ volumeTimepointWidget .text = volume.currentTimepoint.toString()
553+ volumeTimepointWidget .name = " Volume Timepoint Widget"
554+ volumeTimepointWidget .fontColor = Vector4f (0.4f , 0.45f , 1f , 1f )
555+ volumeTimepointWidget .spatial {
556556 scale = Vector3f (0.07f )
557557 position = Vector3f (- 0.05f , - 0.05f , 0.12f )
558558 rotation = Quaternionf ().rotationXYZ(- 1.57f , - 1.57f , 0f )
559559 }
560560
561561 rightVRController?.model?.let {
562562 cursor.attachCursor(sciview, it)
563- sciview.addNode(volumeTPWidget , activePublish = false , parent = it)
563+ sciview.addNode(volumeTimepointWidget , activePublish = false , parent = it)
564564 }
565565 }
566566
0 commit comments