Polar Tracking Home

Setting polar tracking on/off:

lcPropPutBool ( hLcWnd, LC_PROP_WND_PTRACK, true );
lcPropPutBool ( hLcWnd, LC_PROP_WND_PTRACK, false );

Setting base point for polar tracking:

lcWndSetBasePoint (hLcWnd, true, X, Y );

LiteCAD window properties used for polar tracking:

Property Type Access Meaning
LC_PROP_WND_PTRACK bool RW Enable Polar tracking
LC_PROP_WND_PTRACK_ANGLE float RW Step angle
LC_PROP_WND_PTRACK_DIST bool
float
RW Use distance step along polar vector
Value of distance step
LC_PROP_WND_BASEPT bool R Has base point
LC_PROP_WND_BASEX float R X coordinate of base point
LC_PROP_WND_BASEY float R X coordinate of base point


Code sample:
  lcPropPutBool( hLcWnd, LC_PROP_WND_PTRACK, true );
  lcPropPutBool( hLcWnd, LC_PROP_WND_PTRACK_DIST, true );
  lcPropPutFloat( hLcWnd, LC_PROP_WND_PTRACK_DIST, 5.0 );
  lcPropPutFloat( hLcWnd, LC_PROP_WND_PTRACK_ANGLE, 22.5*LC_DEG_TO_RAD );