Class DrawSmartcam
-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.swingui.effect.api.Effect
,java.io.Serializable
public final class DrawSmartcam implements Effect
Draws node's shapes and cameras' fields of view.
-
-
Constructor Summary
Constructors Constructor Description DrawSmartcam()
-
Method Summary
Modifier and Type Method Description <T, P extends Position2D<P>> void
apply(Graphics2D graphics, Node<T> node, Environment<T, P> environment, Wormhole2D<P> wormhole)
Applies the effect. Color
getColorSummary()
-
-
Method Detail
-
apply
<T, P extends Position2D<P>> void apply(Graphics2D graphics, Node<T> node, Environment<T, P> environment, Wormhole2D<P> wormhole)
Applies the effect.
- Parameters:
environment
- environmentwormhole
- the wormhole used to map environment's coords to screen coords
-
getColorSummary
Color getColorSummary()
- Returns:
a color which resembles the color of this effect
-
-
-
-