Class AbstractShape3d<T extends AbstractShape3d<?>>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.d.AbstractShape3d<T>
-
- Type Parameters:
T- the type of the shape.
- All Implemented Interfaces:
Serializable,Cloneable,Shape3afp<Shape3d<?>,T,PathElement3d,Point3d,Vector3d,RectangularPrism3d>,Shape3d<T>,Shape3D<Shape3d<?>,T,PathIterator3afp<PathElement3d>,Point3d,Vector3d,RectangularPrism3d>,JsonableObject
- Direct Known Subclasses:
MultiShape3d,Path3d,RectangularPrism3d,Segment3d,SegmentPoint3d,Sphere3d
public abstract class AbstractShape3d<T extends AbstractShape3d<?>> extends Object implements Shape3d<T>
Abstract shape with 2 double precision floating-point numbers.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND, Thomas PIOTROWSKI
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Constructor Summary
Constructors Constructor Description AbstractShape3d()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddShapeGeometryChangeListener(ShapeGeometryChangeListener listener)Add listener on geometry changes.Tclone()Clone this shape.booleanequals(Object obj)protected voidfireGeometryChange()Notify any listener of a geometry change.GeomFactory3dgetGeomFactory()Replies the geometry factory associated to this point.abstract inthashCode()protected voidremoveShapeGeometryChangeListener(ShapeGeometryChangeListener listener)Remove listener on geometry changes.voidtoJson(JsonBuffer buffer)Replies the Json representation of this node.StringtoString()-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.afp.Shape3afp
contains, contains, contains, contains, createTransformedShape, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, intersects, intersects, intersects, intersects, intersects, intersects, intersects, toBoundingBox, translate, translate
-
Methods inherited from interface org.arakhne.afc.math.geometry.d3.Shape3D
clear, equalsToPathIterator, equalsToShape, getClosestPointTo, getDistance, getDistance, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, getPathIterator, getPathIterator, isEmpty, operator_add, operator_and, operator_and, operator_minus, operator_multiply, operator_plus, operator_remove, operator_upTo, set, toBoundingBox
-
-
-
-
Method Detail
-
addShapeGeometryChangeListener
protected void addShapeGeometryChangeListener(ShapeGeometryChangeListener listener)
Add listener on geometry changes.- Parameters:
listener- the listener.
-
removeShapeGeometryChangeListener
protected void removeShapeGeometryChangeListener(ShapeGeometryChangeListener listener)
Remove listener on geometry changes.- Parameters:
listener- the listener.
-
fireGeometryChange
protected void fireGeometryChange()
Notify any listener of a geometry change.
-
clone
public T clone()
Description copied from interface:Shape3DClone this shape.- Specified by:
clonein interfaceShape3D<Shape3d<?>,T extends AbstractShape3d<?>,PathIterator3afp<PathElement3d>,Point3d,Vector3d,RectangularPrism3d>- Overrides:
clonein classObject- Returns:
- the clone.
-
getGeomFactory
public final GeomFactory3d getGeomFactory()
Description copied from interface:Shape3DReplies the geometry factory associated to this point.- Specified by:
getGeomFactoryin interfaceShape3afp<Shape3d<?>,T extends AbstractShape3d<?>,PathElement3d,Point3d,Vector3d,RectangularPrism3d>- Specified by:
getGeomFactoryin interfaceShape3D<Shape3d<?>,T extends AbstractShape3d<?>,PathIterator3afp<PathElement3d>,Point3d,Vector3d,RectangularPrism3d>- Returns:
- the factory.
-
toJson
public void toJson(JsonBuffer buffer)
Description copied from interface:JsonableObjectReplies the Json representation of this node.- Specified by:
toJsonin interfaceJsonableObject- Parameters:
buffer- the Json buffer.
-
-