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

Method SetXLabelFormat

Rendering/Annotation/vtkXYPlotActor.cxx:2728–2755  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2726
2727//------------------------------------------------------------------------------
2728void vtkXYPlotActor::SetXLabelFormat(const char* _arg)
2729{
2730 if (this->XLabelFormat == nullptr && _arg == nullptr)
2731 {
2732 return;
2733 }
2734
2735 if (this->XLabelFormat && _arg && (!strcmp(this->XLabelFormat, _arg)))
2736 {
2737 return;
2738 }
2739
2740 delete[] this->XLabelFormat;
2741
2742 if (_arg)
2743 {
2744 this->XLabelFormat = new char[strlen(_arg) + 1];
2745 strcpy(this->XLabelFormat, _arg);
2746 }
2747 else
2748 {
2749 this->XLabelFormat = nullptr;
2750 }
2751
2752 this->XAxis->SetLabelFormat(this->XLabelFormat);
2753
2754 this->Modified();
2755}
2756
2757//------------------------------------------------------------------------------
2758void vtkXYPlotActor::SetYLabelFormat(const char* _arg)

Callers 15

~vtkXYPlotActorMethod · 0.95
SetLabelFormatMethod · 0.95
AdjustRangeMethod · 0.45
cubeAxes3.pyFile · 0.45
cubeAxes2.pyFile · 0.45
TestCubeAxesInnerGridAllFunction · 0.45

Calls 2

SetLabelFormatMethod · 0.45
ModifiedMethod · 0.45

Tested by 15

TestCubeAxesInnerGridAllFunction · 0.36
TestCubeAxesWithXLinesFunction · 0.36
TestCubeAxesWithZLinesFunction · 0.36
TestCubeAxesStickyFunction · 0.36