public class BulkConveyorBelt extends AbstractFluidMarkup<BulkConveyorDataSource>
Constructor and Description |
---|
BulkConveyorBelt() |
BulkConveyorBelt(Agent owner,
ShapeDrawMode drawMode,
boolean isPublic,
double width,
java.awt.Paint color,
boolean drawStands,
double standsLevel,
MarkupSegment... segments) |
BulkConveyorBelt(Agent owner,
ShapeDrawMode drawMode,
boolean isPublic,
double width,
java.awt.Paint color,
MarkupSegment... segments)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addSegment(MarkupSegmentLine segment) |
boolean |
contains(double px,
double py)
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e. in the same system with the coordinates
of this shape, x and y)
|
boolean |
contains(double px,
double py,
double distance)
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e. in the same system with the coordinates
of this shape, x and y), using
the given tolerance
|
boolean |
containsSq(double px,
double py,
double squareDistance)
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e. in the same system with the coordinates
of this shape, x and y), using
the given tolerance
|
Point |
getEndPoint() |
Point |
getEndPoint(Point out) |
Position |
getEndPosition()
Returns the end position
|
Position |
getEndPosition(Position out) |
double |
getLineWidth()
Returns the width of the conveyor belt
|
Point |
getPointAtOffset(double offset,
LengthUnits units,
Point out)
Returns the point located on the markup element with the given
offset
distance calculated from start point. |
Point |
getPointAtOffset(double offset,
Point out)
Returns the point located on the markup element with the given
offset
distance calculated from start point. |
Position |
getPositionAtOffset(double offset,
LengthUnits units,
Position out) |
Position |
getPositionAtOffset(double offset,
Position out) |
MarkupSegment |
getSegment(int index) |
int |
getSegmentCount() |
double |
getStandsLevel()
Returns the base level Z-level to draw conveyor stands from.
|
Point |
getStartPoint() |
Point |
getStartPoint(Point out) |
Position |
getStartPosition()
Returns the start position
|
Position |
getStartPosition(Position out) |
boolean |
isDrawStands()
Returns
true if this conveyor is drawn with stands |
java.util.Iterator<MarkupSegment> |
iterator()
Creates and returns read-only iterator over segments
|
double |
length()
Returns the length of the markup element, calculated in 3D space.
|
double |
length(LengthUnits units)
Returns the length of the markup element, calculated in 3D space.
|
void |
setDrawStands(boolean drawStands)
Sets to draw stands for conveyor or not
|
void |
setLineWidth(double width)
Sets the width of the conveyor belt
|
void |
setStandsLevel(double standsLevel)
Set the base Z-level to draw conveyor stands from.
|
void |
startDrawing(double x,
double y,
double z)
Starts drawing (available for markup elements created with no-argument constructor)
|
void |
updateDynamicProperties(boolean publicOnly)
Updates dynamic properties of the shape in a given context.
|
getColor, getDataSource, getTexture, setColor, setColor, setDataSource
error, getDrawMode, getPresentable, getSpace, initialize, isClickHandled, onClick, setDrawMode, setOwner
executeUserAction, findSVGElement, getName, getSVGId, isVisible, resetSVGState, setVisible, updateSVGProperties
public BulkConveyorBelt()
@Deprecated public BulkConveyorBelt(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double width, java.awt.Paint color, MarkupSegment... segments)
public BulkConveyorBelt(Agent owner, ShapeDrawMode drawMode, boolean isPublic, double width, java.awt.Paint color, boolean drawStands, double standsLevel, MarkupSegment... segments)
public void setLineWidth(double width)
width
- new width of the conveyor beltpublic double getLineWidth()
public void setDrawStands(boolean drawStands)
drawStands
- true
to draw standssetStandsLevel(double)
public boolean isDrawStands()
true
if this conveyor is drawn with standsgetStandsLevel()
public void setStandsLevel(double standsLevel)
standsLevel
- the base level.#setDrawStands(boolean)}
public double getStandsLevel()
isDrawStands()
public void addSegment(MarkupSegmentLine segment)
public int getSegmentCount()
public MarkupSegment getSegment(int index)
public java.util.Iterator<MarkupSegment> iterator()
public Point getStartPoint()
public Point getEndPoint()
public Position getStartPosition()
public Position getEndPosition()
public final double length()
public final double length(LengthUnits units)
units
- the units of lengthpublic final Point getPointAtOffset(double offset, Point out)
offset
distance calculated from start point.offset
- offset, non-negative value, should be less or equal to the full length.out
- output object to write to, may be null
getPositionAtOffset(double, Position)
public final Point getPointAtOffset(double offset, LengthUnits units, Point out)
offset
distance calculated from start point.offset
- offset, non-negative value, should be less or equal to the full length.units
- the length unitsout
- output object to write to, may be null
getPositionAtOffset(double, Position)
public final Position getPositionAtOffset(double offset, LengthUnits units, Position out)
public boolean contains(double px, double py)
MarkupShape
contains
in class MarkupShape
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's containertrue
if the shape contains the point with the given
coordinatespublic boolean contains(double px, double py, double distance)
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's containerdistance
- the distance tolerance to determine
whether the given point lies on the markup element line or nottrue
if the shape contains the point with the given
coordinatespublic boolean containsSq(double px, double py, double squareDistance)
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's containersquareDistance
- the square of distance tolerance to determine
whether the given point lies on the markup element line or nottrue
if the shape contains the point with the given
coordinatespublic void startDrawing(double x, double y, double z)
x
- the x coordinate of the first pointy
- the y coordinate of the first pointz
- the z coordinate of the first pointpublic void updateDynamicProperties(boolean publicOnly)
AbstractMarkup
updateDynamicProperties
in class AbstractMarkup
publicOnly
- if true
, the shape is only updated if it is publicCopyright © AnyLogic North America, LLC. All Rights Reserved.