RasterScan#
- class QPolargraph.patterns.RasterScan.RasterScan(*args, width=0.6, height=0.6, dx=0.0, dy=0.1, step=5, polargraph, **kwargs)[source]#
Bases:
QScanPatternRow-by-row raster scan pattern.
Overrides
QScanPattern.vertices()to produce a zigzag path across the scan rectangle: odd columns scan top-to-bottom, even columns scan bottom-to-top.- vertices()[source]#
Return zigzag raster waypoints across the scan rectangle.
- Return type:
- Returns:
numpy.ndarray –
(nvertices, 2)array of(x, y)waypoints [m].
- trajectory()[source]#
Return the actual raster path as a
(2, npts)array for plotting.Because the polargraph geometry is nonlinear, moving between two Cartesian waypoints traces a curve rather than a straight line. This method samples each segment at
_TRAJECTORY_PTSpoints in step-index space and converts them back to Cartesian coordinates, giving an accurate picture of the true scan path.- Return type:
- Returns:
numpy.ndarray –
(2, npts)array of(x, y)coordinates [m].