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
41cf1955
Commit
41cf1955
authored
Dec 03, 2002
by
Brad King
Browse files
ENH: Added wrapping of PrintRevisions method for vtkObjectBase.
parent
6d535a92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Wrapping/vtkWrapTcl.c
View file @
41cf1955
...
...
@@ -659,7 +659,7 @@ void vtkParseOutput(FILE *fp, FileInfo *data)
fprintf
(
fp
,
" {
\n
return TCL_OK;
\n
}
\n
"
);
}
/*
a
dd the
default p
rint method to Object */
/*
A
dd the
P
rint method to
vtk
Object
Base.
*/
if
(
!
strcmp
(
"vtkObjectBase"
,
data
->
ClassName
))
{
fprintf
(
fp
,
" if ((!strcmp(
\"
Print
\"
,argv[1]))&&(argc == 2))
\n
{
\n
"
);
...
...
@@ -669,7 +669,16 @@ void vtkParseOutput(FILE *fp, FileInfo *data)
fprintf
(
fp
,
" Tcl_SetResult(interp,buf.str(),TCL_VOLATILE);
\n
"
);
fprintf
(
fp
,
" delete buf.str();
\n
"
);
fprintf
(
fp
,
" return TCL_OK;
\n
}
\n
"
);
/* Add the PrintRevisions method to vtkObjectBase. */
fprintf
(
fp
,
" if ((!strcmp(
\"
PrintRevisions
\"
,argv[1]))&&(argc == 2))
\n
{
\n
"
);
fprintf
(
fp
,
" ostrstream buf;
\n
"
);
fprintf
(
fp
,
" op->PrintRevisions(buf);
\n
"
);
fprintf
(
fp
,
" buf.put('
\\
0');
\n
"
);
fprintf
(
fp
,
" Tcl_SetResult(interp,buf.str(),TCL_VOLATILE);
\n
"
);
fprintf
(
fp
,
" delete buf.str();
\n
"
);
fprintf
(
fp
,
" return TCL_OK;
\n
}
\n
"
);
}
/* Add the AddObserver method to vtkObject. */
if
(
!
strcmp
(
"vtkObject"
,
data
->
ClassName
))
{
fprintf
(
fp
,
" if ((!strcmp(
\"
AddObserver
\"
,argv[1]))&&(argc >= 4))
\n
{
\n
"
);
...
...
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