Class: QuadraticCurveShape3D
Define class for drawing quadratic curv on the xz plane
Export
Hierarchy
↳
QuadraticCurveShape3D
Constructors
Properties
Accessors
- lineJoin
- start
- end
- cp
- segment
- corner
- isChange
- lineColor
- fillColor
- lineTextureID
- fillTextureID
- fillRotation
- shapeOrder
- srcPointStart
- srcPointCount
- srcIndexStart
- srcIndexCount
- destPointStart
- destPointCount
- points3D
- isClosed
- fill
- line
- lineWidth
- lineUVRect
- fillUVRect
- uvSpeed
Methods
Constructors
constructor
• new QuadraticCurveShape3D(structs
, sharedPoints
, sharedIndecies
, matrixIndex
): QuadraticCurveShape3D
Parameters
Name | Type |
---|---|
structs | Shape3DStruct |
sharedPoints | Float32Array |
sharedIndecies | Uint32Array |
matrixIndex | number |
Returns
Inherited from
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:113
Properties
shapeType
• Readonly
shapeType: number
Overrides
Defined in
packages/graphic/renderer/shape3d/QuadraticCurveShape3D.ts:13
shapeIndex
• Readonly
shapeIndex: number
= 0
Inherited from
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:109
computeEveryFrame
• Optional
Readonly
computeEveryFrame: boolean
Inherited from
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:111
Accessors
lineJoin
• get
lineJoin(): LineJoin
Returns
Inherited from
LineShape3D.lineJoin
Defined in
packages/graphic/renderer/shape3d/LineShape3D.ts:30
• set
lineJoin(value
): void
Parameters
Name | Type |
---|---|
value | LineJoin |
Returns
void
Inherited from
LineShape3D.lineJoin
Defined in
packages/graphic/renderer/shape3d/LineShape3D.ts:33
start
• get
start(): Vector2
Returns
Vector2
Defined in
packages/graphic/renderer/shape3d/QuadraticCurveShape3D.ts:20
• set
start(value
): void
Parameters
Name | Type |
---|---|
value | Vector2 |
Returns
void
Defined in
packages/graphic/renderer/shape3d/QuadraticCurveShape3D.ts:23
end
• get
end(): Vector2
Returns
Vector2
Defined in
packages/graphic/renderer/shape3d/QuadraticCurveShape3D.ts:28
• set
end(value
): void
Parameters
Name | Type |
---|---|
value | Vector2 |
Returns
void
Defined in
packages/graphic/renderer/shape3d/QuadraticCurveShape3D.ts:31
cp
• get
cp(): Vector2
Returns
Vector2
Defined in
packages/graphic/renderer/shape3d/QuadraticCurveShape3D.ts:36
• set
cp(value
): void
Parameters
Name | Type |
---|---|
value | Vector2 |
Returns
void
Defined in
packages/graphic/renderer/shape3d/QuadraticCurveShape3D.ts:39
segment
• get
segment(): number
Returns
number
Defined in
packages/graphic/renderer/shape3d/QuadraticCurveShape3D.ts:44
• set
segment(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Defined in
packages/graphic/renderer/shape3d/QuadraticCurveShape3D.ts:47
corner
• get
corner(): number
Returns
number
Overrides
LineShape3D.corner
Defined in
packages/graphic/renderer/shape3d/QuadraticCurveShape3D.ts:60
• set
corner(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Overrides
LineShape3D.corner
Defined in
packages/graphic/renderer/shape3d/QuadraticCurveShape3D.ts:55
isChange
• get
isChange(): boolean
Returns
boolean
Inherited from
LineShape3D.isChange
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:120
lineColor
• get
lineColor(): Color
Returns
Color
Inherited from
LineShape3D.lineColor
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:135
• set
lineColor(value
): void
Parameters
Name | Type |
---|---|
value | Color |
Returns
void
Inherited from
LineShape3D.lineColor
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:130
fillColor
• get
fillColor(): Color
Returns
Color
Inherited from
LineShape3D.fillColor
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:144
• set
fillColor(value
): void
Parameters
Name | Type |
---|---|
value | Color |
Returns
void
Inherited from
LineShape3D.fillColor
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:139
lineTextureID
• get
lineTextureID(): number
Returns
number
Inherited from
LineShape3D.lineTextureID
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:148
• set
lineTextureID(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Inherited from
LineShape3D.lineTextureID
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:151
fillTextureID
• get
fillTextureID(): number
Returns
number
Inherited from
LineShape3D.fillTextureID
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:157
• set
fillTextureID(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Inherited from
LineShape3D.fillTextureID
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:160
fillRotation
• get
fillRotation(): number
Returns
number
Inherited from
LineShape3D.fillRotation
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:167
• set
fillRotation(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Inherited from
LineShape3D.fillRotation
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:170
shapeOrder
• get
shapeOrder(): number
Returns
number
Inherited from
LineShape3D.shapeOrder
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:177
• set
shapeOrder(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Inherited from
LineShape3D.shapeOrder
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:180
srcPointStart
• get
srcPointStart(): number
Returns
number
Inherited from
LineShape3D.srcPointStart
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:188
• set
srcPointStart(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Inherited from
LineShape3D.srcPointStart
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:191
srcPointCount
• get
srcPointCount(): number
Returns
number
Inherited from
LineShape3D.srcPointCount
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:198
srcIndexStart
• get
srcIndexStart(): number
Returns
number
Inherited from
LineShape3D.srcIndexStart
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:202
• set
srcIndexStart(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Inherited from
LineShape3D.srcIndexStart
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:205
srcIndexCount
• get
srcIndexCount(): number
Returns
number
Inherited from
LineShape3D.srcIndexCount
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:212
destPointStart
• get
destPointStart(): number
Returns
number
Inherited from
LineShape3D.destPointStart
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:216
• set
destPointStart(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Inherited from
LineShape3D.destPointStart
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:219
destPointCount
• get
destPointCount(): number
Returns
number
Inherited from
LineShape3D.destPointCount
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:225
points3D
• get
points3D(): Point3D
[]
Returns
Point3D
[]
Inherited from
LineShape3D.points3D
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:229
• set
points3D(value
): void
Parameters
Name | Type |
---|---|
value | Point3D [] |
Returns
void
Inherited from
LineShape3D.points3D
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:232
isClosed
• get
isClosed(): boolean
Returns
boolean
Inherited from
LineShape3D.isClosed
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:238
• set
isClosed(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
LineShape3D.isClosed
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:241
fill
• get
fill(): boolean
Returns
boolean
Inherited from
LineShape3D.fill
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:248
• set
fill(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
LineShape3D.fill
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:251
line
• get
line(): boolean
Returns
boolean
Inherited from
LineShape3D.line
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:257
• set
line(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
LineShape3D.line
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:260
lineWidth
• get
lineWidth(): number
Returns
number
Inherited from
LineShape3D.lineWidth
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:267
• set
lineWidth(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Inherited from
LineShape3D.lineWidth
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:271
lineUVRect
• get
lineUVRect(): Vector4
x: u offset of line. y: v offset of line. z: u scale of line. w: v scale of line.
Returns
Vector4
Memberof
Shape3D
Inherited from
LineShape3D.lineUVRect
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:288
• set
lineUVRect(value
): void
Parameters
Name | Type |
---|---|
value | Vector4 |
Returns
void
Inherited from
LineShape3D.lineUVRect
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:291
fillUVRect
• get
fillUVRect(): Vector4
x: u offset of filled area. y: v offset of filled area. z: u scale of filled area. w: v scale of filled area.
Returns
Vector4
Memberof
Shape3D
Inherited from
LineShape3D.fillUVRect
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:305
• set
fillUVRect(value
): void
Parameters
Name | Type |
---|---|
value | Vector4 |
Returns
void
Inherited from
LineShape3D.fillUVRect
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:308
uvSpeed
• get
uvSpeed(): Vector4
x: u speed of filled area. y: v speed of filled area. z: u speed of line. w: v speed of line.
Returns
Vector4
Memberof
Shape3D
Inherited from
LineShape3D.uvSpeed
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:322
• set
uvSpeed(value
): void
Parameters
Name | Type |
---|---|
value | Vector4 |
Returns
void
Inherited from
LineShape3D.uvSpeed
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:325
Methods
sampleQuadraticCurve
▸ sampleQuadraticCurve(start
, cp
, end
, t
, ret?
): vec3
Parameters
Name | Type |
---|---|
start | vec3 |
cp | vec3 |
end | vec3 |
t | number |
ret? | vec3 |
Returns
vec3
Inherited from
LineShape3D.sampleQuadraticCurve
Defined in
packages/graphic/renderer/shape3d/LineShape3D.ts:56
sampleCurve
▸ sampleCurve(start
, cp1
, cp2
, end
, t
, ret?
): vec3
Parameters
Name | Type |
---|---|
start | vec3 |
cp1 | vec3 |
cp2 | vec3 |
end | vec3 |
t | number |
ret? | vec3 |
Returns
vec3
Inherited from
Defined in
packages/graphic/renderer/shape3d/LineShape3D.ts:66
calcRequireSource
▸ calcRequireSource(): void
Returns
void
Overrides
Defined in
packages/graphic/renderer/shape3d/QuadraticCurveShape3D.ts:69
writeData
▸ writeData(): void
Returns
void
Inherited from
Defined in
packages/graphic/renderer/shape3d/Shape3D.ts:124
clean
▸ clean(): void
Returns
void