Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alex W.
VTK
Commits
79a811b6
Commit
79a811b6
authored
11 years ago
by
Dave DeMarle
Browse files
Options
Downloads
Plain Diff
Merge branch '12994-xmlmultiblockwriter-improvements-rel' into release
parents
3299c70d
3a192370
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
IO/XML/vtkXMLMultiBlockDataWriter.cxx
+14
-12
14 additions, 12 deletions
IO/XML/vtkXMLMultiBlockDataWriter.cxx
with
14 additions
and
12 deletions
IO/XML/vtkXMLMultiBlockDataWriter.cxx
+
14
−
12
View file @
79a811b6
...
...
@@ -67,33 +67,31 @@ int vtkXMLMultiBlockDataWriter::WriteComposite(vtkCompositeDataSet* compositeDat
iter
->
GoToNextItem
(),
index
++
)
{
vtkDataObject
*
curDO
=
iter
->
GetCurrentDataObject
();
const
char
*
name
=
NULL
;
if
(
iter
->
HasCurrentMetaData
())
{
name
=
iter
->
GetCurrentMetaData
()
->
Get
(
vtkCompositeDataSet
::
NAME
());
}
if
(
curDO
&&
curDO
->
IsA
(
"vtkCompositeDataSet"
))
// if node is a supported composite dataset
// note in structure file and recurse.
{
vtkXMLDataElement
*
tag
=
vtkXMLDataElement
::
New
();
const
char
*
name
=
iter
->
GetCurrentMetaData
()
->
Get
(
vtkCompositeDataSet
::
NAME
());
if
(
name
)
{
tag
->
SetAttribute
(
"name"
,
name
);
}
if
(
curDO
->
IsA
(
"vtkMultiPieceDataSet"
))
{
tag
->
SetName
(
"Piece"
);
tag
->
SetIntAttribute
(
"index"
,
index
);
if
(
name
)
{
tag
->
SetAttribute
(
"name"
,
name
);
}
}
else
if
(
curDO
->
IsA
(
"vtkMultiBlockDataSet"
))
{
tag
->
SetName
(
"Block"
);
tag
->
SetIntAttribute
(
"index"
,
index
);
if
(
name
)
{
tag
->
SetAttribute
(
"name"
,
name
);
}
}
vtkCompositeDataSet
*
curCD
=
vtkCompositeDataSet
::
SafeDownCast
(
curDO
);
...
...
@@ -112,6 +110,10 @@ int vtkXMLMultiBlockDataWriter::WriteComposite(vtkCompositeDataSet* compositeDat
vtkXMLDataElement
*
datasetXML
=
vtkXMLDataElement
::
New
();
datasetXML
->
SetName
(
"DataSet"
);
datasetXML
->
SetIntAttribute
(
"index"
,
index
);
if
(
name
)
{
datasetXML
->
SetAttribute
(
"name"
,
name
);
}
vtkStdString
fileName
=
this
->
CreatePieceFileName
(
writerIdx
);
if
(
this
->
WriteNonCompositeData
(
curDO
,
datasetXML
,
writerIdx
,
fileName
.
c_str
()))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment