------------------------------------------------------------------------------ Instantiate object
| 70 | //------------------------------------------------------------------------------ |
| 71 | // Instantiate object |
| 72 | vtkSpiderPlotActor::vtkSpiderPlotActor() |
| 73 | { |
| 74 | // Actor2D positions |
| 75 | this->PositionCoordinate->SetCoordinateSystemToNormalizedViewport(); |
| 76 | this->PositionCoordinate->SetValue(0.1, 0.1); |
| 77 | this->Position2Coordinate->SetCoordinateSystemToNormalizedViewport(); |
| 78 | this->Position2Coordinate->SetValue(0.9, 0.8); |
| 79 | this->Position2Coordinate->SetReferenceCoordinate(nullptr); |
| 80 | |
| 81 | this->ConnectionHolder = vtkSpiderPlotActorConnection::New(); |
| 82 | |
| 83 | this->IndependentVariables = VTK_IV_COLUMN; |
| 84 | this->TitleVisibility = 1; |
| 85 | this->Title = nullptr; |
| 86 | this->Labels = new vtkAxisLabelArray; |
| 87 | this->Ranges = new vtkAxisRanges; |
| 88 | this->LabelMappers = nullptr; |
| 89 | this->LabelActors = nullptr; |
| 90 | this->LabelTextProperty = vtkTextProperty::New(); |
| 91 | this->LabelTextProperty->SetFontSize(12); |
| 92 | this->LabelTextProperty->SetBold(1); |
| 93 | this->LabelTextProperty->SetItalic(1); |
| 94 | this->LabelTextProperty->SetShadow(0); |
| 95 | this->LabelTextProperty->SetFontFamilyToArial(); |
| 96 | this->TitleTextProperty = vtkTextProperty::New(); |
| 97 | this->TitleTextProperty->ShallowCopy(this->LabelTextProperty); |
| 98 | this->TitleTextProperty->SetFontSize(24); |
| 99 | this->TitleTextProperty->SetBold(1); |
| 100 | this->TitleTextProperty->SetItalic(0); |
| 101 | this->TitleTextProperty->SetShadow(1); |
| 102 | this->TitleTextProperty->SetFontFamilyToArial(); |
| 103 | this->LabelVisibility = 1; |
| 104 | this->NumberOfRings = 2; |
| 105 | |
| 106 | this->LegendVisibility = 1; |
| 107 | |
| 108 | this->LegendActor->GetPositionCoordinate()->SetCoordinateSystemToViewport(); |
| 109 | this->LegendActor->GetPosition2Coordinate()->SetCoordinateSystemToViewport(); |
| 110 | this->LegendActor->GetPosition2Coordinate()->SetReferenceCoordinate(nullptr); |
| 111 | this->LegendActor->BorderOff(); |
| 112 | this->LegendActor->SetNumberOfEntries(100); // initial allocation |
| 113 | this->LegendActor->SetPadding(2); |
| 114 | this->LegendActor->ScalarVisibilityOff(); |
| 115 | this->GlyphSource = vtkGlyphSource2D::New(); |
| 116 | this->GlyphSource->SetGlyphTypeToNone(); |
| 117 | this->GlyphSource->DashOn(); |
| 118 | this->GlyphSource->FilledOff(); |
| 119 | this->GlyphSource->Update(); |
| 120 | |
| 121 | this->PlotData = vtkPolyData::New(); |
| 122 | this->PlotMapper = vtkPolyDataMapper2D::New(); |
| 123 | this->PlotMapper->SetInputData(this->PlotData); |
| 124 | this->PlotActor = vtkActor2D::New(); |
| 125 | this->PlotActor->SetMapper(this->PlotMapper); |
| 126 | |
| 127 | this->TitleMapper = vtkTextMapper::New(); |
| 128 | this->TitleActor = vtkActor2D::New(); |
| 129 | this->TitleActor->SetMapper(this->TitleMapper); |
nothing calls this directly
no test coverage detected