export_Color.cxx

Go to the documentation of this file.
00001 
00012 #ifdef _MSC_VER
00013 // nonstandard extension used 'extern' before...
00014 # pragma warning(disable:4231)  
00015 
00016 // needs to have dll-interface used by client
00017 # pragma warning(disable:4251)  
00018 
00019 // non dll-interface struct
00020 # pragma warning(disable:4275)  
00021 
00022 // 'int' : forcing value to bool 'true' or 'false' (performance warning)
00023 # pragma warning(disable:4800)  
00024 #endif
00025 
00026 // include first to avoid _POSIX_C_SOURCE warning.
00027 #include <boost/python.hpp>
00028 
00029 #include "graphics/Color.h"
00030 
00031 using namespace boost::python;
00032 
00033 namespace hippodraw {
00034 namespace Python {
00035 
00036 void
00037 export_Color ()
00038 {
00039   enum_ < Color::Value > ( "ColorValue" )
00040     .value ( "red",       Color::red )
00041     .value ( "green",     Color::green )
00042     .value ( "blue",      Color::blue )
00043     .value ( "yellow",    Color::yellow )
00044     .value ( "orange",    Color::orange )
00045     .value ( "cyan",      Color::cyan )
00046     .value ( "magenta",   Color::magenta )
00047     .value ( "black",     Color::black )
00048     .value ( "darkgray",  Color::darkgray )
00049     .value ( "lightgray", Color::lightgray )
00050     .value ( "white",     Color::white )
00051    ;
00052 }
00053 
00054 } // namespace Python
00055 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen