RedlineItem
- class Communicator.Markup.Redline.RedlineItem()
Base class for Redline Markup. It should not be used directly.
Constructors
Properties
Methods
Constructors
- RedlineItem.constructor(viewer)
- Arguments
viewer (
WebViewer()
) –
- Return type
Methods
draw
- RedlineItem.draw()
Called when the markup item should be redrawn on the screen. This most typically happens when the scene is rendered.
- Return type
void
getClassName
- RedlineItem.getClassName()
Gets the fully qualified class name for this markup item. E.g. “Communicator.Markup.Redline.RedlineCircle”
- Return type
string
- Returns
fully qualified class name
hit
hitWithTolerance
- RedlineItem.hitWithTolerance(point, pickTolerance)
Called when a hit test is performed on this markup item.
- Arguments
point (
Point2()
) – position in window where the hit test is being performed.pickTolerance (
number()
) – amount of tolerance allowed for a hit in pixels.
- Return type
boolean
- Returns
boolean value indicating whether this item was picked
onDeselect
- RedlineItem.onDeselect()
Called when this markup item is deselected by the system
- Return type
void