Commit 0a4c2291 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX] warning

[ADD] icon
parent f3e19236
......@@ -39,6 +39,7 @@
#include "../../graphicsEngine/WShader.h"
#include "WMDirectVolumeRendering.h"
#include "directvolumerendering.xpm"
WMDirectVolumeRendering::WMDirectVolumeRendering():
WModule()
......@@ -56,6 +57,11 @@ boost::shared_ptr< WModule > WMDirectVolumeRendering::factory() const
return boost::shared_ptr< WModule >( new WMDirectVolumeRendering() );
}
const char** WMDirectVolumeRendering::getXPMIcon() const
{
return directvolumerendering_xpm;
}
const std::string WMDirectVolumeRendering::getName() const
{
// Specify your module name here. This name must be UNIQUE!
......@@ -189,7 +195,7 @@ void WMDirectVolumeRendering::SafeUpdateCallback::operator()( osg::Node* node, o
traverse( node, nv );
}
void WMDirectVolumeRendering::SafeUniformCallback::operator()( osg::Uniform* uniform, osg::NodeVisitor* nv )
void WMDirectVolumeRendering::SafeUniformCallback::operator()( osg::Uniform* uniform, osg::NodeVisitor* /* nv */ )
{
// update some uniforms:
if ( m_module->m_isoValue->changed() && ( uniform->getName() == "u_isovalue" ) )
......
......@@ -73,6 +73,11 @@ public:
*/
virtual boost::shared_ptr< WModule > factory() const;
/**
* Get the icon for this module in XPM format.
*/
virtual const char** getXPMIcon() const;
protected:
/**
......
/* XPM */
static const char * directvolumerendering_xpm[] = {
"32 32 224 2",
" c None",
". c #0000FF",
"+ c #0808FF",
"@ c #1010FF",
"# c #1110FF",
"$ c #1011FF",
"% c #1818FF",
"& c #1918FF",
"* c #1819FF",
"= c #2020FF",
"- c #2021FF",
"; c #2120FF",
"> c #2828FF",
", c #2829FF",
"' c #3030FF",
") c #3130FF",
"! c #3031FF",
"~ c #3838FF",
"{ c #3839FF",
"] c #3938FF",
"^ c #4041FF",
"/ c #4040FF",
"( c #4140FF",
"_ c #4849FF",
": c #000000",
"< c #010104",
"[ c #07071B",
"} c #1E1E6D",
"| c #4444F2",
"1 c #4848FF",
"2 c #0C0C2C",
"3 c #23237D",
"4 c #252586",
"5 c #0D0D30",
"6 c #010106",
"7 c #090921",
"8 c #202074",
"9 c #4646F9",
"0 c #5050FF",
"a c #161647",
"b c #18184E",
"c c #151544",
"d c #04040E",
"e c #101035",
"f c #4E4FF9",
"g c #292985",
"h c #0C0C28",
"i c #5151FF",
"j c #101033",
"k c #2B2B8A",
"l c #18184F",
"m c #151545",
"n c #020207",
"o c #252577",
"p c #5958FF",
"q c #4E4EE3",
"r c #5859FF",
"s c #5858FF",
"t c #5151EC",
"u c #0F0F2C",
"v c #333293",
"w c #4C4CDD",
"x c #4848D2",
"y c #4D4DE0",
"z c #000001",
"A c #4D4EE2",
"B c #4E4FE3",
"C c #3B3BAB",
"D c #08081A",
"E c #6161FF",
"F c #5656E3",
"G c #6060FF",
"H c #3E3EA6",
"I c #17173E",
"J c #6061FF",
"K c #141437",
"L c #2F2F7D",
"M c #6160FF",
"N c #35368E",
"O c #16163D",
"P c #5555E3",
"Q c #5252DA",
"R c #6869FF",
"S c #5C5CE3",
"T c #6868FF",
"U c #5758D7",
"V c #070712",
"W c #3A3A90",
"X c #101028",
"Y c #18183B",
"Z c #3D3D96",
"` c #6968FF",
" . c #6768FD",
".. c #6060ED",
"+. c #2A2A68",
"@. c #7170FF",
"#. c #6363E3",
"$. c #7070FF",
"%. c #6262E1",
"&. c #6565E6",
"*. c #000002",
"=. c #5C5CD2",
"-. c #6565E7",
";. c #6767EB",
">. c #7071FF",
",. c #595ACC",
"'. c #7978FF",
"). c #6A6AE3",
"!. c #7878FF",
"~. c #6565D7",
"{. c #07070F",
"]. c #7979FF",
"^. c #1F1F42",
"/. c #3A3A7C",
"(. c #474796",
"_. c #222249",
":. c #202146",
"<. c #1B1A39",
"[. c #1F1F43",
"}. c #7070EE",
"|. c #8080FF",
"1. c #7272E3",
"2. c #8180FF",
"3. c #5655AB",
"4. c #1D1D3A",
"5. c #8081FF",
"6. c #4D4D9B",
"7. c #131327",
"8. c #222244",
"9. c #5151A3",
"0. c #7171E3",
"a. c #5555AB",
"b. c #3D3E7B",
"c. c #8988FF",
"d. c #7979E3",
"e. c #8888FF",
"f. c #8382F5",
"g. c #1E1E39",
"h. c #4E4E93",
"i. c #7F7EEE",
"j. c #030306",
"k. c #040409",
"l. c #8181F3",
"m. c #42427C",
"n. c #6465BC",
"o. c #9090FF",
"p. c #282847",
"q. c #2C2C4F",
"r. c #292949",
"s. c #0C0C16",
"t. c #1C1C33",
"u. c #8C8CF8",
"v. c #9190FF",
"w. c #9191FF",
"x. c #2B2B4D",
"y. c #303056",
"z. c #9091FF",
"A. c #8081E3",
"B. c #8E8EFC",
"C. c #242440",
"D. c #131322",
"E. c #8A8BF5",
"F. c #9899FF",
"G. c #030205",
"H. c #131321",
"I. c #454574",
"J. c #8F8FF1",
"K. c #9898FF",
"L. c #9998FF",
"M. c #6262A6",
"N. c #6868AF",
"O. c #8887E3",
"P. c #9999FF",
"Q. c #8989E7",
"R. c #0D0D17",
"S. c #444472",
"T. c #A1A0FF",
"U. c #A0A1FF",
"V. c #A0A0FF",
"W. c #A1A1FF",
"X. c #A8A8FF",
"Y. c #A9A9FF",
"Z. c #A9A8FF",
"`. c #A8A9FF",
" + c #B0B0FF",
".+ c #B1B1FF",
"++ c #B0B1FF",
"@+ c #B1B0FF",
"#+ c #B8B8FF",
"$+ c #B9B9FF",
"%+ c #B8B9FF",
"&+ c #B9B8FF",
"*+ c #C0C0FF",
"=+ c #C0C1FF",
"-+ c #C1C0FF",
";+ c #C1C1FF",
">+ c #C8C8FF",
",+ c #C9C9FF",
"'+ c #C8C9FF",
")+ c #C9C8FF",
"!+ c #D0D1FF",
"~+ c #D0D0FF",
"{+ c #D1D1FF",
"]+ c #D1D0FF",
"^+ c #D8D8FF",
"/+ c #D9D8FF",
"(+ c #D8D9FF",
"_+ c #D9D9FF",
":+ c #E0E0FF",
"<+ c #E1E0FF",
"[+ c #E1E1FF",
"}+ c #E0E1FF",
"|+ c #E8E8FF",
"1+ c #E8E9FF",
"2+ c #E9E8FF",
"3+ c #E9E9FF",
"4+ c #F1F0FF",
"5+ c #F0F1FF",
"6+ c #F0F0FF",
"7+ c #F1F1FF",
"8+ c #F8F8FF",
"9+ c #F9F8FF",
"0+ c #F9F9FF",
"a+ c #F8F9FF",
" . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ",
"@ @ @ @ @ @ @ @ @ # @ @ @ $ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ ",
"% % & % % % % % % % % % % % * % % * % % % % % % % % % % & % % % ",
"= = = = = = = = = - = = = = = = = = = = = = = = = = ; = = = = = ",
"> > > > > , > > > > > > > > > > > > > > > > > > > > > > > > > > ",
"' ' ' ) ' ' ' ' ' ' ' ! ' ' ' ' ) ) ' ' ' ' ' ) ' ' ' ' ) ' ' ' ",
"~ ~ ~ { ~ ~ ~ ~ ~ ] ~ ~ ~ ] { ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ] ] ~ ] ] ~ ",
"^ / ^ / / / ^ / / / / / / ^ / / / ( ( / / ( / ^ / / ^ / / / / / ",
"_ : : : : < [ } | 1 1 2 : 3 1 1 1 1 4 : 5 1 : : : : : 6 7 8 9 1 ",
"0 : : a b c d : e f 0 g : h i 0 0 0 j : k 0 : : a l b m n : o 0 ",
"p : : q r s t u : v s w : : x s s y : z A s : : B s p s C : D s ",
"E : : F G G G H : I G J K : L M M N : O G G : : P G G M Q : n J ",
"R : : S T T T U : V T T W : X T T Y : Z T ` : : S T ...+.: Y T ",
"@.: : #.@.$.$.%.: < $.$.&.*.: =.-.*.< ;.>.>.: : : : : : : V ,.$.",
"'.: : ).!.'.!.~.: {.].!.!.^.: /.(.: _.'.!.].: : :.<.z : [.}.'.!.",
"|.: : 1.2.|.|.3.: 4.5.5.5.6.: 7.8.: 9.|.|.|.: : 0.|.a.z : b.5.|.",
"c.: : d.c.e.f.g.: h.e.e.e.i.j.: z k.l.e.e.e.: : d.e.e.m.: z n.e.",
"o.: : p.q.r.s.: t.u.v.o.v.w.x.: : y.z.o.z.z.: : A.o.v.B.C.: D.E.",
"F.: : : : G.H.I.J.K.L.K.L.L.M.: : N.F.K.K.K.: : O.P.K.K.Q.R.: S.",
"T.U.V.V.U.U.U.V.W.V.V.T.V.W.V.V.V.V.T.V.T.V.T.V.T.V.V.V.V.T.V.U.",
"X.Y.X.Y.X.X.X.X.Z.X.`.X.Z.Z.`.X.`.X.Z.Z.X.X.X.X.X.X.Z.X.`.`.Z.X.",
" + + +.+++ +++++ + +++ +@+ +@+ +@+ +@+++@+ +@+++ +.+++@+@+ +@+++",
"#+#+$+$+#+%+%+%+&+#+#+#+#+&+%+%+#+&+&+&+#+%+#+$+&+%+%+#+#+&+$+#+",
"*+*+*+=+=+-+*+-+*+;+*+;+=+=+-+=+=+*+*+*+=+=+=+=+;+*+=+-+=+*+*+-+",
">+,+'+>+>+)+>+)+,+'+)+>+'+>+>+,+>+>+>+'+>+>+)+)+)+>+>+,+>+>+>+,+",
"!+~+!+!+~+~+!+{+~+~+~+{+!+~+!+]+~+~+{+~+{+~+!+]+{+~+!+!+]+]+~+!+",
"^+/+/+^+^+(+_+/+(+/+^+^+(+^+^+_+/+(+^+^+_+/+/+(+(+^+^+^+^+^+^+_+",
":+<+[+<+:+[+:+<+:+<+:+}+}+<+<+[+:+<+:+[+}+}+}+}+}+:+<+:+[+:+<+<+",
" |+|+|+|+1+2+1+2+2+3+2+2+|+|+2+|+|+2+|+|+2+|+3+|+3+2+1+2+|+2+ ",
" 4+4+5+6+4+6+7+6+6+6+4+7+4+7+5+7+6+5+5+4+6+7+6+6+4+4+7+6+ ",
" 8+8+9+9+8+9+0+a+8+0+a+0+0+8+0+9+0+8+9+8+0+a+8+8+a+8+ "};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment