ConicDisplay
class ConicDisplay extends PIXI.Container
Draws a segment of conic section represented by the equation k2- lm = 0, where k, l, m are lines.
This display-object shades the inside/outside of a conic section within a mesh.
A conic curve can be represented in the form: k2 - lm = 0, where k, l, m are lines described in the form ax + by + c = 0. l and m are the tangents to the curve, and k is a chord connecting the points of tangency.
Summary
Properties from ConicDisplay
number |
Flags whether the geometry data needs to be updated. |
number |
The world transform ID last when the geometry was updated. |
number |
Last _dirtyID when the geometry was updated. |
[number, number, number] |
|
[number, number, number] |
|
[number, number, number] |
|
The conic curve drawn by this graphic. |
|
Texture positions of the vertices. |
|
World positions of the vertices |
Methods from ConicDisplay
this |
Draws the triangle formed by the control points of the shape. |
this |
|
this |
|
void |
|
void |
|
this |
Set the transform of the conic |
this |
|
this |
|
void |
Updates the geometry data for this conic. |
void |
Updates the transform of the conic, and if changed updates the geometry data. |
Properties inherited from Container
T[] |
|
number |
The height of the Container, setting this will actually modify the scale to achieve the value set. |
boolean |
|
boolean |
|
boolean |
Should children be sorted by zIndex at the next updateTransform call. |
number |
The width of the Container, setting this will actually modify the scale to achieve the value set. |
Properties inherited from DisplayObject
Methods inherited from Container
Methods inherited from DisplayObject
Inherited Events from Container
Inherited Events from DisplayObject
|
|
|
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
Fired when the mouse pointer is moved over a DisplayObject and its descendant's hit testing boundaries. |
|
Capture phase equivalent of |
|
Fired when the mouse pointer exits a DisplayObject and its descendants. |
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
Fired when the pointer is moved over a DisplayObject and its descendant's hit testing boundaries. |
|
Capture phase equivalent of |
|
Fired when the pointer leaves the hit testing boundaries of a DisplayObject and its descendants. |
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
|
|
Capture phase equivalent of |
|
PIXI.FederatedWheelEvent |
Fired when a the user scrolls with the mouse cursor over a DisplayObject. |
PIXI.FederatedWheelEvent |
Capture phase equivalent of |
Public Properties
_dirtyID: number = 0
Flags whether the geometry data needs to be updated.
_transformID: number = 0
The world transform ID last when the geometry was updated.
Public Methods
drawControlPoints() → {this}
Draws the triangle formed by the control points of the shape.
Type | Description |
---|---|
this |
drawRect(x: number, y: number, width: number, height: number) → {this}
Name | Type | Description |
---|---|---|
x | number | |
y | number | |
width | number | |
height | number |
Type | Description |
---|---|
this |
drawTriangle(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number) → {this}
Draw a triangle defined in texture space transformed into local space. Generally, you would want to draw the triangle formed by the shape's control points.
Name | Type | Description |
---|---|---|
x0 | number | |
y0 | number | |
x1 | number | |
y1 | number | |
x2 | number | |
y2 | number |
Type | Description |
---|---|
this |
renderCanvas(renderer: PIXI.CanvasRenderer) → {void}
Renders the object using the Canvas renderer
Name | Type | Description |
---|---|---|
renderer | PIXI.CanvasRenderer |
The renderer |
Type | Description |
---|---|
void |
setControlPoints(c0: PIXI.Point, c1: PIXI.Point, c2: PIXI.Point) → {void}
Sets the local-space control points of the curve.
Name | Type | Description |
---|---|---|
c0 | PIXI.Point | |
c1 | PIXI.Point | |
c2 | PIXI.Point |
Type | Description |
---|---|
void |
setTransform(matrix: any) → {this}
Set the transform of the conic
Name | Type | Description |
---|---|---|
matrix | any |
transformation between design space and texture space |
Type | Description |
---|---|
this |
setTransform(a0: PIXI.Point, b0: PIXI.Point, c0: PIXI.Point, a1: PIXI.Point, b1: PIXI.Point, c1: PIXI.Point) → {this}
Set the transformation by defining a triangle in design space (a0, b0, c0) mapping to the triangle (a1, b1, c1) in texture space.
Name | Type | Description |
---|---|---|
a0 | PIXI.Point | |
b0 | PIXI.Point | |
c0 | PIXI.Point | |
a1 | PIXI.Point | |
b1 | PIXI.Point | |
c1 | PIXI.Point |
Type | Description |
---|---|
this |
setTransform(ax0: number, ay0: number, bx0: number, by0: number, cx0: number, cy0: number, ax1: number, ay1: number, bx1: number, by1: number, cx1: number, cy1: number) → {this}
Set the transformation by defining the triangle in design space (ax0, ay0), (bx0, by0), (cx0, cy0) mapping to the triangle (ax1, ay1), (bx1, by1), (cx1, cy1) in texture space.
Name | Type | Description |
---|---|---|
ax0 | number | |
ay0 | number | |
bx0 | number | |
by0 | number | |
cx0 | number | |
cy0 | number | |
ax1 | number | |
ay1 | number | |
bx1 | number | |
by1 | number | |
cx1 | number | |
cy1 | number |
Type | Description |
---|---|
this |
updateConic() → {void}
Updates the geometry data for this conic.
Type | Description |
---|---|
void |
updateTransform() → {void}
Updates the transform of the conic, and if changed updates the geometry data.
Type | Description |
---|---|
void |