------------------------------------------------------------------------------ Open an import file. Returns zero if error.
| 146 | //------------------------------------------------------------------------------ |
| 147 | // Open an import file. Returns zero if error. |
| 148 | int vtkVRMLImporter::OpenImportFile() |
| 149 | { |
| 150 | vtkDebugMacro(<< "Opening import file"); |
| 151 | |
| 152 | const char* filename = this->GetFileName(); |
| 153 | if (!filename) |
| 154 | { |
| 155 | vtkErrorMacro(<< "No file specified!"); |
| 156 | return 0; |
| 157 | } |
| 158 | this->FileFD = vtksys::SystemTools::Fopen(filename, "r"); |
| 159 | if (this->FileFD == nullptr) |
| 160 | { |
| 161 | vtkErrorMacro(<< "Unable to open file: " << filename); |
| 162 | return 0; |
| 163 | } |
| 164 | return 1; |
| 165 | } |
| 166 | |
| 167 | //------------------------------------------------------------------------------ |
| 168 | vtkPoints* vtkVRMLImporter::PointsNew() |
no test coverage detected