------------------------------------------------------------------------------
| 30 | |
| 31 | //------------------------------------------------------------------------------ |
| 32 | vtkLegendBoxActor::vtkLegendBoxActor() |
| 33 | { |
| 34 | // Positioning information |
| 35 | this->PositionCoordinate->SetCoordinateSystemToNormalizedViewport(); |
| 36 | this->PositionCoordinate->SetValue(0.75, 0.75); |
| 37 | |
| 38 | this->Position2Coordinate->SetValue(0.2, 0.2); |
| 39 | |
| 40 | this->LockBorder = 0; |
| 41 | this->ScalarVisibility = 1; |
| 42 | |
| 43 | // Control font properties |
| 44 | this->EntryTextProperty = vtkTextProperty::New(); |
| 45 | this->EntryTextProperty->SetBold(0); |
| 46 | this->EntryTextProperty->SetItalic(0); |
| 47 | this->EntryTextProperty->SetShadow(0); |
| 48 | this->EntryTextProperty->SetFontFamily(VTK_ARIAL); |
| 49 | this->EntryTextProperty->SetJustification(VTK_TEXT_LEFT); |
| 50 | this->EntryTextProperty->SetVerticalJustification(VTK_TEXT_CENTERED); |
| 51 | |
| 52 | this->Border = 1; |
| 53 | this->Box = 0; |
| 54 | this->Padding = 3; |
| 55 | |
| 56 | // Symbols and text strings |
| 57 | this->NumberOfEntries = 0; |
| 58 | this->Size = 0; |
| 59 | this->Colors = nullptr; |
| 60 | this->Symbol = nullptr; |
| 61 | this->Transform = nullptr; |
| 62 | this->SymbolTransform = nullptr; |
| 63 | this->SymbolMapper = nullptr; |
| 64 | this->SymbolActor = nullptr; |
| 65 | this->TextMapper = nullptr; |
| 66 | this->TextActor = nullptr; |
| 67 | |
| 68 | this->Icon = nullptr; |
| 69 | this->IconActor = nullptr; |
| 70 | this->IconMapper = nullptr; |
| 71 | this->IconTransformFilter = nullptr; |
| 72 | this->IconTransform = nullptr; |
| 73 | this->IconImage = nullptr; |
| 74 | |
| 75 | // Construct the border |
| 76 | this->BorderPolyData = vtkPolyData::New(); |
| 77 | vtkPoints* points = vtkPoints::New(); |
| 78 | points->SetNumberOfPoints(4); |
| 79 | this->BorderPolyData->SetPoints(points); |
| 80 | points->Delete(); |
| 81 | vtkCellArray* lines = vtkCellArray::New(); |
| 82 | lines->InsertNextCell(5); // points will be updated later |
| 83 | lines->InsertCellPoint(0); |
| 84 | lines->InsertCellPoint(1); |
| 85 | lines->InsertCellPoint(2); |
| 86 | lines->InsertCellPoint(3); |
| 87 | lines->InsertCellPoint(0); |
| 88 | this->BorderPolyData->SetLines(lines); |
| 89 | lines->Delete(); |
nothing calls this directly
no test coverage detected