Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Interactive Wave Simulator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
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
Pascal Engeler
Interactive Wave Simulator
Commits
cd4e9e3c
Commit
cd4e9e3c
authored
3 years ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
changed printing
parent
03d8fead
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pattern_handler.cpp
+10
-2
10 additions, 2 deletions
src/pattern_handler.cpp
with
10 additions
and
2 deletions
src/pattern_handler.cpp
+
10
−
2
View file @
cd4e9e3c
...
...
@@ -40,11 +40,17 @@ PatternHandler::PatternHandler(Toolbox& tb)
glBindBuffer
(
GL_ARRAY_BUFFER
,
0
);
/*Load structure textures*/
std
::
cout
<<
"Loading slit.tex"
<<
std
::
endl
;
load_damping_texture_
(
tb
,
tb
.
texture_path
+
"slit"
,
&
texture_singleslit_
);
std
::
cout
<<
"Loading doubleslit.tex"
<<
std
::
endl
;
load_damping_texture_
(
tb
,
tb
.
texture_path
+
"doubleslit"
,
&
texture_doubleslit_
);
std
::
cout
<<
"Loading square.tex"
<<
std
::
endl
;
load_damping_texture_
(
tb
,
tb
.
texture_path
+
"square"
,
&
texture_lattice_
);
std
::
cout
<<
"Loading channel.tex"
<<
std
::
endl
;
load_damping_texture_
(
tb
,
tb
.
texture_path
+
"channel"
,
&
texture_waveguide_
);
std
::
cout
<<
"Loading ssh.tex"
<<
std
::
endl
;
load_damping_texture_
(
tb
,
tb
.
texture_path
+
"ssh"
,
&
texture_ssh_
);
std
::
cout
<<
"Loading fresnel.tex"
<<
std
::
endl
;
load_damping_texture_
(
tb
,
tb
.
texture_path
+
"fresnel"
,
&
texture_fresnel_
);
}
...
...
@@ -119,6 +125,7 @@ bool PatternHandler::load_damping_texture_(const Toolbox& tb, const std::string
std
::
cout
<<
"Failed to open file "
+
config_filename
<<
std
::
endl
;
return
false
;
}
#ifndef NDEBUG
std
::
cout
<<
"Loaded configuration from "
+
config_filename
;
std
::
cout
<<
"
\n\t
Screen Resolution: "
<<
screen_width
<<
"x"
<<
screen_height
;
std
::
cout
<<
"
\n\t
Texture Resolution: "
<<
texture_width
<<
"x"
<<
texture_height
;
...
...
@@ -126,7 +133,7 @@ bool PatternHandler::load_damping_texture_(const Toolbox& tb, const std::string
std
::
cout
<<
"
\n\t
Offset Right: "
<<
texoffset_right
;
std
::
cout
<<
"
\n\t
Offset Bottom: "
<<
texoffset_bottom
;
std
::
cout
<<
"
\n\t
Offset Top: "
<<
texoffset_top
<<
std
::
endl
;
#endif
/*Check if configuration is compatible with toolbox settings*/
if
(
tb
.
screen_h
!=
screen_height
||
tb
.
screen_w
!=
screen_width
)
{
std
::
cout
<<
"Incompatible Toolbox Screen Resolution: "
<<
tb
.
screen_w
<<
"x"
<<
tb
.
screen_h
<<
std
::
endl
;
...
...
@@ -142,11 +149,12 @@ bool PatternHandler::load_damping_texture_(const Toolbox& tb, const std::string
}
/*Load texture data*/
#ifndef NDEBUG
else
{
std
::
cout
<<
"Texture is compatible"
<<
std
::
endl
;
}
std
::
cout
<<
"Loading Texture"
<<
std
::
endl
;
#endif
std
::
fstream
dmp_file
;
std
::
string
damping_filename
=
filename
+
".texture"
;
...
...
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