Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
a1ec8123
Commit
a1ec8123
authored
Nov 21, 2011
by
Mario Hlawitschka
Browse files
[STYLE] fixed style to avoid some warnings
parent
98a405ed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
src/modules/data/io/WReaderVTK.cpp
src/modules/data/io/WReaderVTK.cpp
+4
-3
src/modules/directVolumeRendering/WMDirectVolumeRendering.cpp
...modules/directVolumeRendering/WMDirectVolumeRendering.cpp
+5
-5
src/qt4gui/qt4/controlPanel/transferFunction/WTransferFunctionBackground.cpp
...rolPanel/transferFunction/WTransferFunctionBackground.cpp
+1
-1
No files found.
src/modules/data/io/WReaderVTK.cpp
View file @
a1ec8123
...
...
@@ -158,7 +158,8 @@ void WReaderVTK::readStructuredPoints()
new
WGridRegular3D
(
dimensions
[
0
],
dimensions
[
1
],
dimensions
[
2
],
transform
)
);
}
void
WReaderVTK
::
readScalars
(
size_t
nbPoints
,
const
std
::
string
&
name
)
// we currently do not handle the name flag but should set the name of the data set somewhere
void
WReaderVTK
::
readScalars
(
size_t
nbPoints
,
const
std
::
string
&
/*name*/
)
{
int
pos
=
m_ifs
->
tellg
();
// remember where we are for binary files
...
...
@@ -211,7 +212,7 @@ void WReaderVTK::readScalars( size_t nbPoints, const std::string& name )
// WAssert( std::string( "" ) == line, "Found characters in file where nothing was expected." );
}
void
WReaderVTK
::
readVectors
(
size_t
nbPoints
,
const
std
::
string
&
name
)
void
WReaderVTK
::
readVectors
(
size_t
nbPoints
,
const
std
::
string
&
/*
name
*/
)
{
int
pos
=
m_ifs
->
tellg
();
// remember where we are for binary files
...
...
@@ -269,7 +270,7 @@ void WReaderVTK::readVectors( size_t nbPoints, const std::string& name )
// WAssert( std::string( "" ) == line, "Found characters in file where nothing was expected." );
}
void
WReaderVTK
::
readTensors
(
size_t
nbPoints
,
const
std
::
string
&
name
)
void
WReaderVTK
::
readTensors
(
size_t
nbPoints
,
const
std
::
string
&
/*
name
*/
)
{
int
pos
=
m_ifs
->
tellg
();
// remember where we are for binary files
...
...
src/modules/directVolumeRendering/WMDirectVolumeRendering.cpp
View file @
a1ec8123
...
...
@@ -398,11 +398,11 @@
unsigned
char
*
data
=
new
unsigned
char
[
tfsize
];
std
::
copy
(
orig
,
&
orig
[
tfsize
],
data
);
for
(
in
t
i
=
0
;
i
<
30
&&
i
<
tfsize
/
4
;
++
i
)
{
debugLog
()
<<
i
<<
":"
<<
(
int
)
data
[
4
*
i
]
<<
' '
<<
(
int
)
data
[
4
*
i
+
1
]
<<
' '
<<
(
int
)
data
[
4
*
i
+
2
]
<<
' '
<<
(
int
)
data
[
4
*
i
+
3
];
}
//
for (
size_
t i = 0; i< 30 && i < tfsize/4; ++i )
//
{
//
debugLog() << i << ":" << ( int )data[ 4*i ] << ' ' << ( int )data[ 4*i+1 ] << ' '<< ( int )data[ 4*i+2 ]
//
<< ' '<< ( int ) data[ 4*i+3 ];
//
}
osg
::
ref_ptr
<
osg
::
Image
>
tfImg
(
new
osg
::
Image
()
);
//debugLog() << "set image";
...
...
src/qt4gui/qt4/controlPanel/transferFunction/WTransferFunctionBackground.cpp
View file @
a1ec8123
...
...
@@ -31,7 +31,7 @@
#include "WTransferFunctionBackground.h"
#include "WTransferFunctionWidget.h"
WTransferFunctionBackground
::
WTransferFunctionBackground
(
WTransferFunctionWidget
*
parent
)
:
BaseClass
()
WTransferFunctionBackground
::
WTransferFunctionBackground
(
WTransferFunctionWidget
*
/*
parent
*/
)
:
BaseClass
()
{
//this->setFlag( ItemIsMovable );
setOpacity
(
1.0
);
...
...
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