localTypes.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00039 
00040 
00041 #ifndef LOCAL_TYPES_H_
00042 #define LOCAL_TYPES_H_
00043 
00044 #include <vector>
00045 #include <boost/shared_ptr.hpp>
00046 #include <boost/weak_ptr.hpp>
00047 #include <pcl/point_types.h>
00048 #include <pcl/point_cloud.h>
00049 
00050 // Forward declaration for commonly used objects
00051 class Command;
00052 class CommandQueue;
00053 class Selection;
00054 class CopyBuffer;
00055 class Cloud;
00056 
00057 // Some helpful typedef's for commonly used objects
00058 
00060 typedef pcl::PointXYZRGBA Point3D;
00061 
00063 typedef pcl::PointCloud<Point3D> Cloud3D;
00064 
00066 typedef Cloud3D::Ptr PclCloudPtr;
00067 
00069 typedef boost::shared_ptr<Cloud> CloudPtr;
00070 
00073 typedef boost::shared_ptr<const Cloud> ConstCloudPtr;
00074 
00076 typedef boost::shared_ptr<Selection> SelectionPtr;
00077 
00080 typedef boost::shared_ptr<const Selection> ConstSelectionPtr;
00081 
00083 typedef boost::shared_ptr<CopyBuffer> CopyBufferPtr;
00084 
00087 typedef boost::shared_ptr<const CopyBuffer> ConstCopyBufferPtr;
00088 
00090 typedef boost::shared_ptr<Command> CommandPtr;
00091 
00093 typedef std::vector<unsigned int> IndexVector;
00094 
00097 typedef std::vector<const int> ConstIndexVector;
00098 
00101 typedef boost::shared_ptr<CommandQueue> CommandQueuePtr;
00102 
00104 typedef unsigned int BitMask;
00105 
00107 enum KeyModifier
00108 {
00109   NONE = 0x00000000,
00110   SHFT = 0x02000000,
00111   CTRL = 0x04000000,
00112   ALT  = 0x08000000
00113 };
00114 
00116 enum MouseButton
00117 {
00118   NOBUTTON,
00119   LEFT,
00120   RIGHT
00121 };
00122 
00125 enum Axis
00126 {
00127   X,
00128   Y,
00129   Z
00130 };
00131 
00133 enum Color
00134 {
00135   RED,
00136   GREEN,
00137   BLUE,
00138   RGB
00139 };
00140 
00143 enum ColorScheme
00144 {
00145   COLOR_BY_X = 0,
00146   COLOR_BY_Y,
00147   COLOR_BY_Z,
00148   COLOR_BY_RGB,
00149   COLOR_BY_PURE
00150 };
00151 
00153 struct IncIndex
00154 {
00155   unsigned int val_;
00156   IncIndex(int v=0)
00157   {
00158     val_ = v;
00159   }
00160   unsigned int operator()()
00161   {
00162     return (val_++);
00163   }
00164 };
00165 
00169 const unsigned int XYZ_SIZE = 3;
00170 
00174 const unsigned int MATRIX_SIZE_DIM = 4;
00175 
00178 const unsigned int MATRIX_SIZE = MATRIX_SIZE_DIM * MATRIX_SIZE_DIM;
00179 
00181 const unsigned int WINDOW_WIDTH = 1200;
00183 const unsigned int WINDOW_HEIGHT = 1000;
00184 
00187 const float DISPLAY_Z_TRANSLATION = -2.0f;
00188 
00190 const float TRACKBALL_RADIUS_SCALE = 0.4f;
00191 
00192 
00193 
00194 #endif // LOCAL_TYPES_H_


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:25:14