------------------------------------------------------------------------------
| 30 | |
| 31 | //------------------------------------------------------------------------------ |
| 32 | vtkAxesActor::vtkAxesActor() |
| 33 | { |
| 34 | this->AxisLabels = 1; |
| 35 | |
| 36 | this->XAxisLabelText = nullptr; |
| 37 | this->YAxisLabelText = nullptr; |
| 38 | this->ZAxisLabelText = nullptr; |
| 39 | |
| 40 | this->SetXAxisLabelText("X"); |
| 41 | this->SetYAxisLabelText("Y"); |
| 42 | this->SetZAxisLabelText("Z"); |
| 43 | |
| 44 | this->XAxisShaft = vtkActor::New(); |
| 45 | this->XAxisShaft->GetProperty()->SetColor(1, 0, 0); |
| 46 | this->YAxisShaft = vtkActor::New(); |
| 47 | this->YAxisShaft->GetProperty()->SetColor(0, 1, 0); |
| 48 | this->ZAxisShaft = vtkActor::New(); |
| 49 | this->ZAxisShaft->GetProperty()->SetColor(0, 0, 1); |
| 50 | |
| 51 | this->XAxisTip = vtkActor::New(); |
| 52 | this->XAxisTip->GetProperty()->SetColor(1, 0, 0); |
| 53 | this->YAxisTip = vtkActor::New(); |
| 54 | this->YAxisTip->GetProperty()->SetColor(0, 1, 0); |
| 55 | this->ZAxisTip = vtkActor::New(); |
| 56 | this->ZAxisTip->GetProperty()->SetColor(0, 0, 1); |
| 57 | |
| 58 | this->CylinderSource = vtkCylinderSource::New(); |
| 59 | this->CylinderSource->SetHeight(1.0); |
| 60 | |
| 61 | this->LineSource = vtkLineSource::New(); |
| 62 | this->LineSource->SetPoint1(0.0, 0.0, 0.0); |
| 63 | this->LineSource->SetPoint2(0.0, 1.0, 0.0); |
| 64 | |
| 65 | this->ConeSource = vtkConeSource::New(); |
| 66 | this->ConeSource->SetDirection(0, 1, 0); |
| 67 | this->ConeSource->SetHeight(1.0); |
| 68 | |
| 69 | this->SphereSource = vtkSphereSource::New(); |
| 70 | |
| 71 | vtkPolyDataMapper* shaftMapper = vtkPolyDataMapper::New(); |
| 72 | |
| 73 | this->XAxisShaft->SetMapper(shaftMapper); |
| 74 | this->YAxisShaft->SetMapper(shaftMapper); |
| 75 | this->ZAxisShaft->SetMapper(shaftMapper); |
| 76 | |
| 77 | shaftMapper->Delete(); |
| 78 | |
| 79 | vtkPolyDataMapper* tipMapper = vtkPolyDataMapper::New(); |
| 80 | |
| 81 | this->XAxisTip->SetMapper(tipMapper); |
| 82 | this->YAxisTip->SetMapper(tipMapper); |
| 83 | this->ZAxisTip->SetMapper(tipMapper); |
| 84 | |
| 85 | tipMapper->Delete(); |
| 86 | |
| 87 | this->TotalLength[0] = 1.0; |
| 88 | this->TotalLength[1] = 1.0; |
| 89 | this->TotalLength[2] = 1.0; |
nothing calls this directly
no test coverage detected