| 81 | } |
| 82 | |
| 83 | int 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 | |
| 105 | void vtkWriter::PrintSelf(ostream& os, vtkIndent indent) |
| 106 | { |
no test coverage detected