------------------------------------------------------------------------------
| 27 | |
| 28 | //------------------------------------------------------------------------------ |
| 29 | vtkLegendScaleActor::vtkLegendScaleActor() |
| 30 | { |
| 31 | this->RightAxis->GetPositionCoordinate()->SetCoordinateSystemToViewport(); |
| 32 | this->RightAxis->GetPosition2Coordinate()->SetCoordinateSystemToViewport(); |
| 33 | this->RightAxis->GetPositionCoordinate()->SetReferenceCoordinate(nullptr); |
| 34 | this->RightAxis->SetFontFactor(0.6); |
| 35 | this->RightAxis->SetNumberOfLabels(5); |
| 36 | this->RightAxis->AdjustLabelsOff(); |
| 37 | |
| 38 | this->TopAxis->GetPositionCoordinate()->SetCoordinateSystemToViewport(); |
| 39 | this->TopAxis->GetPosition2Coordinate()->SetCoordinateSystemToViewport(); |
| 40 | this->TopAxis->GetPositionCoordinate()->SetReferenceCoordinate(nullptr); |
| 41 | this->TopAxis->SetFontFactor(0.6); |
| 42 | this->TopAxis->SetNumberOfLabels(5); |
| 43 | this->TopAxis->AdjustLabelsOff(); |
| 44 | |
| 45 | this->LeftAxis->GetPositionCoordinate()->SetCoordinateSystemToViewport(); |
| 46 | this->LeftAxis->GetPosition2Coordinate()->SetCoordinateSystemToViewport(); |
| 47 | this->LeftAxis->GetPositionCoordinate()->SetReferenceCoordinate(nullptr); |
| 48 | this->LeftAxis->SetFontFactor(0.6); |
| 49 | this->LeftAxis->SetNumberOfLabels(5); |
| 50 | this->LeftAxis->AdjustLabelsOff(); |
| 51 | |
| 52 | this->BottomAxis->GetPositionCoordinate()->SetCoordinateSystemToViewport(); |
| 53 | this->BottomAxis->GetPosition2Coordinate()->SetCoordinateSystemToViewport(); |
| 54 | this->BottomAxis->GetPositionCoordinate()->SetReferenceCoordinate(nullptr); |
| 55 | this->BottomAxis->SetFontFactor(0.6); |
| 56 | this->BottomAxis->SetNumberOfLabels(5); |
| 57 | this->BottomAxis->AdjustLabelsOff(); |
| 58 | |
| 59 | this->Legend->SetPoints(this->LegendPoints); |
| 60 | this->LegendMapper->SetInputData(this->Legend); |
| 61 | this->LegendActor->SetMapper(this->LegendMapper); |
| 62 | |
| 63 | this->GridActor->SetMapper(this->GridMapper); |
| 64 | |
| 65 | // Create the legend |
| 66 | vtkIdType pts[4]; |
| 67 | this->LegendPoints->SetNumberOfPoints(10); |
| 68 | vtkNew<vtkCellArray> legendPolys; |
| 69 | legendPolys->AllocateEstimate(4, 4); |
| 70 | pts[0] = 0; |
| 71 | pts[1] = 1; |
| 72 | pts[2] = 6; |
| 73 | pts[3] = 5; |
| 74 | legendPolys->InsertNextCell(4, pts); |
| 75 | pts[0] = 1; |
| 76 | pts[1] = 2; |
| 77 | pts[2] = 7; |
| 78 | pts[3] = 6; |
| 79 | legendPolys->InsertNextCell(4, pts); |
| 80 | pts[0] = 2; |
| 81 | pts[1] = 3; |
| 82 | pts[2] = 8; |
| 83 | pts[3] = 7; |
| 84 | legendPolys->InsertNextCell(4, pts); |
| 85 | pts[0] = 3; |
| 86 | pts[1] = 4; |
nothing calls this directly
no test coverage detected