Class CurveObj
represents generic curve object drawn over a line (e.g. beam)
Defined in: raphaelsm.src.js.
Constructor Attributes | Constructor Name and Description |
---|---|
CurveObj(raphael, point1, point2, params)
Abstract class for curves (applied as internal forces, deflection etc.
|
Field Attributes | Field Name and Description |
---|---|
raphael object
|
|
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
|
|
1st point
|
|
2nd point
|
|
raphael instance
|
|
scale scale between passed value and drawn value in pixels
|
Method Attributes | Method Name and Description |
---|---|
constructorCurveObj(raphael, point1, point2, params)
Constructor, see LinearCurve for parameters description
|
|
consts()
Sets function constants
|
|
setGeom()
Sets geometric parameters according to stored attributes
|
|
Sets svg path list
|
|
up()
Update
|
Class Detail
CurveObj(raphael, point1, point2, params)
Abstract class for curves (applied as internal forces, deflection etc.)
- Parameters:
- {Raphael} raphael
- raphael instance
- {Point2d} point1
- first point of curve
- {Point2d} point2
- second point of curve
- {Object} params
- parameters, see below
- {float} params.scale Optional, Default: 1.
- scale scale between passed value and drawn value in pixels
- {bool} params.closedBegin Optional, Default: true
- if point1 is connected with appropriate value of curve
- {bool} params.closedEnd Optional, Default: true
- if point2 is connected with appropriate value of curve
- {bool} params.closedBase Optional, Default: true
- if point1 and point2 are connected within the curve definition
Field Detail
{Raphael.el}
actual
raphael object
{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
{Point2d}
point1
1st point
{Point2d}
point2
2nd point
{Raphael}
raphael
raphael instance
{float}
scale
scale scale between passed value and drawn value in pixels
Method Detail
constructorCurveObj(raphael, point1, point2, params)
Constructor, see LinearCurve for parameters description
- Parameters:
- raphael
- point1
- point2
- params
consts()
Sets function constants
setGeom()
Sets geometric parameters according to stored attributes
setPathList()
Sets svg path list
up()
Update