Files Classes Functions Hierarchy
#include <graphmisc.h>
Static Public Member Functions | |
| static void | colornormalize (point3< double > &p1, point3< uint > const &p2) |
| Normalize RGB color. | |
| static void | colornormalize (point3< double > &p1, commandline &cmd, stringc tag) |
| Read a point3<uint> from the command line and normalize. | |
Definition at line 956 of file graphmisc.h.
| void graphmisc::colornormalize | ( | point3< double > & | p1, | |
| commandline & | cmd, | |||
| stringc | tag | |||
| ) | [static] |
Read a point3<uint> from the command line and normalize.
Definition at line 474 of file graphmisc.cpp.
References commandline::mapvar(), and point3< T >::serializeInverseBrackets().
00479 { 00480 point3<uint> p2; 00481 string p2str=""; 00482 cmd.mapvar(p2str,tag); 00483 if (!p2str.empty()) 00484 { 00485 p2.serializeInverseBrackets(p2str); 00486 colornormalize(p1,p2); 00487 } 00488 }
Normalize RGB color.
Definition at line 463 of file graphmisc.cpp.
References point3< T >::x, point3< T >::y, and point3< T >::z.
Referenced by maze003::maze003(), maze004::maze004(), and maze005::maze005().
00467 { 00468 p1.x = (double)p2.x / 255.0; 00469 p1.y = (double)p2.y / 255.0; 00470 p1.z = (double)p2.z / 255.0; 00471 }
1.5.8