r3ianp

r3iaangle
r3iaanglemeasure
r3iamaver
r3iacam
r3iacarriage
r3iacobend
r3iacog
r3iacomove
r3iacorotate
r3iadema
r3iafan
r3iafoot
r3iainvkin
r3ialookat
r3ialse
r3ialss
r3ianurb
p3iacur
p3ialine
r3iapathle
r3iaparticleaddpoints
r3iapdisplacer
r3iaradialdeformer
r3iarect
r3iacuma
r3iafileinst
r3iagmpack
r3iagrd
r3ialatt
r3iapmap
r3iapyma
r3iarec2
p3iarect
s3iaroofline
r3iarttr
r3iasdsbase
r3iasube
r3iasub2
r3iasub3
r3iasumv
r3iasued
r3iasutr
r3iadupledge
r3iafhknife
r3iaskel
r3iaspin
r3iaspiral
r3iasuap
r3iasubd
r3iatran
r3iabend
r3iaext
r3iamirr
r3iamove
r3ianoise
r3iarot
r3iascal
r3iaskew
r3iawall

r3ianp

Class

real/intact/r3ianp.h

Library

r3ia

Description:

Polyline interactor class

See Also

real/intact/r3intact.h

See Also

oops/r3vect.h

Super Class

r3Intact

R3CLID_INTACT

JavaScript

r3Ianp

Class Identifier

R3CLID_IANP - 121

Methods

Attributes

Points, PointCount, BufferSize, NoDraw, FreeHand, MaxCount, FinalCount, DrawClosed, AutoClose,

Registration

int R3RegisterIaNpClass(R3APP *app);

Points

Attribute

Points

Identifier

R3IANPA_Points

Type

r3Vect

Description

array of entered points

Syntax


value = jsobj.GetPoints();


R3VECTOR* value;
R3GetAttrs(r3obj, R3IANPA_Points, &value, R3TAG_END);

PointCount

Attribute

PointCount

Identifier

R3IANPA_PointCount

JavaScript type

Integer

C type

R3INT

Description

number of points entered

Syntax


value = jsobj.GetPointCount();


R3INT value;
R3GetAttrs(r3obj, R3IANPA_PointCount, &value, R3TAG_END);

BufferSize

Attribute

BufferSize

Identifier

R3IANPA_BufferSize

JavaScript type

Integer

C type

R3INT

Description

size of the current point buffer

Syntax


value = jsobj.GetBufferSize();


R3INT value;
R3GetAttrs(r3obj, R3IANPA_BufferSize, &value, R3TAG_END);

NoDraw

Attribute

NoDraw

Identifier

R3IANPA_NoDraw

JavaScript type

Boolean

C type

R3BOOL

Description

set true for disabling 'polygon' rendering during interaction

Syntax


jsobj.SetNoDraw(value);


R3BOOL value = ...;
R3SetAttrs(r3obj, R3IANPA_NoDraw, value, R3TAG_END);

FreeHand

Attribute

FreeHand

Identifier

R3IANPA_FreeHand

JavaScript type

Boolean

C type

R3BOOL

Description

if true buffers mouse moves and sends them as ENTER when mouse is released

Syntax


jsobj.SetFreeHand(value);
value = jsobj.GetFreeHand();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3IANPA_FreeHand, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3IANPA_FreeHand, &value, R3TAG_END);

MaxCount

Attribute

MaxCount

Identifier

R3IANPA_MaxCount

JavaScript type

Integer

C type

R3INT

Description

maximum number of points

Syntax


jsobj.SetMaxCount(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3IANPA_MaxCount, value, R3TAG_END);

FinalCount

Attribute

FinalCount

Identifier

R3IANPA_FinalCount

JavaScript type

Integer

C type

R3INT

Description

PointCount is reset by ACCEPT, use this if you need to know the number of points after the interactor is accepted

Syntax


value = jsobj.GetFinalCount();


R3INT value;
R3GetAttrs(r3obj, R3IANPA_FinalCount, &value, R3TAG_END);

DrawClosed

Attribute

DrawClosed

Identifier

R3IANPA_DrawClosed

JavaScript type

Boolean

C type

R3BOOL

Description

render polygon as a closed loop

Syntax


jsobj.SetDrawClosed(value);
value = jsobj.GetDrawClosed();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3IANPA_DrawClosed, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3IANPA_DrawClosed, &value, R3TAG_END);

AutoClose

Attribute

AutoClose

Identifier

R3IANPA_AutoClose

JavaScript type

Boolean

C type

R3BOOL

Description

finish interaction if 1st and latest point overlap

Syntax


jsobj.SetAutoClose(value);


R3BOOL value = ...;
R3SetAttrs(r3obj, R3IANPA_AutoClose, value, R3TAG_END);


r3appobj *