-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cam rotation and stats #631
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, please only address the two minor things I've marked 👍
* with [fromPathRawSplit] to load volume files greater than 2 GiB into sliced partitions and place | ||
* the partitions back-to-back, emulating a single large volume in the scene. | ||
*/ | ||
fun positionSlices(volumes: List<Volume>, pixelToWorld: Float) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not a fan of having this as a static method. How about an extension function of Volume
or RichNode
, so you can call this directly on the parent node? Also, pixelToWorld
should get the default value volumes.first().pixelToWorldRatio
, so you don't always have to hand it over.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, moved the positionSlices
function to RichNode
where it is called positionVolumeSlices
and does not take pixelToWorld
as parameter
…ation by fixed yaw/pitch, refactors 'drag' function
…s' function of ArcballCameraControl
…ballCameraControl
… positioning split volumes resp.
…d positionSlices functions of Volume
…rom Volume to positionVolumeSlices in RichNode
…or fromPathRaw from UnsignedByteType() to UnsignedShortType()
1ee15b2
to
e1bdc8d
Compare
Adds small miscellaneous functionalities: 1) use the
ArcballCamera
to rotate camera about a target by a fixed angle, 2) clearing an item recorded by theStatistics
class. ExtendsfromPathRaw
function inVolume
to transparently handle volume buffers larger than 2 GB