SubMesh.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/SubMesh.msg */
00002 #ifndef RVE_MSGS_MESSAGE_SUBMESH_H
00003 #define RVE_MSGS_MESSAGE_SUBMESH_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/Vector3.h"
00018 #include "rve_msgs/Vector3.h"
00019 #include "rve_msgs/Vector3.h"
00020 #include "rve_msgs/Vector3.h"
00021 #include "rve_msgs/TexCoordChannel.h"
00022 #include "rve_msgs/ColorChannel.h"
00023 
00024 namespace rve_msgs
00025 {
00026 template <class ContainerAllocator>
00027 struct SubMesh_ {
00028   typedef SubMesh_<ContainerAllocator> Type;
00029 
00030   SubMesh_()
00031   : material_index(0)
00032   , indices()
00033   , positions()
00034   , normals()
00035   , tangents()
00036   , binormals()
00037   , tex_coords()
00038   , colors()
00039   {
00040   }
00041 
00042   SubMesh_(const ContainerAllocator& _alloc)
00043   : material_index(0)
00044   , indices(_alloc)
00045   , positions(_alloc)
00046   , normals(_alloc)
00047   , tangents(_alloc)
00048   , binormals(_alloc)
00049   , tex_coords(_alloc)
00050   , colors(_alloc)
00051   {
00052   }
00053 
00054   typedef int8_t _material_index_type;
00055   int8_t material_index;
00056 
00057   typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other >  _indices_type;
00058   std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other >  indices;
00059 
00060   typedef std::vector< ::rve_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::Vector3_<ContainerAllocator> >::other >  _positions_type;
00061   std::vector< ::rve_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::Vector3_<ContainerAllocator> >::other >  positions;
00062 
00063   typedef std::vector< ::rve_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::Vector3_<ContainerAllocator> >::other >  _normals_type;
00064   std::vector< ::rve_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::Vector3_<ContainerAllocator> >::other >  normals;
00065 
00066   typedef std::vector< ::rve_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::Vector3_<ContainerAllocator> >::other >  _tangents_type;
00067   std::vector< ::rve_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::Vector3_<ContainerAllocator> >::other >  tangents;
00068 
00069   typedef std::vector< ::rve_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::Vector3_<ContainerAllocator> >::other >  _binormals_type;
00070   std::vector< ::rve_msgs::Vector3_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::Vector3_<ContainerAllocator> >::other >  binormals;
00071 
00072   typedef std::vector< ::rve_msgs::TexCoordChannel_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::TexCoordChannel_<ContainerAllocator> >::other >  _tex_coords_type;
00073   std::vector< ::rve_msgs::TexCoordChannel_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::TexCoordChannel_<ContainerAllocator> >::other >  tex_coords;
00074 
00075   typedef std::vector< ::rve_msgs::ColorChannel_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::ColorChannel_<ContainerAllocator> >::other >  _colors_type;
00076   std::vector< ::rve_msgs::ColorChannel_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::rve_msgs::ColorChannel_<ContainerAllocator> >::other >  colors;
00077 
00078 
00079   typedef boost::shared_ptr< ::rve_msgs::SubMesh_<ContainerAllocator> > Ptr;
00080   typedef boost::shared_ptr< ::rve_msgs::SubMesh_<ContainerAllocator>  const> ConstPtr;
00081   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00082 }; // struct SubMesh
00083 typedef  ::rve_msgs::SubMesh_<std::allocator<void> > SubMesh;
00084 
00085 typedef boost::shared_ptr< ::rve_msgs::SubMesh> SubMeshPtr;
00086 typedef boost::shared_ptr< ::rve_msgs::SubMesh const> SubMeshConstPtr;
00087 
00088 
00089 template<typename ContainerAllocator>
00090 std::ostream& operator<<(std::ostream& s, const  ::rve_msgs::SubMesh_<ContainerAllocator> & v)
00091 {
00092   ros::message_operations::Printer< ::rve_msgs::SubMesh_<ContainerAllocator> >::stream(s, "", v);
00093   return s;}
00094 
00095 } // namespace rve_msgs
00096 
00097 namespace ros
00098 {
00099 namespace message_traits
00100 {
00101 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::SubMesh_<ContainerAllocator> > : public TrueType {};
00102 template<class ContainerAllocator> struct IsMessage< ::rve_msgs::SubMesh_<ContainerAllocator>  const> : public TrueType {};
00103 template<class ContainerAllocator>
00104 struct MD5Sum< ::rve_msgs::SubMesh_<ContainerAllocator> > {
00105   static const char* value() 
00106   {
00107     return "2231ad7f8ed5b42a3c400023b581b852";
00108   }
00109 
00110   static const char* value(const  ::rve_msgs::SubMesh_<ContainerAllocator> &) { return value(); } 
00111   static const uint64_t static_value1 = 0x2231ad7f8ed5b42aULL;
00112   static const uint64_t static_value2 = 0x3c400023b581b852ULL;
00113 };
00114 
00115 template<class ContainerAllocator>
00116 struct DataType< ::rve_msgs::SubMesh_<ContainerAllocator> > {
00117   static const char* value() 
00118   {
00119     return "rve_msgs/SubMesh";
00120   }
00121 
00122   static const char* value(const  ::rve_msgs::SubMesh_<ContainerAllocator> &) { return value(); } 
00123 };
00124 
00125 template<class ContainerAllocator>
00126 struct Definition< ::rve_msgs::SubMesh_<ContainerAllocator> > {
00127   static const char* value() 
00128   {
00129     return "int8 material_index\n\
00130 uint32[] indices\n\
00131 Vector3[] positions\n\
00132 Vector3[] normals\n\
00133 Vector3[] tangents\n\
00134 Vector3[] binormals\n\
00135 \n\
00136 TexCoordChannel[] tex_coords\n\
00137 ColorChannel[] colors\n\
00138 ================================================================================\n\
00139 MSG: rve_msgs/Vector3\n\
00140 float32 x\n\
00141 float32 y\n\
00142 float32 z\n\
00143 \n\
00144 ================================================================================\n\
00145 MSG: rve_msgs/TexCoordChannel\n\
00146 uint8 dims\n\
00147 TexCoord[] array\n\
00148 \n\
00149 ================================================================================\n\
00150 MSG: rve_msgs/TexCoord\n\
00151 float32[3] uvw\n\
00152 ================================================================================\n\
00153 MSG: rve_msgs/ColorChannel\n\
00154 std_msgs/ColorRGBA[] array\n\
00155 \n\
00156 ================================================================================\n\
00157 MSG: std_msgs/ColorRGBA\n\
00158 float32 r\n\
00159 float32 g\n\
00160 float32 b\n\
00161 float32 a\n\
00162 \n\
00163 ";
00164   }
00165 
00166   static const char* value(const  ::rve_msgs::SubMesh_<ContainerAllocator> &) { return value(); } 
00167 };
00168 
00169 } // namespace message_traits
00170 } // namespace ros
00171 
00172 namespace ros
00173 {
00174 namespace serialization
00175 {
00176 
00177 template<class ContainerAllocator> struct Serializer< ::rve_msgs::SubMesh_<ContainerAllocator> >
00178 {
00179   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00180   {
00181     stream.next(m.material_index);
00182     stream.next(m.indices);
00183     stream.next(m.positions);
00184     stream.next(m.normals);
00185     stream.next(m.tangents);
00186     stream.next(m.binormals);
00187     stream.next(m.tex_coords);
00188     stream.next(m.colors);
00189   }
00190 
00191   ROS_DECLARE_ALLINONE_SERIALIZER;
00192 }; // struct SubMesh_
00193 } // namespace serialization
00194 } // namespace ros
00195 
00196 namespace ros
00197 {
00198 namespace message_operations
00199 {
00200 
00201 template<class ContainerAllocator>
00202 struct Printer< ::rve_msgs::SubMesh_<ContainerAllocator> >
00203 {
00204   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::rve_msgs::SubMesh_<ContainerAllocator> & v) 
00205   {
00206     s << indent << "material_index: ";
00207     Printer<int8_t>::stream(s, indent + "  ", v.material_index);
00208     s << indent << "indices[]" << std::endl;
00209     for (size_t i = 0; i < v.indices.size(); ++i)
00210     {
00211       s << indent << "  indices[" << i << "]: ";
00212       Printer<uint32_t>::stream(s, indent + "  ", v.indices[i]);
00213     }
00214     s << indent << "positions[]" << std::endl;
00215     for (size_t i = 0; i < v.positions.size(); ++i)
00216     {
00217       s << indent << "  positions[" << i << "]: ";
00218       s << std::endl;
00219       s << indent;
00220       Printer< ::rve_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + "    ", v.positions[i]);
00221     }
00222     s << indent << "normals[]" << std::endl;
00223     for (size_t i = 0; i < v.normals.size(); ++i)
00224     {
00225       s << indent << "  normals[" << i << "]: ";
00226       s << std::endl;
00227       s << indent;
00228       Printer< ::rve_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + "    ", v.normals[i]);
00229     }
00230     s << indent << "tangents[]" << std::endl;
00231     for (size_t i = 0; i < v.tangents.size(); ++i)
00232     {
00233       s << indent << "  tangents[" << i << "]: ";
00234       s << std::endl;
00235       s << indent;
00236       Printer< ::rve_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + "    ", v.tangents[i]);
00237     }
00238     s << indent << "binormals[]" << std::endl;
00239     for (size_t i = 0; i < v.binormals.size(); ++i)
00240     {
00241       s << indent << "  binormals[" << i << "]: ";
00242       s << std::endl;
00243       s << indent;
00244       Printer< ::rve_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + "    ", v.binormals[i]);
00245     }
00246     s << indent << "tex_coords[]" << std::endl;
00247     for (size_t i = 0; i < v.tex_coords.size(); ++i)
00248     {
00249       s << indent << "  tex_coords[" << i << "]: ";
00250       s << std::endl;
00251       s << indent;
00252       Printer< ::rve_msgs::TexCoordChannel_<ContainerAllocator> >::stream(s, indent + "    ", v.tex_coords[i]);
00253     }
00254     s << indent << "colors[]" << std::endl;
00255     for (size_t i = 0; i < v.colors.size(); ++i)
00256     {
00257       s << indent << "  colors[" << i << "]: ";
00258       s << std::endl;
00259       s << indent;
00260       Printer< ::rve_msgs::ColorChannel_<ContainerAllocator> >::stream(s, indent + "    ", v.colors[i]);
00261     }
00262   }
00263 };
00264 
00265 
00266 } // namespace message_operations
00267 } // namespace ros
00268 
00269 #endif // RVE_MSGS_MESSAGE_SUBMESH_H
00270 


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