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 #ifndef opengl_CGridPlaneXY_H
00030 #define opengl_CGridPlaneXY_H
00031
00032 #include <mrpt/opengl/CRenderizable.h>
00033
00034 namespace mrpt
00035 {
00036 namespace opengl
00037 {
00038 class MRPTDLLIMPEXP CGridPlaneXY;
00039
00040
00041 DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE( CGridPlaneXY , CRenderizable )
00042
00043
00046 class MRPTDLLIMPEXP CGridPlaneXY : public CRenderizable
00047 {
00048 DEFINE_SERIALIZABLE( CGridPlaneXY )
00049 public:
00050 float m_xMin, m_xMax;
00051 float m_yMin, m_yMax;
00052 float m_z;
00053 float m_frequency;
00054
00057 void render();
00058
00060 static CGridPlaneXYPtr Create(
00061 float xMin = -10,
00062 float xMax = 10 ,
00063 float yMin = -10,
00064 float yMax = 10,
00065 float z = 0,
00066 float frequency = 1 )
00067 {
00068 return CGridPlaneXYPtr( new CGridPlaneXY(
00069 xMin,
00070 xMax,
00071 yMin,
00072 yMax,
00073 z,
00074 frequency ) );
00075 }
00076
00077
00078 private:
00081 CGridPlaneXY(
00082 float xMin = -10,
00083 float xMax = 10 ,
00084 float yMin = -10,
00085 float yMax = 10,
00086 float z = 0,
00087 float frequency = 1
00088 ) :
00089 m_xMin(xMin),
00090 m_xMax(xMax),
00091 m_yMin(yMin),
00092 m_yMax(yMax),
00093 m_z(z),
00094 m_frequency(frequency)
00095 {
00096 }
00098 virtual ~CGridPlaneXY() { }
00099 };
00100
00101 }
00102
00103 }
00104
00105
00106 #endif