Mesh.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/Mesh.msg */
00002 #ifndef RVE_MSGS_MESSAGE_MESH_H
00003 #define RVE_MSGS_MESSAGE_MESH_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/SubMesh.h"
00018 #include "rve_msgs/Material.h"
00019 
00020 namespace rve_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct Mesh_ {
00024   typedef Mesh_<ContainerAllocator> Type;
00025 
00026   Mesh_()
00027   : submeshes()
00028   , materials()
00029   {
00030   }
00031 
00032   Mesh_(const ContainerAllocator& _alloc)
00033   : submeshes(_alloc)
00034   , materials(_alloc)
00035   {
00036   }
00037 
00038   typedef std::vector< ::rve_msgs::SubMesh_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::SubMesh_<ContainerAllocator> >::other >  _submeshes_type;
00039   std::vector< ::rve_msgs::SubMesh_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::SubMesh_<ContainerAllocator> >::other >  submeshes;
00040 
00041   typedef std::vector< ::rve_msgs::Material_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::Material_<ContainerAllocator> >::other >  _materials_type;
00042   std::vector< ::rve_msgs::Material_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::Material_<ContainerAllocator> >::other >  materials;
00043 
00044 
00045   typedef boost::shared_ptr< ::rve_msgs::Mesh_<ContainerAllocator> > Ptr;
00046   typedef boost::shared_ptr< ::rve_msgs::Mesh_<ContainerAllocator>  const> ConstPtr;
00047   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 }; // struct Mesh
00049 typedef  ::rve_msgs::Mesh_<std::allocator<void> > Mesh;
00050 
00051 typedef boost::shared_ptr< ::rve_msgs::Mesh> MeshPtr;
00052 typedef boost::shared_ptr< ::rve_msgs::Mesh const> MeshConstPtr;
00053 
00054 
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const  ::rve_msgs::Mesh_<ContainerAllocator> & v)
00057 {
00058   ros::message_operations::Printer< ::rve_msgs::Mesh_<ContainerAllocator> >::stream(s, "", v);
00059   return s;}
00060 
00061 } // namespace rve_msgs
00062 
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::Mesh_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::Mesh_<ContainerAllocator>  const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::rve_msgs::Mesh_<ContainerAllocator> > {
00071   static const char* value() 
00072   {
00073     return "544197659e77fd938c6b88a78a309ade";
00074   }
00075 
00076   static const char* value(const  ::rve_msgs::Mesh_<ContainerAllocator> &) { return value(); } 
00077   static const uint64_t static_value1 = 0x544197659e77fd93ULL;
00078   static const uint64_t static_value2 = 0x8c6b88a78a309adeULL;
00079 };
00080 
00081 template<class ContainerAllocator>
00082 struct DataType< ::rve_msgs::Mesh_<ContainerAllocator> > {
00083   static const char* value() 
00084   {
00085     return "rve_msgs/Mesh";
00086   }
00087 
00088   static const char* value(const  ::rve_msgs::Mesh_<ContainerAllocator> &) { return value(); } 
00089 };
00090 
00091 template<class ContainerAllocator>
00092 struct Definition< ::rve_msgs::Mesh_<ContainerAllocator> > {
00093   static const char* value() 
00094   {
00095     return "SubMesh[] submeshes\n\
00096 Material[] materials\n\
00097 ================================================================================\n\
00098 MSG: rve_msgs/SubMesh\n\
00099 int8 material_index\n\
00100 uint32[] indices\n\
00101 Vector3[] positions\n\
00102 Vector3[] normals\n\
00103 Vector3[] tangents\n\
00104 Vector3[] binormals\n\
00105 \n\
00106 TexCoordChannel[] tex_coords\n\
00107 ColorChannel[] colors\n\
00108 ================================================================================\n\
00109 MSG: rve_msgs/Vector3\n\
00110 float32 x\n\
00111 float32 y\n\
00112 float32 z\n\
00113 \n\
00114 ================================================================================\n\
00115 MSG: rve_msgs/TexCoordChannel\n\
00116 uint8 dims\n\
00117 TexCoord[] array\n\
00118 \n\
00119 ================================================================================\n\
00120 MSG: rve_msgs/TexCoord\n\
00121 float32[3] uvw\n\
00122 ================================================================================\n\
00123 MSG: rve_msgs/ColorChannel\n\
00124 std_msgs/ColorRGBA[] array\n\
00125 \n\
00126 ================================================================================\n\
00127 MSG: std_msgs/ColorRGBA\n\
00128 float32 r\n\
00129 float32 g\n\
00130 float32 b\n\
00131 float32 a\n\
00132 \n\
00133 ================================================================================\n\
00134 MSG: rve_msgs/Material\n\
00135 uint8 CULL_CLOCKWISE = 0\n\
00136 uint8 CULL_COUNTERCLOCKWISE = 1\n\
00137 uint8 CULL_NONE = 2\n\
00138 \n\
00139 UUID id\n\
00140 \n\
00141 float32 opacity\n\
00142 \n\
00143 bool has_color\n\
00144 ColorRGB color\n\
00145 \n\
00146 bool has_texture\n\
00147 string texture \n\
00148 \n\
00149 bool has_normal_map\n\
00150 string normal_map\n\
00151 \n\
00152 bool disable_shading\n\
00153 \n\
00154 uint8 cull_mode\n\
00155 ================================================================================\n\
00156 MSG: rve_msgs/UUID\n\
00157 uint8[16] data\n\
00158 \n\
00159 ================================================================================\n\
00160 MSG: rve_msgs/ColorRGB\n\
00161 float32 r\n\
00162 float32 g\n\
00163 float32 b\n\
00164 \n\
00165 ";
00166   }
00167 
00168   static const char* value(const  ::rve_msgs::Mesh_<ContainerAllocator> &) { return value(); } 
00169 };
00170 
00171 } // namespace message_traits
00172 } // namespace ros
00173 
00174 namespace ros
00175 {
00176 namespace serialization
00177 {
00178 
00179 template<class ContainerAllocator> struct Serializer< ::rve_msgs::Mesh_<ContainerAllocator> >
00180 {
00181   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00182   {
00183     stream.next(m.submeshes);
00184     stream.next(m.materials);
00185   }
00186 
00187   ROS_DECLARE_ALLINONE_SERIALIZER;
00188 }; // struct Mesh_
00189 } // namespace serialization
00190 } // namespace ros
00191 
00192 namespace ros
00193 {
00194 namespace message_operations
00195 {
00196 
00197 template<class ContainerAllocator>
00198 struct Printer< ::rve_msgs::Mesh_<ContainerAllocator> >
00199 {
00200   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::rve_msgs::Mesh_<ContainerAllocator> & v) 
00201   {
00202     s << indent << "submeshes[]" << std::endl;
00203     for (size_t i = 0; i < v.submeshes.size(); ++i)
00204     {
00205       s << indent << "  submeshes[" << i << "]: ";
00206       s << std::endl;
00207       s << indent;
00208       Printer< ::rve_msgs::SubMesh_<ContainerAllocator> >::stream(s, indent + "    ", v.submeshes[i]);
00209     }
00210     s << indent << "materials[]" << std::endl;
00211     for (size_t i = 0; i < v.materials.size(); ++i)
00212     {
00213       s << indent << "  materials[" << i << "]: ";
00214       s << std::endl;
00215       s << indent;
00216       Printer< ::rve_msgs::Material_<ContainerAllocator> >::stream(s, indent + "    ", v.materials[i]);
00217     }
00218   }
00219 };
00220 
00221 
00222 } // namespace message_operations
00223 } // namespace ros
00224 
00225 #endif // RVE_MSGS_MESSAGE_MESH_H
00226 


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