------------------------------------------------------------------------------
| 908 | |
| 909 | //------------------------------------------------------------------------------ |
| 910 | void vtkPDFContextDevice2D::DrawMarkers( |
| 911 | int shape, bool highlight, float* points, int n, unsigned char* colors, int nc_comps) |
| 912 | { |
| 913 | assert(points); |
| 914 | assert(n > 0); |
| 915 | assert(nc_comps == 0 || colors); |
| 916 | |
| 917 | this->PushGraphicsState(); |
| 918 | |
| 919 | switch (shape) |
| 920 | { |
| 921 | case VTK_MARKER_CROSS: |
| 922 | this->DrawCrossMarkers(highlight, points, n, colors, nc_comps); |
| 923 | break; |
| 924 | |
| 925 | default: |
| 926 | // default is here for consistency with old impl -- defaults to plus for |
| 927 | // unrecognized shapes. |
| 928 | [[fallthrough]]; |
| 929 | case VTK_MARKER_PLUS: |
| 930 | this->DrawPlusMarkers(highlight, points, n, colors, nc_comps); |
| 931 | break; |
| 932 | |
| 933 | case VTK_MARKER_SQUARE: |
| 934 | this->DrawSquareMarkers(highlight, points, n, colors, nc_comps); |
| 935 | break; |
| 936 | |
| 937 | case VTK_MARKER_CIRCLE: |
| 938 | this->DrawCircleMarkers(highlight, points, n, colors, nc_comps); |
| 939 | break; |
| 940 | |
| 941 | case VTK_MARKER_DIAMOND: |
| 942 | this->DrawDiamondMarkers(highlight, points, n, colors, nc_comps); |
| 943 | break; |
| 944 | } |
| 945 | |
| 946 | this->PopGraphicsState(); |
| 947 | } |
| 948 | |
| 949 | //------------------------------------------------------------------------------ |
| 950 | void vtkPDFContextDevice2D::DrawQuad(float* p, int n) |