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

Method SetCommonAxisAttributes

Rendering/Annotation/vtkPolarAxesActor.cxx:882–912  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

880
881//------------------------------------------------------------------------------
882void vtkPolarAxesActor::SetCommonAxisAttributes(vtkAxisActor* axis)
883{
884 vtkProperty* prop = this->GetProperty();
885 prop->SetAmbient(1.0);
886 prop->SetDiffuse(0.0);
887 axis->SetProperty(prop);
888
889 axis->SetScreenSize(this->ScreenSize);
890
891 // Common space and range attributes
892 axis->SetCamera(this->Camera);
893 axis->SetBounds(this->Bounds);
894
895 // User defined range
896 axis->SetRange(this->Range[0], this->Range[1]);
897
898 // Axis scale type
899 axis->SetLog(this->Log);
900
901 // Major and minor ticks draw begins at Range[0]
902 axis->SetMajorRangeStart(axis->GetRange()[0]);
903 axis->SetMinorRangeStart(axis->GetRange()[0]);
904
905 // Set polar axis ticks
906 axis->SetTickVisibility(this->AxisTickVisibility && this->PolarTickVisibility);
907
908 // Set polar axis minor ticks
909 axis->SetMinorTicksVisible(this->AxisMinorTickVisibility && this->PolarTickVisibility);
910
911 axis->SetTickLocation(this->TickLocation);
912}
913
914void vtkPolarAxesActor::SetPolarAxisAttributes(vtkAxisActor* axis)
915{

Callers 2

BuildAxesMethod · 0.95

Calls 9

SetScreenSizeMethod · 0.80
GetPropertyMethod · 0.45
SetAmbientMethod · 0.45
SetDiffuseMethod · 0.45
SetPropertyMethod · 0.45
SetCameraMethod · 0.45
SetBoundsMethod · 0.45
SetRangeMethod · 0.45
GetRangeMethod · 0.45

Tested by

no test coverage detected