NodeStructure

data class NodeStructure(ident: String, value: String, depth: Int, runtime: Double) : MObject

Node initialisation

Constructors

NodeStructure
Link copied to clipboard
fun NodeStructure(ident: String, value: String, depth: Int, runtime: Double = 1.0)
Create empty Node structure

Functions

component1
Link copied to clipboard
operator fun component1(): String
component2
Link copied to clipboard
operator fun component2(): String
component3
Link copied to clipboard
operator fun component3(): Int
component4
Link copied to clipboard
operator fun component4(): Double
copy
Link copied to clipboard
fun copy(ident: String, value: String, depth: Int, runtime: Double = 1.0): NodeStructure
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getConstructor
Link copied to clipboard
open override fun getConstructor(): String
getInstructionString
Link copied to clipboard
fun getInstructionString(instruction: String, spread: Boolean): String
Get instruction string to be played using Manim
getRuntimeString
Link copied to clipboard
fun getRuntimeString(): String
Get runtime string using runtime provided
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toPython
Link copied to clipboard
open override fun toPython(): List<String>
Function for converting linear representation instruction to its corresponding Python instructions
toString
Link copied to clipboard
open override fun toString(): String

Properties

className
Link copied to clipboard
open override val className: String
classPath
Link copied to clipboard
open override val classPath: String
depth
Link copied to clipboard
val depth: Int
ident
Link copied to clipboard
open override val ident: String
pythonVariablePrefix
Link copied to clipboard
open override val pythonVariablePrefix: String
render
Link copied to clipboard
open val render: Boolean = false
Boolean to express whether instruction should be rendered in animation
runtime
Link copied to clipboard
open override val runtime: Double = 1.0
value
Link copied to clipboard
val value: String