dwv.tool. draw

Classes

ArrowFactory
CircleFactory
EllipseFactory
FreeHandFactory
ProtractorFactory
RectangleFactory
RoiFactory
RulerFactory

Members

(static) debug

Debug flag.

(static) defaultArrowLabelText

Default draw label text.

(static) defaultCircleLabelText

Default draw label text.

(static) defaultEllipseLabelText

Default draw label text.

(static) defaultFreeHandLabelText

Default draw label text.

(static) defaultProtractorLabelText

Default draw label text.

(static) defaultRectangleLabelText

Default draw label text.

(static) defaultRoiLabelText

Default draw label text.

(static) defaultRulerLabelText

Default draw label text.

Methods

(static) getDefaultAnchor(x, y, id, style) → {object}

Get the default anchor shape.

Parameters:
NameTypeDescription
xnumber

The X position.

ynumber

The Y position.

idstring

The shape id.

styleobject

The application style.

Returns:

The default anchor shape.

Type: 
object

(static) getShadowCircle(circle, group) → {object}

Get the debug shadow.

Parameters:
NameTypeDescription
circledwv.math.Circle

The circle to shadow.

groupobject

The associated group.

Returns:

The shadow konva group.

Type: 
object

(static) getShadowEllipse(ellipse, group) → {object}

Get the debug shadow.

Parameters:
NameTypeDescription
ellipsedwv.math.Ellipse

The ellipse to shadow.

groupobject

The associated group.

Returns:

The shadow konva group.

Type: 
object

(static) getShadowRectangle(rectangle) → {object}

Get the debug shadow.

Parameters:
NameTypeDescription
rectangleobject

The rectangle to shadow.

Returns:

The shadow konva shape.

Type: 
object

(static) updateCircleQuantification(group, viewController)

Update the quantification of a Circle (as a static function to be used in update).

Parameters:
NameTypeDescription
groupobject

The group with the shape.

viewControllerobject

The associated view controller.

(static) updateEllipseQuantification(group, viewController)

Update the quantification of an Ellipse (as a static function to be used in update).

Parameters:
NameTypeDescription
groupobject

The group with the shape.

viewControllerobject

The associated view controller.

(static) updateRectangleQuantification(group, viewController)

Update the quantification of a Rectangle (as a static function to be used in update).

Parameters:
NameTypeDescription
groupobject

The group with the shape.

viewControllerobject

The associated view controller.