The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home ChartPack RChart Class TContourPlot Methods DrawToRelPix | |||||||||
See also: DrawTo, MoveToRelPix (ContourPlot) | |||||||||
DrawToRelPix |
|||||||||
The method DrawToRelPix comes in two overloaded versions. Version [1] draws a line from the current cursor position (CP, in pixel coordinates) to the point (CP+dx,CP+dy), while version [2] draws this line from the position [x,y]. The length and direction of the line to be drawn is specified by pixel coordinates of the chart window (dx and dy), thus providing a way to draw elements which are independent of the scaling of the chart. Please note that only lines drawn by the second version can be searched by FindNearestAnnoElem because the starting point [x,y] of the line is stored in the DataContainer.
|