Dart Documentationorson_chartsDrawable3D

Drawable3D abstract class

The core interface for a 3D model that can be rendered onto a canvas. The Chart3D class implements this interface.

Subclasses

Chart3D

Properties

final Dimension3D dimensions #

Returns the dimensions of the object model. This is used to determine the minimum viewing distance, and also to auto-zoom the initial view to an appropriate size.

abstract num get projDist #

Returns the projection distance.

abstract void set projDist(num dist) #

Sets the projection distance.

abstract Offset2D get translate2D #

Returns the offset from the center of the bounds for the rendering.

abstract void set translate2D(Offset2D offset) #

Sets the offset from the center of the bounds for the rendering.

abstract ViewPoint3D get viewPoint #

Returns the current viewing point.

abstract void set viewPoint(ViewPoint3D viewPoint) #

Sets the viewing point.

Methods

abstract void draw(CanvasRenderingContext2D context, Rectangle bounds) #

Renders the 3D object model on a 2D canvas within the specified bounds, taking into account the current viewing point.