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

Method WritePrimaryElementAttributes

IO/XML/vtkXMLStructuredDataWriter.cxx:487–505  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

485
486//------------------------------------------------------------------------------
487void vtkXMLStructuredDataWriter::WritePrimaryElementAttributes(ostream& os, vtkIndent indent)
488{
489 this->Superclass::WritePrimaryElementAttributes(os, indent);
490
491 int* ext = this->WriteExtent;
492 if ((this->WriteExtent[0] == 0) && (this->WriteExtent[1] == -1) && (this->WriteExtent[2] == 0) &&
493 (this->WriteExtent[3] == -1) && (this->WriteExtent[4] == 0) && (this->WriteExtent[5] == -1))
494 {
495 ext = this->GetInputInformation(0, 0)->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT());
496 }
497
498 if (this->WritePiece >= 0)
499 {
500 vtkDataSet* input = this->GetDataSetInput();
501 ext = input->GetInformation()->Get(vtkDataObject::DATA_EXTENT());
502 }
503
504 this->WriteVectorAttribute("WholeExtent", 6, ext);
505}
506
507//------------------------------------------------------------------------------
508void vtkXMLStructuredDataWriter::WriteAppendedPiece(int index, vtkIndent indent)

Callers

nothing calls this directly

Calls 5

WriteVectorAttributeMethod · 0.80
GetMethod · 0.45
GetInputInformationMethod · 0.45
GetDataSetInputMethod · 0.45
GetInformationMethod · 0.45

Tested by

no test coverage detected