Class PathElement3dfx.CurvePathElement3dfx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.dfx.PathElement3dfx
-
- org.arakhne.afc.math.geometry.d3.dfx.PathElement3dfx.CurvePathElement3dfx
-
- All Implemented Interfaces:
Serializable,Cloneable,PathElement3afp,PathElement3D
- Enclosing class:
- PathElement3dfx
static class PathElement3dfx.CurvePathElement3dfx extends PathElement3dfx
An element of the path that represents aCURVE_TO.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND, Hamza JAFFALI
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.arakhne.afc.math.geometry.d3.dfx.PathElement3dfx
PathElement3dfx.ClosePathElement3dfx, PathElement3dfx.CurvePathElement3dfx, PathElement3dfx.LinePathElement3dfx, PathElement3dfx.MovePathElement3dfx, PathElement3dfx.QuadPathElement3dfx
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.geometry.d3.dfx.PathElement3dfx
isEmpty, to, type
-
-
Constructor Summary
Constructors Constructor Description CurvePathElement3dfx(javafx.beans.property.DoubleProperty fromx, javafx.beans.property.DoubleProperty fromy, javafx.beans.property.DoubleProperty fromz, javafx.beans.property.DoubleProperty ctrlx1, javafx.beans.property.DoubleProperty ctrly1, javafx.beans.property.DoubleProperty ctrlz1, javafx.beans.property.DoubleProperty ctrlx2, javafx.beans.property.DoubleProperty ctrly2, javafx.beans.property.DoubleProperty ctrlz2, javafx.beans.property.DoubleProperty tox, javafx.beans.property.DoubleProperty toy, javafx.beans.property.DoubleProperty toz)Constructor.CurvePathElement3dfx(Point3dfx fromPoint, Point3dfx ctrl1Point, Point3dfx ctrl2Point, Point3dfx toPoint)Constructor by setting.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.DoublePropertyctrlX1Property()Replies the x coordinate of the first control point property.javafx.beans.property.DoublePropertyctrlX2Property()Replies the x coordinate of the second control point property.javafx.beans.property.DoublePropertyctrlY1Property()Replies the y coordinate of the first control point property.javafx.beans.property.DoublePropertyctrlY2Property()Replies the y coordinate of the second control point property.javafx.beans.property.DoublePropertyctrlZ1Property()Replies the z coordinate of the first control point property.javafx.beans.property.DoublePropertyctrlZ2Property()Replies the z coordinate of the second control point property.booleanequals(Object obj)javafx.beans.property.DoublePropertyfromXProperty()Replies the x coordinate of the starting point property.javafx.beans.property.DoublePropertyfromYProperty()Replies the y coordinate of the starting point property.javafx.beans.property.DoublePropertyfromZProperty()Replies the z coordinate of the starting point property.doublegetCtrlX1()Replies the x coordinate of the first control point.doublegetCtrlX2()Replies the x coordinate of the second control point.doublegetCtrlY1()Replies the y coordinate of the first control point.doublegetCtrlY2()Replies the y coordinate of the second control point.doublegetCtrlZ1()Replies the z coordinate of the first control point.doublegetCtrlZ2()Replies the z coordinate of the second control point.doublegetFromX()Replies the x coordinate of the starting point.doublegetFromY()Replies the y coordinate of the starting point.doublegetFromZ()Replies the z coordinate of the starting point.inthashCode()booleanisDrawable()Replies if the element is not empty and is drawable.javafx.beans.property.BooleanPropertyisEmptyProperty()Replies the property that indicates if this patth element is empty.javafx.beans.property.DoubleProperty[]toArray()Copy the coords into an array, except the source point.voidtoArray(double[] array)Copy the coords into the given array, except the source point.voidtoArray(int[] array)Copy the coords into the given array, except the source point.voidtoArray(javafx.beans.property.DoubleProperty[] array)Copy the coords into the given array, except the source point.-
Methods inherited from class org.arakhne.afc.math.geometry.d3.dfx.PathElement3dfx
getToX, getToY, getToZ, getType, isEmpty, toString, toXProperty, toYProperty, toZProperty
-
-
-
-
Constructor Detail
-
CurvePathElement3dfx
CurvePathElement3dfx(javafx.beans.property.DoubleProperty fromx, javafx.beans.property.DoubleProperty fromy, javafx.beans.property.DoubleProperty fromz, javafx.beans.property.DoubleProperty ctrlx1, javafx.beans.property.DoubleProperty ctrly1, javafx.beans.property.DoubleProperty ctrlz1, javafx.beans.property.DoubleProperty ctrlx2, javafx.beans.property.DoubleProperty ctrly2, javafx.beans.property.DoubleProperty ctrlz2, javafx.beans.property.DoubleProperty tox, javafx.beans.property.DoubleProperty toy, javafx.beans.property.DoubleProperty toz)Constructor.- Parameters:
fromx- x coordinate of the origin point.fromy- y coordinate of the origin point.fromz- z coordinate of the origin point.ctrlx1- x coordinate of the first control point.ctrly1- y coordinate of the first control point.ctrlz1- z coordinate of the first control point.ctrlx2- x coordinate of the second control point.ctrly2- y coordinate of the second control point.ctrlz2- z coordinate of the second control point.tox- x coordinate of the target point.toy- y coordinate of the target point.toz- z coordinate of the target point.
-
CurvePathElement3dfx
CurvePathElement3dfx(Point3dfx fromPoint, Point3dfx ctrl1Point, Point3dfx ctrl2Point, Point3dfx toPoint)
Constructor by setting.- Parameters:
fromPoint- the point to set as the origin point.ctrl1Point- the point to set as the first control point.ctrl2Point- the point to set as the second control point.toPoint- the point to set as the target point.
-
-
Method Detail
-
equals
@Pure public boolean equals(Object obj)
- Specified by:
equalsin classPathElement3dfx
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCodein classPathElement3dfx
-
isEmptyProperty
@Pure public javafx.beans.property.BooleanProperty isEmptyProperty()
Description copied from class:PathElement3dfxReplies the property that indicates if this patth element is empty.- Specified by:
isEmptyPropertyin classPathElement3dfx- Returns:
- the isEmpty property.
-
isDrawable
@Pure public boolean isDrawable()
Description copied from interface:PathElement3DReplies if the element is not empty and is drawable.Only the path elements that may produce pixels on the screen must reply
truein this function.- Returns:
trueif the path element is drawable; otherwisefalse.
-
toArray
@Pure public void toArray(int[] array)
Description copied from interface:PathElement3afpCopy the coords into the given array, except the source point.- Parameters:
array- the output array.
-
toArray
@Pure public void toArray(javafx.beans.property.DoubleProperty[] array)
Description copied from class:PathElement3dfxCopy the coords into the given array, except the source point.- Specified by:
toArrayin classPathElement3dfx- Parameters:
array- the output array.
-
toArray
@Pure public void toArray(double[] array)
Description copied from interface:PathElement3afpCopy the coords into the given array, except the source point.- Parameters:
array- the output array.
-
toArray
@Pure public javafx.beans.property.DoubleProperty[] toArray()
Description copied from class:PathElement3dfxCopy the coords into an array, except the source point.- Specified by:
toArrayin classPathElement3dfx- Returns:
- the array of the points, except the source point.
-
getFromX
@Pure public double getFromX()
Description copied from interface:PathElement3afpReplies the x coordinate of the starting point.- Returns:
- the x coordinate, or
0if the type isPathElementType.MOVE_TO.
-
getFromY
@Pure public double getFromY()
Description copied from interface:PathElement3afpReplies the y coordinate of the starting point.- Returns:
- the y coordinate, or
0if the type isPathElementType.MOVE_TO.
-
getFromZ
@Pure public double getFromZ()
Description copied from interface:PathElement3afpReplies the z coordinate of the starting point.- Returns:
- the z coordinate, or
0if the type isPathElementType.MOVE_TO.
-
getCtrlX1
@Pure public double getCtrlX1()
Description copied from interface:PathElement3afpReplies the x coordinate of the first control point.- Returns:
- the x coordinate, or
0if the type isPathElementType.MOVE_TO,PathElementType.LINE_TO, orPathElementType.CLOSE.
-
getCtrlY1
@Pure public double getCtrlY1()
Description copied from interface:PathElement3afpReplies the y coordinate of the first control point.- Returns:
- the y coordinate, or
0if the type isPathElementType.MOVE_TO,PathElementType.LINE_TO, orPathElementType.CLOSE.
-
getCtrlZ1
@Pure public double getCtrlZ1()
Description copied from interface:PathElement3afpReplies the z coordinate of the first control point.- Returns:
- the z coordinate, or
0if the type isPathElementType.MOVE_TO,PathElementType.LINE_TO, orPathElementType.CLOSE.
-
getCtrlX2
@Pure public double getCtrlX2()
Description copied from interface:PathElement3afpReplies the x coordinate of the second control point.- Returns:
- the x coordinate, or
0if the type isPathElementType.MOVE_TO,PathElementType.LINE_TO,PathElementType.QUAD_TO, orPathElementType.CLOSE.
-
getCtrlY2
@Pure public double getCtrlY2()
Description copied from interface:PathElement3afpReplies the y coordinate of the second control point.- Returns:
- the y coordinate, or
0if the type isPathElementType.MOVE_TO,PathElementType.LINE_TO,PathElementType.QUAD_TO, orPathElementType.CLOSE.
-
getCtrlZ2
@Pure public double getCtrlZ2()
Description copied from interface:PathElement3afpReplies the z coordinate of the second control point.- Returns:
- the z coordinate, or
0if the type isPathElementType.MOVE_TO,PathElementType.LINE_TO,PathElementType.QUAD_TO, orPathElementType.CLOSE.
-
fromXProperty
@Pure public javafx.beans.property.DoubleProperty fromXProperty()
Description copied from class:PathElement3dfxReplies the x coordinate of the starting point property.- Specified by:
fromXPropertyin classPathElement3dfx- Returns:
- the x coordinate, or
nullif the type isPathElementType.MOVE_TO.
-
fromYProperty
@Pure public javafx.beans.property.DoubleProperty fromYProperty()
Description copied from class:PathElement3dfxReplies the y coordinate of the starting point property.- Specified by:
fromYPropertyin classPathElement3dfx- Returns:
- the y coordinate, or
nullif the type isPathElementType.MOVE_TO.
-
fromZProperty
@Pure public javafx.beans.property.DoubleProperty fromZProperty()
Description copied from class:PathElement3dfxReplies the z coordinate of the starting point property.- Specified by:
fromZPropertyin classPathElement3dfx- Returns:
- the z coordinate, or
nullif the type isPathElementType.MOVE_TO.
-
ctrlX1Property
@Pure public javafx.beans.property.DoubleProperty ctrlX1Property()
Description copied from class:PathElement3dfxReplies the x coordinate of the first control point property.- Specified by:
ctrlX1Propertyin classPathElement3dfx- Returns:
- the x coordinate, or
nullif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO, orPathElementType.CLOSE.
-
ctrlY1Property
@Pure public javafx.beans.property.DoubleProperty ctrlY1Property()
Description copied from class:PathElement3dfxReplies the y coordinate of the first control point property.- Specified by:
ctrlY1Propertyin classPathElement3dfx- Returns:
- the y coordinate, or
Double.NaNif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO, orPathElementType.CLOSE.
-
ctrlZ1Property
@Pure public javafx.beans.property.DoubleProperty ctrlZ1Property()
Description copied from class:PathElement3dfxReplies the z coordinate of the first control point property.- Specified by:
ctrlZ1Propertyin classPathElement3dfx- Returns:
- the z coordinate, or
Double.NaNif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO, orPathElementType.CLOSE.
-
ctrlX2Property
@Pure public javafx.beans.property.DoubleProperty ctrlX2Property()
Description copied from class:PathElement3dfxReplies the x coordinate of the second control point property.- Specified by:
ctrlX2Propertyin classPathElement3dfx- Returns:
- the x coordinate, or
nullif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO,PathElementType.QUAD_TO, orPathElementType.CLOSE.
-
ctrlY2Property
@Pure public javafx.beans.property.DoubleProperty ctrlY2Property()
Description copied from class:PathElement3dfxReplies the y coordinate of the second control point property.- Specified by:
ctrlY2Propertyin classPathElement3dfx- Returns:
- the y coordinate, or
nullif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO,PathElementType.QUAD_TO, orPathElementType.CLOSE.
-
ctrlZ2Property
@Pure public javafx.beans.property.DoubleProperty ctrlZ2Property()
Description copied from class:PathElement3dfxReplies the z coordinate of the second control point property.- Specified by:
ctrlZ2Propertyin classPathElement3dfx- Returns:
- the z coordinate, or
nullif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO,PathElementType.QUAD_TO, orPathElementType.CLOSE.
-
-