------------------------------------------------------------------------------
| 27 | vtkCxxSetSmartPointerMacro(vtkCubeAxesActor, Camera, vtkCamera); |
| 28 | //------------------------------------------------------------------------------ |
| 29 | vtkCubeAxesActor::vtkCubeAxesActor() |
| 30 | { |
| 31 | this->Bounds[0] = -1.0; |
| 32 | this->Bounds[1] = 1.0; |
| 33 | this->Bounds[2] = -1.0; |
| 34 | this->Bounds[3] = 1.0; |
| 35 | this->Bounds[4] = -1.0; |
| 36 | this->Bounds[5] = 1.0; |
| 37 | |
| 38 | // Title and label text properties |
| 39 | for (int i = 0; i < 3; i++) |
| 40 | { |
| 41 | this->TitleTextProperty[i]->SetColor(1., 1., 1.); |
| 42 | this->TitleTextProperty[i]->SetFontFamilyToArial(); |
| 43 | this->TitleTextProperty[i]->SetFontSize(18); |
| 44 | this->TitleTextProperty[i]->SetVerticalJustificationToCentered(); |
| 45 | this->TitleTextProperty[i]->SetJustificationToCentered(); |
| 46 | |
| 47 | this->LabelTextProperty[i]->SetColor(1., 1., 1.); |
| 48 | this->LabelTextProperty[i]->SetFontFamilyToArial(); |
| 49 | this->LabelTextProperty[i]->SetFontSize(14); |
| 50 | this->LabelTextProperty[i]->SetVerticalJustificationToBottom(); |
| 51 | this->LabelTextProperty[i]->SetJustificationToLeft(); |
| 52 | } |
| 53 | |
| 54 | // Inner grid lines |
| 55 | this->XAxesInnerGridlinesProperty->SetColor(.3, .6, .1); |
| 56 | this->YAxesInnerGridlinesProperty->SetColor(.3, .6, .1); |
| 57 | this->ZAxesInnerGridlinesProperty->SetColor(.3, .6, .1); |
| 58 | |
| 59 | this->XAxesGridpolysProperty->SetOpacity(.6); // Default grid polys opacity |
| 60 | this->YAxesGridpolysProperty->SetOpacity(.6); // Default grid polys opacity |
| 61 | this->ZAxesGridpolysProperty->SetOpacity(.6); // Default grid polys opacity |
| 62 | // this->XAxesGridpolysProperty->LightingOff(); // To be able to see the polys from high |
| 63 | // camera angles this->YAxesGridpolysProperty->LightingOff(); // To be able to see the polys |
| 64 | // from high camera angles this->ZAxesGridpolysProperty->LightingOff(); // To be able to see |
| 65 | // the polys from high camera angles |
| 66 | |
| 67 | for (int i = 0; i < NUMBER_OF_ALIGNED_AXIS; i++) |
| 68 | { |
| 69 | this->XAxes[i] = vtkAxisActor::New(); |
| 70 | this->XAxes[i]->SetTickVisibility(true); |
| 71 | this->XAxes[i]->SetMinorTicksVisible(true); |
| 72 | this->XAxes[i]->SetLabelVisibility(true); |
| 73 | this->XAxes[i]->SetTitleVisibility(true); |
| 74 | this->XAxes[i]->SetAxisTypeToX(); |
| 75 | this->XAxes[i]->SetAxisPosition(i); |
| 76 | this->XAxes[i]->SetAxisLinesProperty(this->XAxesLinesProperty); |
| 77 | this->XAxes[i]->SetGridlinesProperty(this->XAxesGridlinesProperty); |
| 78 | this->XAxes[i]->SetInnerGridlinesProperty(this->XAxesInnerGridlinesProperty); |
| 79 | this->XAxes[i]->SetGridpolysProperty(this->XAxesGridpolysProperty); |
| 80 | this->XAxes[i]->SetLabelOffset(this->LabelOffset); |
| 81 | this->XAxes[i]->SetTitleOffset(this->TitleOffset); |
| 82 | this->XAxes[i]->SetScreenSize(this->ScreenSize); |
| 83 | |
| 84 | this->YAxes[i] = vtkAxisActor::New(); |
| 85 | this->YAxes[i]->SetTickVisibility(true); |
| 86 | this->YAxes[i]->SetMinorTicksVisible(true); |
nothing calls this directly
no test coverage detected