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

Method SetRepresentationFromInputConnection

Views/Core/vtkView.cxx:145–163  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

143
144//------------------------------------------------------------------------------
145vtkDataRepresentation* vtkView::SetRepresentationFromInputConnection(vtkAlgorithmOutput* conn)
146{
147 if (this->ReuseSingleRepresentation && this->GetNumberOfRepresentations() > 0)
148 {
149 this->GetRepresentation()->SetInputConnection(conn);
150 return this->GetRepresentation();
151 }
152 vtkDataRepresentation* rep = this->CreateDefaultRepresentation(conn);
153 if (!rep)
154 {
155 vtkErrorMacro("Could not add representation from input connection because "
156 "no default representation was created for the given input connection.");
157 return nullptr;
158 }
159
160 this->SetRepresentation(rep);
161 rep->Delete();
162 return rep;
163}
164
165//------------------------------------------------------------------------------
166void vtkView::AddRepresentation(vtkDataRepresentation* rep)

Callers 11

TestGraphLayoutViewFunction · 0.80
TestConeLayoutStrategyFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
slotOpenXMLFileMethod · 0.80
slotOpenXMLFileMethod · 0.80
SimpleViewMethod · 0.80
TestTableToGraphFunction · 0.80

Calls 6

GetRepresentationMethod · 0.95
SetRepresentationMethod · 0.95
DeleteMethod · 0.65
SetInputConnectionMethod · 0.45

Tested by 5

TestGraphLayoutViewFunction · 0.64
TestConeLayoutStrategyFunction · 0.64
TestTableToGraphFunction · 0.64