Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
549ead9f
Commit
549ead9f
authored
May 06, 2009
by
Jason Shepherd
Browse files
ENH: Add support for adding a unicode string array as a blank row in vtkTable.
parent
c87ef9f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Filtering/vtkTable.cxx
View file @
549ead9f
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
// Standard functions
// Standard functions
//
//
vtkCxxRevisionMacro
(
vtkTable
,
"1.2
3
"
);
vtkCxxRevisionMacro
(
vtkTable
,
"1.2
4
"
);
vtkStandardNewMacro
(
vtkTable
);
vtkStandardNewMacro
(
vtkTable
);
vtkCxxSetObjectMacro
(
vtkTable
,
RowData
,
vtkDataSetAttributes
);
vtkCxxSetObjectMacro
(
vtkTable
,
RowData
,
vtkDataSetAttributes
);
...
@@ -250,6 +250,15 @@ vtkIdType vtkTable::InsertNextBlankRow()
...
@@ -250,6 +250,15 @@ vtkIdType vtkTable::InsertNextBlankRow()
data
->
InsertNextValue
(
vtkVariant
());
data
->
InsertNextValue
(
vtkVariant
());
}
}
}
}
else
if
(
vtkUnicodeStringArray
::
SafeDownCast
(
arr
))
{
// vtkErrorMacro(<< "vtkUnicodeStringArray is not supported for InsertNextBlankRow");
vtkUnicodeStringArray
*
data
=
vtkUnicodeStringArray
::
SafeDownCast
(
arr
);
for
(
int
j
=
0
;
j
<
comps
;
j
++
)
{
data
->
InsertNextValue
(
vtkUnicodeString
::
from_utf8
(
""
));
}
}
else
else
{
{
vtkErrorMacro
(
<<
"Unsupported array type for InsertNextBlankRow"
);
vtkErrorMacro
(
<<
"Unsupported array type for InsertNextBlankRow"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment