------------------------------------------------------------------------------
| 880 | |
| 881 | //------------------------------------------------------------------------------ |
| 882 | void 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 | |
| 914 | void vtkPolarAxesActor::SetPolarAxisAttributes(vtkAxisActor* axis) |
| 915 | { |
no test coverage detected