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

Method SetPlotGlyphType

Rendering/Annotation/vtkXYPlotActor.cxx:2923–2934  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Glyph type \li 0 : nothing \li 1 : vertex - not visible \li 2 : line \li 3 : cross \li 4 : thick cross \li 5 : triangle \li 6 : square \li 7 : circle \li 8 : diamond \li 9 : arrow \li 10 : thick arrow \li 11 : curved arrow \li 12 : arrow \li 13 : nothing \li 14 : nothing \li 15 : 2 + fillOff \li 16 : nothing \li 17 : 4

Source from the content-addressed store, hash-verified

2921// \li 24 : 11 + fillOff
2922// \li 25 : 12 + fillOff*
2923void vtkXYPlotActor::SetPlotGlyphType(int curve, int i)
2924{
2925 static const int good_glyph_type[26] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0, 0, 2, 0, 4,
2926 5, 6, 7, 8, 0, 10, 11, 12 };
2927 vtkSmartPointer<vtkGlyphSource2D> source = vtkSmartPointer<vtkGlyphSource2D>::New();
2928 source->SetGlyphType(good_glyph_type[i]);
2929 source->SetFilled((i > 12) ? 0 : 1);
2930 source->Update();
2931
2932 vtkPolyData* glyph = vtkPolyData::SafeDownCast(source->GetOutputDataObject(0));
2933 this->SetPlotSymbol(curve, glyph);
2934}
2935
2936//------------------------------------------------------------------------------
2937void vtkXYPlotActor::SetXAxisColor(double r, double g, double b)

Callers

nothing calls this directly

Calls 5

SetPlotSymbolMethod · 0.95
NewFunction · 0.50
SetGlyphTypeMethod · 0.45
UpdateMethod · 0.45
GetOutputDataObjectMethod · 0.45

Tested by

no test coverage detected