MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkParallelCoordinatesView

Method vtkParallelCoordinatesView

Views/Infovis/vtkParallelCoordinatesView.cxx:42–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40//------------------------------------------------------------------------------
41
42vtkParallelCoordinatesView::vtkParallelCoordinatesView()
43{
44 vtkParallelCoordinatesInteractorStyle* istyle = vtkParallelCoordinatesInteractorStyle::New();
45 this->SetInteractorStyle(istyle);
46 istyle->Delete();
47
48 this->ReuseSingleRepresentationOn();
49
50 istyle->AddObserver(vtkCommand::StartInteractionEvent, this->GetObserver());
51 istyle->AddObserver(vtkCommand::InteractionEvent, this->GetObserver());
52 istyle->AddObserver(vtkCommand::EndInteractionEvent, this->GetObserver());
53 istyle->AddObserver(vtkCommand::UpdateEvent, this->GetObserver());
54
55 this->BrushData = vtkSmartPointer<vtkPolyData>::New();
56 this->BrushMapper = vtkSmartPointer<vtkPolyDataMapper2D>::New();
57 this->BrushActor = vtkSmartPointer<vtkActor2D>::New();
58
59 vtkSmartPointer<vtkCoordinate> dummycoord = vtkSmartPointer<vtkCoordinate>::New();
60 dummycoord->SetCoordinateSystemToNormalizedViewport();
61 this->BrushMapper->SetInputData(this->BrushData);
62 this->BrushMapper->SetTransformCoordinate(dummycoord);
63 this->BrushActor->SetMapper(this->BrushMapper);
64 this->BrushActor->GetProperty()->SetColor(.1, 1.0, 1.0);
65
66 this->InspectMode = VTK_INSPECT_MANIPULATE_AXES;
67 this->BrushMode = VTK_BRUSH_LASSO;
68 this->BrushOperator = VTK_BRUSHOPERATOR_ADD;
69 this->MaximumNumberOfBrushPoints = -1;
70 this->NumberOfBrushPoints = 0;
71 this->SetMaximumNumberOfBrushPoints(100);
72 this->ClearBrushPoints();
73 this->FirstFunctionBrushLineDrawn = 0;
74 this->CurrentBrushClass = 0;
75 this->AxisHighlightPosition = VTK_HIGHLIGHT_CENTER;
76
77 this->SelectedAxisPosition = -1;
78 this->HighlightSource = vtkSmartPointer<vtkOutlineSource>::New();
79 this->HighlightMapper = vtkSmartPointer<vtkPolyDataMapper2D>::New();
80 this->HighlightActor = vtkSmartPointer<vtkActor2D>::New();
81
82 this->HighlightSource->SetBounds(-1, -1, -1, -1, -1, -1);
83 this->HighlightMapper->SetInputConnection(this->HighlightSource->GetOutputPort());
84 this->HighlightMapper->SetTransformCoordinate(dummycoord);
85 this->HighlightActor->SetMapper(this->HighlightMapper);
86 this->HighlightActor->GetProperty()->SetColor(.1, 1.0, .1);
87 this->HighlightActor->VisibilityOff();
88
89 // vtkSmartPointer<vtkViewTheme> theme = vtkSmartPointer<vtkViewTheme>::New();
90 // theme->SetBackgroundColor(0,0,0);
91 // theme->SetBackgroundColor2(0,0,0);
92 // this->ApplyViewTheme(theme);
93}
94
95//------------------------------------------------------------------------------
96vtkParallelCoordinatesView::~vtkParallelCoordinatesView() = default;

Callers

nothing calls this directly

Calls 14

ClearBrushPointsMethod · 0.95
GetObserverMethod · 0.80
DeleteMethod · 0.65
NewFunction · 0.50
SetInteractorStyleMethod · 0.45
AddObserverMethod · 0.45
SetInputDataMethod · 0.45
SetMapperMethod · 0.45
SetColorMethod · 0.45
GetPropertyMethod · 0.45
SetBoundsMethod · 0.45

Tested by

no test coverage detected