Class: PathSegCurve

olympe.ui.vectorial. PathSegCurve

Curved line path segment


new PathSegCurve( [position] [, control1] [, control2])

Parameters:
Name Type Argument Description
position olympe.df.PVector2 <optional>
control1 olympe.df.PVector2 <optional>
control2 olympe.df.PVector2 <optional>

Extends

Methods


getPosition()

Gets the position of the path segment

Inherited From:
Overrides:
Returns:
Type
olympe.df.PVector2

<protected> getUIProxyPathCurve()

Get the UI proxy object.

Returns:
Type
olympe.uiapi.vectorial.PathSegCurve

getUIProxyPathSegment()

Get the UI proxy object. This method needs to be public for the Path element to be able to access it.

Inherited From:
Overrides:
Returns:
Type
olympe.uiapi.vectorial.PathSeg

<protected> getUIProxySvgElement()

Inherited From:
Overrides:
Returns:
Type
olympe.uiapi.vectorial.SvgElement

isHidden()

Inherited From:
Overrides:
Returns:
Type
olympe.df.POBoolean

setControl1(position)

Sets the position of the first path control point

Parameters:
Name Type Description
position olympe.df.PVector2 | olympe.df.Vector2

The position of the path segment

Returns:
Type
olympe.ui.vectorial.PathSegCurve

setControl2(position)

Sets the position of the second path control point

Parameters:
Name Type Description
position olympe.df.PVector2 | olympe.df.Vector2

The position of the path segment

Returns:
Type
olympe.ui.vectorial.PathSegCurve

setHidden(hidden)

Parameters:
Name Type Description
hidden olympe.df.OBoolean | boolean | olympe.df.Proxy | olympe.df.Node

True if content must be hidden, false otherwise

Inherited From:
Overrides:
Returns:
Type
olympe.ui.vectorial.SvgElement

setIgnoreUserInteraction( [ignore])

Disables mouse events for this element. However, mouse events will target its descendants unless they are manually set to also ignore user interactions.

Parameters:
Name Type Argument Default Description
ignore boolean <optional>
false

ignore If true, this element is never the target of mouse events (but not its descendants).

Inherited From:
Overrides:

setPosition(position)

Sets the position of the path segment

Parameters:
Name Type Description
position olympe.df.PVector2 | olympe.df.Vector2

The position of the path segment

Inherited From:
Overrides:
Returns:
Type
olympe.ui.vectorial.PathSeg