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

Method RequestDataObject

IO/SQL/vtkSQLGraphReader.cxx:190–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190int vtkSQLGraphReader::RequestDataObject(
191 vtkInformation*, vtkInformationVector**, vtkInformationVector*)
192{
193 vtkDataObject* current = this->GetExecutive()->GetOutputData(0);
194 if (!current || (this->Directed && !vtkDirectedGraph::SafeDownCast(current)) ||
195 (!this->Directed && vtkDirectedGraph::SafeDownCast(current)))
196 {
197 vtkGraph* output = 0;
198 if (this->Directed)
199 {
200 output = vtkDirectedGraph::New();
201 }
202 else
203 {
204 output = vtkUndirectedGraph::New();
205 }
206 this->GetExecutive()->SetOutputData(0, output);
207 output->Delete();
208 }
209
210 return 1;
211}
212VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 5

SetOutputDataMethod · 0.80
DeleteMethod · 0.65
NewFunction · 0.50
GetOutputDataMethod · 0.45
GetExecutiveMethod · 0.45

Tested by

no test coverage detected