Array2DStructure

data class Array2DStructure(type: DataStructureType, ident: String, render: Boolean, text: String, values: Array<Array<ExecValue>>, color: String?, textColor: String?, creationString: String?, runtime: Double, showLabel: Boolean?, maxSize: Int, boundaries: List<Pair<Double, Double>>, uid: String) : DataStructureMObject

2D array initialisation

Constructors

Array2DStructure
Link copied to clipboard
fun Array2DStructure(type: DataStructureType, ident: String, render: Boolean, text: String, values: Array<Array<ExecValue>>, color: String? = null, textColor: String? = null, creationString: String? = null, runtime: Double = 1.0, showLabel: Boolean? = null, maxSize: Int = -1, boundaries: List<Pair<Double, Double>> = emptyList(), uid: String)
Create empty Array2d structure

Functions

component1
Link copied to clipboard
operator fun component1(): DataStructureType
component10
Link copied to clipboard
operator fun component10(): Boolean?
component11
Link copied to clipboard
operator fun component11(): Int
component13
Link copied to clipboard
operator fun component13(): String
component2
Link copied to clipboard
operator fun component2(): String
component3
Link copied to clipboard
operator fun component3(): Boolean
component4
Link copied to clipboard
operator fun component4(): String
component5
Link copied to clipboard
operator fun component5(): Array<Array<ExecValue>>
component6
Link copied to clipboard
operator fun component6(): String?
component7
Link copied to clipboard
operator fun component7(): String?
component8
Link copied to clipboard
operator fun component8(): String?
component9
Link copied to clipboard
operator fun component9(): Double
copy
Link copied to clipboard
fun copy(type: DataStructureType, ident: String, render: Boolean, text: String, values: Array<Array<ExecValue>>, color: String? = null, textColor: String? = null, creationString: String? = null, runtime: Double = 1.0, showLabel: Boolean? = null, maxSize: Int = -1, boundaries: List<Pair<Double, Double>> = emptyList(), uid: String): Array2DStructure
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
setNewBoundary
Link copied to clipboard
open override fun setNewBoundary(corners: List<Pair<Double, Double>>, newMaxSize: 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
color
Link copied to clipboard
val color: String? = null
creationString
Link copied to clipboard
var creationString: String? = null
ident
Link copied to clipboard
open override val ident: String
maxSize
Link copied to clipboard
var maxSize: Int
pythonVariablePrefix
Link copied to clipboard
open override val pythonVariablePrefix: String
render
Link copied to clipboard
open override val render: Boolean
runtime
Link copied to clipboard
open override val runtime: Double = 1.0
showLabel
Link copied to clipboard
val showLabel: Boolean? = null
style
Link copied to clipboard
val style: PythonStyle
text
Link copied to clipboard
open override var text: String
textColor
Link copied to clipboard
val textColor: String? = null
type
Link copied to clipboard
open override val type: DataStructureType
uid
Link copied to clipboard
open override val uid: String
values
Link copied to clipboard
val values: Array<Array<ExecValue>>