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
721fd2e9
Commit
721fd2e9
authored
Feb 03, 2011
by
William McLendon
Committed by
Kitware Robot
Feb 03, 2011
Browse files
Merge topic 'vtkTable_Dump_rowcount'
07f12d14
Added a rowLimit parameter to vtkTable::Dump()
parents
e6df451f
07f12d14
Changes
2
Show whitespace changes
Inline
Side-by-side
Filtering/vtkTable.cxx
View file @
721fd2e9
...
...
@@ -75,7 +75,7 @@ void vtkTable::PrintSelf(ostream &os, vtkIndent indent)
}
//----------------------------------------------------------------------------
void
vtkTable
::
Dump
(
unsigned
int
colWidth
)
void
vtkTable
::
Dump
(
unsigned
int
colWidth
,
int
rowLimit
)
{
if
(
!
this
->
GetNumberOfColumns
()
)
...
...
@@ -121,6 +121,8 @@ void vtkTable::Dump( unsigned int colWidth )
cout
<<
" |
\n
"
<<
lineStr
;
if
(
rowLimit
!=
0
)
{
for
(
vtkIdType
r
=
0
;
r
<
this
->
GetNumberOfRows
();
++
r
)
{
for
(
int
c
=
0
;
c
<
this
->
GetNumberOfColumns
();
++
c
)
...
...
@@ -142,10 +144,12 @@ void vtkTable::Dump( unsigned int colWidth )
}
}
cout
<<
" |
\n
"
;
if
(
rowLimit
!=
-
1
&&
r
>=
rowLimit
)
break
;
}
cout
<<
lineStr
;
cout
.
flush
();
}
}
//----------------------------------------------------------------------------
...
...
Filtering/vtkTable.h
View file @
721fd2e9
...
...
@@ -62,8 +62,11 @@ public:
void
PrintSelf
(
ostream
&
os
,
vtkIndent
indent
);
// Description:
// Dump table contents.
void
Dump
(
unsigned
int
colWidth
=
16
);
// Dump table contents. If rowLimit is -1 then the full table
// is printed out (Default). If rowLimit is 0 then only the
// header row will be displayed. Otherwise, if rowLimit > 0
// then Dump will print the first rowLimit rows of data.
void
Dump
(
unsigned
int
colWidth
=
16
,
int
rowLimit
=
-
1
);
// Description:
// Return what type of dataset this is.
...
...
Write
Preview
Markdown
is supported
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