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

Method AddRepresentationFromInputConnection

Views/Core/vtkView.cxx:124–142  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

122
123//------------------------------------------------------------------------------
124vtkDataRepresentation* vtkView::AddRepresentationFromInputConnection(vtkAlgorithmOutput* conn)
125{
126 if (this->ReuseSingleRepresentation && this->GetNumberOfRepresentations() > 0)
127 {
128 this->GetRepresentation()->SetInputConnection(conn);
129 return this->GetRepresentation();
130 }
131 vtkDataRepresentation* rep = this->CreateDefaultRepresentation(conn);
132 if (!rep)
133 {
134 vtkErrorMacro("Could not add representation from input connection because "
135 "no default representation was created for the given input connection.");
136 return nullptr;
137 }
138
139 this->AddRepresentation(rep);
140 rep->Delete();
141 return rep;
142}
143
144//------------------------------------------------------------------------------
145vtkDataRepresentation* vtkView::SetRepresentationFromInputConnection(vtkAlgorithmOutput* conn)

Callers 2

DisplayGraphFunction · 0.80

Calls 6

GetRepresentationMethod · 0.95
AddRepresentationMethod · 0.95
DeleteMethod · 0.65
SetInputConnectionMethod · 0.45

Tested by

no test coverage detected