MCPcopy Create free account
hub / github.com/Kitware/VTK / DrawMarkers

Method DrawMarkers

IO/ExportPDF/vtkPDFContextDevice2D.cxx:910–947  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

908
909//------------------------------------------------------------------------------
910void 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//------------------------------------------------------------------------------
950void vtkPDFContextDevice2D::DrawQuad(float* p, int n)

Callers 1

PaintMethod · 0.45

Calls 8

PushGraphicsStateMethod · 0.95
DrawCrossMarkersMethod · 0.95
DrawPlusMarkersMethod · 0.95
DrawSquareMarkersMethod · 0.95
DrawCircleMarkersMethod · 0.95
DrawDiamondMarkersMethod · 0.95
PopGraphicsStateMethod · 0.95
assertFunction · 0.50

Tested by 1

PaintMethod · 0.36