Class AbstractShape3i<T extends AbstractShape3i<?>>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.i.AbstractShape3i<T>
-
- Type Parameters:
T- the type of the shape.
- All Implemented Interfaces:
Serializable,Cloneable,Shape3ai<Shape3i<?>,T,PathElement3i,Point3i,Vector3i,RectangularPrism3i>,Shape3i<T>,Shape3D<Shape3i<?>,T,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>,JsonableObject
- Direct Known Subclasses:
AbstractPrism3i,MultiShape3i,Path3i,RectangularPrism3i,Segment3i,SegmentPoint3i,Sphere3i
public abstract class AbstractShape3i<T extends AbstractShape3i<?>> extends Object implements Shape3i<T>
Abstract shape with 2 integer numbers.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Constructor Summary
Constructors Constructor Description AbstractShape3i()
-
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.GeomFactory3igetGeomFactory()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.ai.Shape3ai
contains, contains, contains, contains, createTransformedShape, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getClosestPointTo, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getDistanceSquared, getPointIterator, 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<Shape3i<?>,T extends AbstractShape3i<?>,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>- Overrides:
clonein classObject- Returns:
- the clone.
-
getGeomFactory
public final GeomFactory3i getGeomFactory()
Description copied from interface:Shape3DReplies the geometry factory associated to this point.- Specified by:
getGeomFactoryin interfaceShape3ai<Shape3i<?>,T extends AbstractShape3i<?>,PathElement3i,Point3i,Vector3i,RectangularPrism3i>- Specified by:
getGeomFactoryin interfaceShape3D<Shape3i<?>,T extends AbstractShape3i<?>,PathIterator3ai<PathElement3i>,Point3i,Vector3i,RectangularPrism3i>- 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.
-
-