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

Method RequestData

IO/Core/vtkWriter.cxx:83–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83int vtkWriter::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
84{
85 this->SetErrorCode(vtkErrorCode::NoError);
86
87 vtkDataObject* input = this->GetInput();
88
89 // make sure input is available
90 if (!input)
91 {
92 vtkErrorMacro(<< "No input!");
93 return 0;
94 }
95
96 this->InvokeEvent(vtkCommand::StartEvent, nullptr);
97 this->WriteData();
98 this->InvokeEvent(vtkCommand::EndEvent, nullptr);
99
100 this->WriteTime.Modified();
101
102 return 1;
103}
104
105void vtkWriter::PrintSelf(ostream& os, vtkIndent indent)
106{

Callers 1

ProcessRequestMethod · 0.95

Calls 4

GetInputMethod · 0.95
InvokeEventMethod · 0.80
WriteDataMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected