Class ParabolicCurve
represents parabolic curve
Defined in: raphaelsm.src.js.
Constructor Attributes | Constructor Name and Description |
---|---|
ParabolicCurve(raphael, point1, point2, params)
Parabolic curve (e.g.
|
Field Attributes | Field Name and Description |
---|---|
if point1 and point2 are connected within the curve definition
|
|
if point1 is connected with appropriate value of curve
|
|
if point2 is connected with appropriate value of curve
|
|
pointer to actual raphael object
|
|
1st point
|
|
2nd point
|
|
raphael instance
|
|
scale scale between passed value and drawn value in pixels
|
|
value in 1st point
|
|
value in 2nd point
|
|
value in the middle
|
Method Attributes | Method Name and Description |
---|---|
consts()
Sets function constants
|
|
<static> |
ParabolicCurve.create(raphael, point1, point2, params)
Creates new ParabolicCurve object, for parameters meaning see ParabolicCurve
|
Sets svg path list
|
|
setVals(val1, val2, valMid)
Sets values of receiver
|
|
up()
Update
|
Class Detail
ParabolicCurve(raphael, point1, point2, params)
Parabolic curve (e.g. bending moment line)
- Parameters:
- {Raphael} raphael
- raphael instance
- {Point2d} point1
- 1st point
- {Point2d} point2
- 2nd point
- {Object} params
- parameters, see below
- {float} params.val1 Optional, Default: 0.
- value in 1st point
- {float} params.valMid Optional, Default: 0.
- value in the middle of 1st and 2nd point
- {float} params.val2 Optional, Default: 0.
- value in 2nd point
- {float} params.sclale Optional, Default: 1.
- scale factor
- {bool} params.closedBegin Optional, Default: true
- the line conecting 1st point with 1st nodal value
- {bool} params.closedEnd Optional, Default: true
- the line conecting 2nd point with 2nd nodal value
- {bool} params.closedBase Optional, Default: true
- the line conecting 1st and 2nd point
- {int} params.nSeg Optional, Default: 5
- number of interpolating points
Field Detail
{bool}
closedBase
if point1 and point2 are connected within the curve definition
{bool}
closedBegin
if point1 is connected with appropriate value of curve
{bool}
closedEnd
if point2 is connected with appropriate value of curve
{Raphael.el}
obj
pointer to actual raphael object
{Point2d}
point1
1st point
{Point2d}
point2
2nd point
{Raphael}
raphael
raphael instance
{float}
scale
scale scale between passed value and drawn value in pixels
{float}
val1
value in 1st point
{float}
val2
value in 2nd point
{float}
valMid
value in the middle
Method Detail
consts()
Sets function constants
<static>
{ParabolicCurve}
ParabolicCurve.create(raphael, point1, point2, params)
Creates new ParabolicCurve object, for parameters meaning see ParabolicCurve
- Parameters:
- raphael
- point1
- point2
- params
- Returns:
- {ParabolicCurve} new ParabolicCurve object
setPathList()
Sets svg path list
setVals(val1, val2, valMid)
Sets values of receiver
- Parameters:
- {float} val1
- value in 1st point
- {float} val2
- value in 2nd point
- {float} valMid
- value in the middle
up()
Update