Class: CurveObj

CurveObj

represents generic curve object drawn over a line (e.g. beam)

new CurveObj(point1, point2, params)

Abstract class for curves (applied as internal forces, deflection etc.)
This:
Parameters:
Name Type Argument Description
point1 RaphaelTools.Point2d first point of curve
point2 RaphaelTools.Point2d second point of curve
params Object <optional>
parameters, see below
Properties
Name Type Argument Description
scale number <optional>
=1.] scale scale between passed value and drawn value in pixels
closedBegin boolean <optional>
=true] if point1 is connected with appropriate value of curve
closedEnd boolean <optional>
=true] if point2 is connected with appropriate value of curve
closedBase boolean <optional>
=true] if point1 and point2 are connected within the curve definition
Properties:
Name Type Description
point1 Point2d 1st point
point2 Point2d 2nd point
scale number scale scale between passed value and drawn value in pixels
closedBegin boolean if point1 is connected with appropriate value of curve
closedEnd boolean if point2 is connected with appropriate value of curve
closedBase boolean if point1 and point2 are connected within the curve definition
Source:
  • /var/www/html/software/raphaelsm/raphaelsm.src.js, line 635

Extends

  • Raphael.fn

Methods

consts()

Sets function constants
Source:
  • /var/www/html/software/raphaelsm/raphaelsm.src.js, line 649

setGeom()

Sets geometric parameters according to stored attributes
Source:
  • /var/www/html/software/raphaelsm/raphaelsm.src.js, line 657

setPathList()

Sets svg path list
Source:
  • /var/www/html/software/raphaelsm/raphaelsm.src.js, line 653

update()

Update
Source:
  • /var/www/html/software/raphaelsm/raphaelsm.src.js, line 676