Skip to content

Commit

Permalink
Use lazylogger instead of Logservice
Browse files Browse the repository at this point in the history
  • Loading branch information
smlpt committed Oct 11, 2024
1 parent 9cafe64 commit f072138
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import graphics.scenery.primitives.Cylinder
import graphics.scenery.utils.MaybeIntersects
import graphics.scenery.utils.SystemHelpers
import graphics.scenery.utils.extensions.minus
import graphics.scenery.utils.lazyLogger
import graphics.scenery.volumes.RAIVolume
import graphics.scenery.volumes.Volume
import org.joml.Math
Expand All @@ -27,7 +28,7 @@ import kotlin.concurrent.thread
open class CellTrackingBase(
open var sciview: SciView
) {
lateinit var logger: LogService
val logger by lazyLogger()

lateinit var sessionId: String
lateinit var sessionDirectory: Path
Expand All @@ -49,6 +50,7 @@ open class CellTrackingBase(

var volumeScaleFactor = 1.0f

// determines whether the volume and hedgehogs should keep listening for updates or not
var cellTrackingActive: Boolean = false

open var linkCreationCallback: ((HedgehogAnalysis.SpineGraphVertex) -> Unit)? = null
Expand All @@ -62,6 +64,12 @@ open class CellTrackingBase(
Backward
}

init {
logger.info("we constructed celltrackingbase now. Lets toggle VR")
sciview.toggleVRRendering()
logger.info("yeah we toggled vr alright")
}

fun addHedgehog() {
logger.info("added hedgehog")
val hedgehog = Cylinder(0.005f, 1.0f, 16)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ class TrackingTest(
)
val count = samples.filterNotNull().count { it > 0.002f }

logger.info("count of samples: "+ count.toString())
logger.info(samples)
logger.info("count of samples: $count")
logger.info(samples.joinToString { ", " })

// spine.metadata["spine"] = metadata
// spine.instancedProperties["ModelMatrix"] = { spine.spatial().world }
Expand Down

0 comments on commit f072138

Please sign in to comment.