r3ianp
real/intact/r3ianp.h
r3ia
Polyline interactor class
r3Intact
R3CLID_INTACT
r3Ianp
R3CLID_IANP - 121
Points, PointCount, BufferSize, NoDraw, FreeHand, MaxCount, FinalCount, DrawClosed, AutoClose,
int R3RegisterIaNpClass(R3APP *app);
Points
Points
R3IANPA_Points
array of entered points
value = jsobj.GetPoints();
R3VECTOR* value;
R3GetAttrs(r3obj, R3IANPA_Points, &value, R3TAG_END);
PointCount
PointCount
R3IANPA_PointCount
Integer
R3INT
number of points entered
value = jsobj.GetPointCount();
R3INT value;
R3GetAttrs(r3obj, R3IANPA_PointCount, &value, R3TAG_END);
BufferSize
BufferSize
R3IANPA_BufferSize
Integer
R3INT
size of the current point buffer
value = jsobj.GetBufferSize();
R3INT value;
R3GetAttrs(r3obj, R3IANPA_BufferSize, &value, R3TAG_END);
NoDraw
NoDraw
R3IANPA_NoDraw
Boolean
R3BOOL
set true for disabling 'polygon' rendering during interaction
jsobj.SetNoDraw(value);
R3BOOL value = ...;
R3SetAttrs(r3obj, R3IANPA_NoDraw, value, R3TAG_END);
FreeHand
FreeHand
R3IANPA_FreeHand
Boolean
R3BOOL
if true buffers mouse moves and sends them as ENTER when mouse is released
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
MaxCount
R3IANPA_MaxCount
Integer
R3INT
maximum number of points
jsobj.SetMaxCount(value);
R3INT value = ...;
R3SetAttrs(r3obj, R3IANPA_MaxCount, value, R3TAG_END);
FinalCount
FinalCount
R3IANPA_FinalCount
Integer
R3INT
PointCount is reset by ACCEPT, use this if you need to know the number of points after the interactor is accepted
value = jsobj.GetFinalCount();
R3INT value;
R3GetAttrs(r3obj, R3IANPA_FinalCount, &value, R3TAG_END);
DrawClosed
DrawClosed
R3IANPA_DrawClosed
Boolean
R3BOOL
render polygon as a closed loop
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
AutoClose
R3IANPA_AutoClose
Boolean
R3BOOL
finish interaction if 1st and latest point overlap
jsobj.SetAutoClose(value);
R3BOOL value = ...;
R3SetAttrs(r3obj, R3IANPA_AutoClose, value, R3TAG_END);
r3appobj *