cleanup
This commit is contained in:
parent
7b30b62849
commit
42e2530f6f
@ -17,7 +17,7 @@ import space.kscience.dataforge.names.*
|
||||
@Serializable
|
||||
@SerialName("vision.group")
|
||||
public open class VisionGroupBase(
|
||||
@SerialName("children") internal val childrenInternal: MutableMap<NameToken, Vision> = LinkedHashMap(),
|
||||
@SerialName("children") protected val childrenInternal: MutableMap<NameToken, Vision> = LinkedHashMap(),
|
||||
) : VisionBase(), MutableVisionGroup {
|
||||
|
||||
/**
|
||||
|
@ -29,9 +29,6 @@ public interface PrototypeHolder {
|
||||
@SerialName("group.solid")
|
||||
public class SolidGroup(
|
||||
@Serializable(PrototypeSerializer::class) internal var prototypes: MutableVisionGroup? = null,
|
||||
// override var position: Point3D? = null,
|
||||
// override var rotation: Point3D? = null,
|
||||
// override var scale: Point3D? = null,
|
||||
) : VisionGroupBase(), Solid, PrototypeHolder {
|
||||
|
||||
init {
|
||||
|
@ -95,23 +95,6 @@ public class SolidReferenceGroup(
|
||||
* (properties are stored in external cache) and created and destroyed on-demand).
|
||||
*/
|
||||
private inner class ReferenceChild(private val childName: Name) : SolidReference, VisionGroup {
|
||||
|
||||
// //TODO replace by properties
|
||||
// override var position: Point3D?
|
||||
// get() = prototype.position
|
||||
// set(_) {
|
||||
// error("Can't set position of reference")
|
||||
// }
|
||||
// override var rotation: Point3D?
|
||||
// get() = prototype.rotation
|
||||
// set(_) {
|
||||
// error("Can't set position of reference")
|
||||
// }
|
||||
// override var scale: Point3D?
|
||||
// get() = prototype.scale
|
||||
// set(_) {
|
||||
// error("Can't set position of reference")
|
||||
// }
|
||||
override val prototype: Solid get() = prototypeFor(childName)
|
||||
|
||||
override val children: Map<NameToken, Vision>
|
||||
|
Loading…
Reference in New Issue
Block a user