Element: AnalyticCurve.

Icon: 

Text: A curve in 3D given by analytic expressions.

Description: An AnalyticCurve is a drawing element that draws the graph of a curve in space (that is, a set of points (x(t),y(t),z(t))) from the analytic expressions (based on the free variable t) provided to compute these points.


Planar analytic curve with expression (x, Math.sin(x)/x, 0).

The curve can be moved by dragging any of its points, invoking up to three different actions.

A one-parameter family of curves is also possible, using the 'Parameter Family' properties.

Table of properties

Name Description Values accepted
Input
Java Syntax Whether the expressions for the coordinates must be specified using the (more strict) Java syntax (such as Math.exp(x) or Math.sin(x)) or in a more relaxed form (such as e^x or sin(x)). A boolean variable or one of the constants true or false.
Variable The name of the free variable used in the expressions to specify the coordinates of the curve. A constant or variable of type String.
Minimum The smallest value for the free variable. Any constant or variable of type double or int.
Maximum The largest value for the free variable. Any constant or variable of type double or int.
Points The number of points used to compute the curve. A constant or variable of type int.
X ( ) The expression (based on the free variable) used to compute the X coordinates of the points of the curve. A constant or variable of type String.
Y ( ) The expression (based on the free variable) used to compute the Y coordinates of the points of the curve. A constant or variable of type String.
Z ( ) The expression (based on the free variable) used to compute the Z coordinates of the points of the curve. A constant or variable of type String.
Position and Size
Origin X The X coordinate of the base position of the element. Any constant or variable of type double or int.
Origin Y The Y coordinate of the base position of the element. Any constant or variable of type double or int.
Origin Z The Z coordinate of the base position of the element. Any constant or variable of type double or int.
Size X The size of the element in the X direction. Any constant or variable of type double or int.
Size Y The size of the element in the Y direction. Any constant or variable of type double or int.
Size Z The size of the element in the Z direction. Any constant or variable of type double or int.

Parametric Family

Param. Name The name of the parameter for parametric families. A constant or variable of type String.
Param. Values The values for the given parameter. A unidimensional array of type double, each value will draw a different curve of the family.

Visibility and Interaction

Visible The visibility of the element. A boolean variable or one of the constants true or false.
Movable Whether the element moves when the user drags its points. A boolean variable or one of the constants true or false.
On Press The action to invoke when the element is pressed. The Java code to invoke for the action. 
On Drag The action to invoke when the element is moved. The Java code to invoke for the action. 
On Release The action to invoke when the element is released. The Java code to invoke for the action. 
On Enter The action to invoke when the pointer enters the element. The Java code to invoke for the action. 
On Exit The action to invoke when the pointer leaves the element. The Java code to invoke for the action. 
Graphical Aspect
Line Color The color used for the lines of the element. An Object variable of the class java.awt.Color or one of the predefined colors: black, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white, yellow.

A color can also be specified providing its integer RGB coordinates (between 0 and 255), plus an optional transparency coordinate.

The default value is decided by the system.

 

Stroke The thickness for the lines of the element. Any constant or variable of type double or int. The default value is 1.

Object variables of the class  java.awt.Stroke are also accepted.