Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VTK Examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
VTK
VTK Examples
Commits
fe2f9940
Commit
fe2f9940
authored
1 year ago
by
Andrew Maclean
Browse files
Options
Downloads
Patches
Plain Diff
Set window size and update the test image
parent
cd6e558c
No related branches found
Branches containing commit
No related tags found
1 merge request
!313
Add transient hdf reader.py
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Cxx/IO/TransientHDFReader.cxx
+5
-4
5 additions, 4 deletions
src/Cxx/IO/TransientHDFReader.cxx
src/Testing/Baseline/Cxx/IO/TestTransientHDFReader.png
+2
-2
2 additions, 2 deletions
src/Testing/Baseline/Cxx/IO/TestTransientHDFReader.png
with
7 additions
and
6 deletions
src/Cxx/IO/TransientHDFReader.cxx
+
5
−
4
View file @
fe2f9940
...
...
@@ -33,14 +33,14 @@ int main(int ac, char** av)
vtkNew
<
vtkNamedColors
>
colors
;
// Read the dataset
// Read the dataset
.
vtkNew
<
vtkHDFReader
>
reader
;
reader
->
SetFileName
(
av
[
1
]);
reader
->
Update
();
std
::
cout
<<
"number of steps: "
<<
reader
->
GetNumberOfSteps
()
<<
endl
;
auto
polydata
=
vtkPolyData
::
SafeDownCast
(
reader
->
GetOutput
());
// Render the dataset
// Render the dataset
.
vtkNew
<
vtkPolyDataMapper
>
mapper
;
mapper
->
SetInputData
(
polydata
);
mapper
->
SetLookupTable
(
GetCTF
());
...
...
@@ -58,14 +58,15 @@ int main(int ac, char** av)
vtkNew
<
vtkRenderWindow
>
renWin
;
renWin
->
AddRenderer
(
renderer
);
renWin
->
SetWindowName
(
"TransientHDFReader"
);
renWin
->
SetSize
(
1024
,
512
);
renWin
->
Render
();
// Add the animation callback
// Add the animation callback
.
vtkNew
<
vtkCallbackCommand
>
command
;
command
->
SetCallback
(
&
Animate
);
command
->
SetClientData
(
reader
);
// Add the interactor
// Add the interactor
.
vtkNew
<
vtkRenderWindowInteractor
>
iren
;
iren
->
SetRenderWindow
(
renWin
);
iren
->
AddObserver
(
vtkCommand
::
TimerEvent
,
command
);
...
...
This diff is collapsed.
Click to expand it.
src/Testing/Baseline/Cxx/IO/TestTransientHDFReader.png
LFS
+
2
−
2
View replaced file @
cd6e558c
View file @
fe2f9940
130 B
|
W:
|
H:
130 B
|
W:
|
H:
2-up
Swipe
Onion skin
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