Package net.sf.gridarta.model.smoothface
Class SmoothFaces
- java.lang.Object
-
- net.sf.gridarta.model.smoothface.SmoothFaces
-
- All Implemented Interfaces:
java.lang.Iterable<java.util.Map.Entry<java.lang.String,SmoothFace>>
public class SmoothFaces extends java.lang.Object implements java.lang.Iterable<java.util.Map.Entry<java.lang.String,SmoothFace>>
Collection of all smoothing information.
-
-
Constructor Summary
Constructors Constructor Description SmoothFaces(@NotNull FaceObjects faceObjects)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(@NotNull SmoothFace smoothFace)Adds aSmoothFaceinstance.@Nullable FaceObjectgetSmoothFace(@NotNull GameObject<?,?,?> gameObject)Returns the smooth faces for aGameObject.@NotNull java.util.Iterator<java.util.Map.Entry<java.lang.String,SmoothFace>>iterator()
-
-
-
Constructor Detail
-
SmoothFaces
public SmoothFaces(@NotNull @NotNull FaceObjects faceObjects)Creates a new instance.- Parameters:
faceObjects- the face objects for looking up faces
-
-
Method Detail
-
add
public void add(@NotNull @NotNull SmoothFace smoothFace) throws DuplicateSmoothFaceExceptionAdds aSmoothFaceinstance.- Parameters:
smoothFace- the smooth face instance- Throws:
DuplicateSmoothFaceException- if the smooth face is not unique
-
getSmoothFace
@Nullable public @Nullable FaceObject getSmoothFace(@NotNull @NotNull GameObject<?,?,?> gameObject)
Returns the smooth faces for aGameObject.- Parameters:
gameObject- the game object- Returns:
- the smooth face or
nullif the game object has no attached smooth face
-
iterator
@NotNull public @NotNull java.util.Iterator<java.util.Map.Entry<java.lang.String,SmoothFace>> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<java.util.Map.Entry<java.lang.String,SmoothFace>>
-
-