DataStructureMObject

abstract class DataStructureMObject(type: DataStructureType, ident: String, uid: String, text: String, boundaries: List<Pair<Double, Double>>) : ShapeWithBoundary

Data structure initialising Manim object

Constructors

DataStructureMObject
Link copied to clipboard
fun DataStructureMObject(type: DataStructureType, ident: String, uid: String, text: String, boundaries: List<Pair<Double, Double>> = emptyList())
Create empty Data structure m object

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getConstructor
Link copied to clipboard
abstract 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 fun hashCode(): Int
setNewBoundary
Link copied to clipboard
abstract fun setNewBoundary(corners: List<Pair<Double, Double>>, newMaxSize: Int)
toPython
Link copied to clipboard
abstract fun toPython(): List<String>
Function for converting linear representation instruction to its corresponding Python instructions
toString
Link copied to clipboard
open fun toString(): String

Properties

className
Link copied to clipboard
abstract val className: String
classPath
Link copied to clipboard
abstract val classPath: String
ident
Link copied to clipboard
open override val ident: String
pythonVariablePrefix
Link copied to clipboard
abstract 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
abstract val runtime: Double
Runtime of instruction in animation
style
Link copied to clipboard
val style: PythonStyle
text
Link copied to clipboard
open var text: String
type
Link copied to clipboard
open val type: DataStructureType
uid
Link copied to clipboard
open override val uid: String

Inheritors

ArrayStructure
Link copied to clipboard
Array2DStructure
Link copied to clipboard
InitTreeStructure
Link copied to clipboard
InitManimStack
Link copied to clipboard