BallPoint class

Point类中主要存储了点的坐标(x,y,z)和要显示的文字(data)。 考虑到球体处于持续动画的状态,如果在渲染每帧动画时去实时地计算渲染文字的Paragraph对象, 那么对系统机能是一个很大的负担,可能会造成画面卡顿。因此,这里采取的做法是,在控件初始化时, 预先计算好点在不同Z坐标时的Paragraph对象并缓存起来(paragraphs),后面渲染动画时直接通过getParagraph(int radius)方法去缓存中取。 同时为了节约内存,每三个相邻的Z坐标只生成一个Paragraph对象。

Constructors

BallPoint.new(double x, double y, double z)

Properties

data RBallTagData
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
paragraphs List<Paragraph>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x double
getter/setter pair
y double
getter/setter pair
z double
getter/setter pair

Methods

getParagraph(int radius) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited