Class PathElement3dfx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.dfx.PathElement3dfx
-
- All Implemented Interfaces:
Serializable,Cloneable,PathElement3afp,PathElement3D
- Direct Known Subclasses:
PathElement3dfx.ClosePathElement3dfx,PathElement3dfx.CurvePathElement3dfx,PathElement3dfx.LinePathElement3dfx,PathElement3dfx.MovePathElement3dfx,PathElement3dfx.QuadPathElement3dfx
public abstract class PathElement3dfx extends Object implements PathElement3afp
An element of the path.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND, Hamza JAFFALI, Thomas PIOTROWSKI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classPathElement3dfx.ClosePathElement3dfxAn element of the path that represents aCLOSE.(package private) static classPathElement3dfx.CurvePathElement3dfxAn element of the path that represents aCURVE_TO.(package private) static classPathElement3dfx.LinePathElement3dfxAn element of the path that represents aLINE_TO.(package private) static classPathElement3dfx.MovePathElement3dfxAn element of the path that represents aMOVE_TO.(package private) static classPathElement3dfx.QuadPathElement3dfxAn element of the path that represents aQUAD_TO.
-
Field Summary
Fields Modifier and Type Field Description protected javafx.beans.property.ReadOnlyBooleanWrapperisEmptyIs Empty property.protected Point3dfxtoTarget point.protected PathElementTypetypeType of the element.
-
Constructor Summary
Constructors Constructor Description PathElement3dfx(PathElementType type, javafx.beans.property.DoubleProperty tox, javafx.beans.property.DoubleProperty toy, javafx.beans.property.DoubleProperty toz)Constructor.PathElement3dfx(PathElementType type, Point3dfx toPoint)Constructor by setting.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract javafx.beans.property.DoublePropertyctrlX1Property()Replies the x coordinate of the first control point property.abstract javafx.beans.property.DoublePropertyctrlX2Property()Replies the x coordinate of the second control point property.abstract javafx.beans.property.DoublePropertyctrlY1Property()Replies the y coordinate of the first control point property.abstract javafx.beans.property.DoublePropertyctrlY2Property()Replies the y coordinate of the second control point property.abstract javafx.beans.property.DoublePropertyctrlZ1Property()Replies the z coordinate of the first control point property.abstract javafx.beans.property.DoublePropertyctrlZ2Property()Replies the z coordinate of the second control point property.abstract booleanequals(Object obj)abstract javafx.beans.property.DoublePropertyfromXProperty()Replies the x coordinate of the starting point property.abstract javafx.beans.property.DoublePropertyfromYProperty()Replies the y coordinate of the starting point property.abstract javafx.beans.property.DoublePropertyfromZProperty()Replies the z coordinate of the starting point property.doublegetToX()Replies the x coordinate of the target point.doublegetToY()Replies the y coordinate of the target point.doublegetToZ()Replies the z coordinate of the target point.PathElementTypegetType()Replies the type of the element.abstract inthashCode()booleanisEmpty()Replies if the element is empty, ie. the points are the same.abstract javafx.beans.property.BooleanPropertyisEmptyProperty()Replies the property that indicates if this patth element is empty.abstract javafx.beans.property.DoubleProperty[]toArray()Copy the coords into an array, except the source point.abstract voidtoArray(javafx.beans.property.DoubleProperty[] array)Copy the coords into the given array, except the source point.StringtoString()javafx.beans.property.DoublePropertytoXProperty()Replies the x coordinate of the target point property.javafx.beans.property.DoublePropertytoYProperty()Replies the y coordinate of the target point property.javafx.beans.property.DoublePropertytoZProperty()Replies the z coordinate of the target point property.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.afp.PathElement3afp
getCtrlX1, getCtrlX2, getCtrlY1, getCtrlY2, getCtrlZ1, getCtrlZ2, getFromX, getFromY, getFromZ, toArray, toArray
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.PathElement3D
isDrawable
-
-
-
-
Field Detail
-
type
protected final PathElementType type
Type of the element.
-
to
protected Point3dfx to
Target point.
-
isEmpty
protected javafx.beans.property.ReadOnlyBooleanWrapper isEmpty
Is Empty property.
-
-
Constructor Detail
-
PathElement3dfx
PathElement3dfx(PathElementType type, javafx.beans.property.DoubleProperty tox, javafx.beans.property.DoubleProperty toy, javafx.beans.property.DoubleProperty toz)
Constructor.- Parameters:
type- is the type of the element.tox- the x coordinate of the target point.toy- the x coordinate of the target point.toz- the x coordinate of the target point.
-
PathElement3dfx
PathElement3dfx(PathElementType type, Point3dfx toPoint)
Constructor by setting.- Parameters:
type- is the type of the element.toPoint- the point to set as the target point.
-
-
Method Detail
-
isEmptyProperty
public abstract javafx.beans.property.BooleanProperty isEmptyProperty()
Replies the property that indicates if this patth element is empty.- Returns:
- the isEmpty property.
-
isEmpty
public boolean isEmpty()
Description copied from interface:PathElement3DReplies if the element is empty, ie. the points are the same.- Specified by:
isEmptyin interfacePathElement3D- Returns:
trueif the points are the same; otherwisefalse.
-
getToX
@Pure public final double getToX()
Description copied from interface:PathElement3afpReplies the x coordinate of the target point.- Specified by:
getToXin interfacePathElement3afp- Returns:
- the x coordinate.
-
getToY
@Pure public final double getToY()
Description copied from interface:PathElement3afpReplies the y coordinate of the target point.- Specified by:
getToYin interfacePathElement3afp- Returns:
- the y coordinate.
-
getToZ
@Pure public final double getToZ()
Description copied from interface:PathElement3afpReplies the z coordinate of the target point.- Specified by:
getToZin interfacePathElement3afp- Returns:
- the z coordinate.
-
fromXProperty
@Pure public abstract javafx.beans.property.DoubleProperty fromXProperty()
Replies the x coordinate of the starting point property.- Returns:
- the x coordinate, or
nullif the type isPathElementType.MOVE_TO.
-
fromYProperty
@Pure public abstract javafx.beans.property.DoubleProperty fromYProperty()
Replies the y coordinate of the starting point property.- Returns:
- the y coordinate, or
nullif the type isPathElementType.MOVE_TO.
-
fromZProperty
@Pure public abstract javafx.beans.property.DoubleProperty fromZProperty()
Replies the z coordinate of the starting point property.- Returns:
- the z coordinate, or
nullif the type isPathElementType.MOVE_TO.
-
ctrlX1Property
@Pure public abstract javafx.beans.property.DoubleProperty ctrlX1Property()
Replies the x coordinate of the first control point property.- Returns:
- the x coordinate, or
nullif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO, orPathElementType.CLOSE.
-
ctrlY1Property
@Pure public abstract javafx.beans.property.DoubleProperty ctrlY1Property()
Replies the y coordinate of the first control point property.- Returns:
- the y coordinate, or
Double.NaNif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO, orPathElementType.CLOSE.
-
ctrlZ1Property
@Pure public abstract javafx.beans.property.DoubleProperty ctrlZ1Property()
Replies the z coordinate of the first control point property.- Returns:
- the z coordinate, or
Double.NaNif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO, orPathElementType.CLOSE.
-
ctrlX2Property
@Pure public abstract javafx.beans.property.DoubleProperty ctrlX2Property()
Replies the x coordinate of the second control point property.- Returns:
- the x coordinate, or
nullif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO,PathElementType.QUAD_TO, orPathElementType.CLOSE.
-
ctrlY2Property
@Pure public abstract javafx.beans.property.DoubleProperty ctrlY2Property()
Replies the y coordinate of the second control point property.- Returns:
- the y coordinate, or
nullif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO,PathElementType.QUAD_TO, orPathElementType.CLOSE.
-
ctrlZ2Property
@Pure public abstract javafx.beans.property.DoubleProperty ctrlZ2Property()
Replies the z coordinate of the second control point property.- Returns:
- the z coordinate, or
nullif the type isPathElementType.MOVE_TO,PathElementType.LINE_TO,PathElementType.QUAD_TO, orPathElementType.CLOSE.
-
toXProperty
@Pure public javafx.beans.property.DoubleProperty toXProperty()
Replies the x coordinate of the target point property.- Returns:
- the x coordinate.
-
toYProperty
@Pure public javafx.beans.property.DoubleProperty toYProperty()
Replies the y coordinate of the target point property.- Returns:
- the y coordinate.
-
toZProperty
@Pure public javafx.beans.property.DoubleProperty toZProperty()
Replies the z coordinate of the target point property.- Returns:
- the z coordinate.
-
getType
@Pure public final PathElementType getType()
Description copied from interface:PathElement3DReplies the type of the element.- Specified by:
getTypein interfacePathElement3afp- Specified by:
getTypein interfacePathElement3D- Returns:
trueif the points are the same; otherwisefalse.
-
toArray
@Pure public abstract void toArray(javafx.beans.property.DoubleProperty[] array)
Copy the coords into the given array, except the source point.- Parameters:
array- the output array.
-
toArray
@Pure public abstract javafx.beans.property.DoubleProperty[] toArray()
Copy the coords into an array, except the source point.- Returns:
- the array of the points, except the source point.
-
-