GDDM-GKS V1R1 Programming Guide and Reference
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


Polymarker

GDDM-GKS V1R1 Programming Guide and Reference
SC33-0334-00



Polymarkers are symbols such as asterisks (*) or crosses (+) that you can use to mark any point on the display surface. You can set the following polymarker attributes:

  • Polymarker type (Set marker type (GSMK))
    
    
  • Polymarker color index (Set polymarker color index (GSPMCI))
    
    
  • Polymarker size scale factor (Set marker size scale factor (GSMKSC)).
    
    

You choose the polymarker color from among the predefined colors your display device supports or from color representations you define in the Set color representation (GSCR) function. You can find out the number of marker types and marker sizes your device supports by calling Inquire polymarker facilities (GQPMF). If the number of marker sizes returned is 0, the device supports a continuous range of marker sizes.

GKS supports five polymarker types:


   PICTURE 4         

This example marks the points (65.0,50.0) and (25.0,45.0) on the previous example by putting the points in arrays and calling the Polymarker (GPM) output function to mark the points.


          X array = (65.0,25.0)
          Y array = (50.0,45.0)
          SET MARKER TYPE (3)
          POLYMARKER (2, X array, Y array)

This sequence produces the following output:


   PICTURE 5         

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012