Material.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-visualization_engine/doc_stacks/2013-12-11_14-28-19.339941/visualization_engine/rve_msgs/msg/Material.msg */
00002 #ifndef RVE_MSGS_MESSAGE_MATERIAL_H
00003 #define RVE_MSGS_MESSAGE_MATERIAL_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012 
00013 #include "ros/macros.h"
00014 
00015 #include "ros/assert.h"
00016 
00017 #include "rve_msgs/UUID.h"
00018 #include "rve_msgs/ColorRGB.h"
00019 
00020 namespace rve_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct Material_ {
00024   typedef Material_<ContainerAllocator> Type;
00025 
00026   Material_()
00027   : id()
00028   , opacity(0.0)
00029   , has_color(false)
00030   , color()
00031   , has_texture(false)
00032   , texture()
00033   , has_normal_map(false)
00034   , normal_map()
00035   , disable_shading(false)
00036   , cull_mode(0)
00037   {
00038   }
00039 
00040   Material_(const ContainerAllocator& _alloc)
00041   : id(_alloc)
00042   , opacity(0.0)
00043   , has_color(false)
00044   , color(_alloc)
00045   , has_texture(false)
00046   , texture(_alloc)
00047   , has_normal_map(false)
00048   , normal_map(_alloc)
00049   , disable_shading(false)
00050   , cull_mode(0)
00051   {
00052   }
00053 
00054   typedef  ::rve_msgs::UUID_<ContainerAllocator>  _id_type;
00055    ::rve_msgs::UUID_<ContainerAllocator>  id;
00056 
00057   typedef float _opacity_type;
00058   float opacity;
00059 
00060   typedef uint8_t _has_color_type;
00061   uint8_t has_color;
00062 
00063   typedef  ::rve_msgs::ColorRGB_<ContainerAllocator>  _color_type;
00064    ::rve_msgs::ColorRGB_<ContainerAllocator>  color;
00065 
00066   typedef uint8_t _has_texture_type;
00067   uint8_t has_texture;
00068 
00069   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _texture_type;
00070   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  texture;
00071 
00072   typedef uint8_t _has_normal_map_type;
00073   uint8_t has_normal_map;
00074 
00075   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _normal_map_type;
00076   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  normal_map;
00077 
00078   typedef uint8_t _disable_shading_type;
00079   uint8_t disable_shading;
00080 
00081   typedef uint8_t _cull_mode_type;
00082   uint8_t cull_mode;
00083 
00084   enum { CULL_CLOCKWISE = 0 };
00085   enum { CULL_COUNTERCLOCKWISE = 1 };
00086   enum { CULL_NONE = 2 };
00087 
00088   typedef boost::shared_ptr< ::rve_msgs::Material_<ContainerAllocator> > Ptr;
00089   typedef boost::shared_ptr< ::rve_msgs::Material_<ContainerAllocator>  const> ConstPtr;
00090   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00091 }; // struct Material
00092 typedef  ::rve_msgs::Material_<std::allocator<void> > Material;
00093 
00094 typedef boost::shared_ptr< ::rve_msgs::Material> MaterialPtr;
00095 typedef boost::shared_ptr< ::rve_msgs::Material const> MaterialConstPtr;
00096 
00097 
00098 template<typename ContainerAllocator>
00099 std::ostream& operator<<(std::ostream& s, const  ::rve_msgs::Material_<ContainerAllocator> & v)
00100 {
00101   ros::message_operations::Printer< ::rve_msgs::Material_<ContainerAllocator> >::stream(s, "", v);
00102   return s;}
00103 
00104 } // namespace rve_msgs
00105 
00106 namespace ros
00107 {
00108 namespace message_traits
00109 {
00110 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::Material_<ContainerAllocator> > : public TrueType {};
00111 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::Material_<ContainerAllocator>  const> : public TrueType {};
00112 template<class ContainerAllocator>
00113 struct MD5Sum< ::rve_msgs::Material_<ContainerAllocator> > {
00114   static const char* value() 
00115   {
00116     return "f09dc0a0fdc0e473deed906ce64e957e";
00117   }
00118 
00119   static const char* value(const  ::rve_msgs::Material_<ContainerAllocator> &) { return value(); } 
00120   static const uint64_t static_value1 = 0xf09dc0a0fdc0e473ULL;
00121   static const uint64_t static_value2 = 0xdeed906ce64e957eULL;
00122 };
00123 
00124 template<class ContainerAllocator>
00125 struct DataType< ::rve_msgs::Material_<ContainerAllocator> > {
00126   static const char* value() 
00127   {
00128     return "rve_msgs/Material";
00129   }
00130 
00131   static const char* value(const  ::rve_msgs::Material_<ContainerAllocator> &) { return value(); } 
00132 };
00133 
00134 template<class ContainerAllocator>
00135 struct Definition< ::rve_msgs::Material_<ContainerAllocator> > {
00136   static const char* value() 
00137   {
00138     return "uint8 CULL_CLOCKWISE = 0\n\
00139 uint8 CULL_COUNTERCLOCKWISE = 1\n\
00140 uint8 CULL_NONE = 2\n\
00141 \n\
00142 UUID id\n\
00143 \n\
00144 float32 opacity\n\
00145 \n\
00146 bool has_color\n\
00147 ColorRGB color\n\
00148 \n\
00149 bool has_texture\n\
00150 string texture \n\
00151 \n\
00152 bool has_normal_map\n\
00153 string normal_map\n\
00154 \n\
00155 bool disable_shading\n\
00156 \n\
00157 uint8 cull_mode\n\
00158 ================================================================================\n\
00159 MSG: rve_msgs/UUID\n\
00160 uint8[16] data\n\
00161 \n\
00162 ================================================================================\n\
00163 MSG: rve_msgs/ColorRGB\n\
00164 float32 r\n\
00165 float32 g\n\
00166 float32 b\n\
00167 \n\
00168 ";
00169   }
00170 
00171   static const char* value(const  ::rve_msgs::Material_<ContainerAllocator> &) { return value(); } 
00172 };
00173 
00174 } // namespace message_traits
00175 } // namespace ros
00176 
00177 namespace ros
00178 {
00179 namespace serialization
00180 {
00181 
00182 template<class ContainerAllocator> struct Serializer< ::rve_msgs::Material_<ContainerAllocator> >
00183 {
00184   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00185   {
00186     stream.next(m.id);
00187     stream.next(m.opacity);
00188     stream.next(m.has_color);
00189     stream.next(m.color);
00190     stream.next(m.has_texture);
00191     stream.next(m.texture);
00192     stream.next(m.has_normal_map);
00193     stream.next(m.normal_map);
00194     stream.next(m.disable_shading);
00195     stream.next(m.cull_mode);
00196   }
00197 
00198   ROS_DECLARE_ALLINONE_SERIALIZER;
00199 }; // struct Material_
00200 } // namespace serialization
00201 } // namespace ros
00202 
00203 namespace ros
00204 {
00205 namespace message_operations
00206 {
00207 
00208 template<class ContainerAllocator>
00209 struct Printer< ::rve_msgs::Material_<ContainerAllocator> >
00210 {
00211   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::rve_msgs::Material_<ContainerAllocator> & v) 
00212   {
00213     s << indent << "id: ";
00214 s << std::endl;
00215     Printer< ::rve_msgs::UUID_<ContainerAllocator> >::stream(s, indent + "  ", v.id);
00216     s << indent << "opacity: ";
00217     Printer<float>::stream(s, indent + "  ", v.opacity);
00218     s << indent << "has_color: ";
00219     Printer<uint8_t>::stream(s, indent + "  ", v.has_color);
00220     s << indent << "color: ";
00221 s << std::endl;
00222     Printer< ::rve_msgs::ColorRGB_<ContainerAllocator> >::stream(s, indent + "  ", v.color);
00223     s << indent << "has_texture: ";
00224     Printer<uint8_t>::stream(s, indent + "  ", v.has_texture);
00225     s << indent << "texture: ";
00226     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.texture);
00227     s << indent << "has_normal_map: ";
00228     Printer<uint8_t>::stream(s, indent + "  ", v.has_normal_map);
00229     s << indent << "normal_map: ";
00230     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.normal_map);
00231     s << indent << "disable_shading: ";
00232     Printer<uint8_t>::stream(s, indent + "  ", v.disable_shading);
00233     s << indent << "cull_mode: ";
00234     Printer<uint8_t>::stream(s, indent + "  ", v.cull_mode);
00235   }
00236 };
00237 
00238 
00239 } // namespace message_operations
00240 } // namespace ros
00241 
00242 #endif // RVE_MSGS_MESSAGE_MATERIAL_H
00243 


rve_msgs
Author(s): Josh Faust
autogenerated on Wed Dec 11 2013 14:30:39