------------------------------------------------------------------------------
| 2144 | |
| 2145 | //------------------------------------------------------------------------------ |
| 2146 | void vtkXMLWriter::WriteArrayInline( |
| 2147 | vtkAbstractArray* a, vtkIndent indent, const char* alternateName, int writeNumTuples) |
| 2148 | { |
| 2149 | ostream& os = *(this->Stream); |
| 2150 | // Write the header <DataArray or <Array: |
| 2151 | this->WriteArrayHeader(a, indent, alternateName, writeNumTuples, 0); |
| 2152 | // |
| 2153 | vtkDataArray* da = vtkArrayDownCast<vtkDataArray>(a); |
| 2154 | if (da) |
| 2155 | { |
| 2156 | // write the range |
| 2157 | this->WriteScalarAttribute("RangeMin", da->GetRange(-1)[0]); |
| 2158 | this->WriteScalarAttribute("RangeMax", da->GetRange(-1)[1]); |
| 2159 | } |
| 2160 | // Close the header |
| 2161 | os << ">\n"; |
| 2162 | // Write the inline data. |
| 2163 | this->WriteInlineData(a, indent.GetNextIndent()); |
| 2164 | // Write information keys associated with this array. |
| 2165 | vtkInformation* info = a->GetInformation(); |
| 2166 | if (info && info->GetNumberOfKeys() > 0) |
| 2167 | { |
| 2168 | this->WriteInformation(info, indent); |
| 2169 | } |
| 2170 | // Close tag. |
| 2171 | this->WriteArrayFooter(os, indent, a, 0); |
| 2172 | } |
| 2173 | |
| 2174 | //------------------------------------------------------------------------------ |
| 2175 | void vtkXMLWriter::UpdateFieldData(vtkFieldData* fieldDataCopy) |
no test coverage detected