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 #ifndef opengl_CAxis_H
00029 #define opengl_CAxis_H
00030
00031 #include <mrpt/opengl/CRenderizable.h>
00032
00033 namespace mrpt
00034 {
00035 namespace opengl
00036 {
00037 class MRPTDLLIMPEXP CAxis;
00038
00039
00040 DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE( CAxis, CRenderizable )
00041
00042
00045 class MRPTDLLIMPEXP CAxis : public CRenderizable
00046 {
00047 DEFINE_SERIALIZABLE( CAxis )
00048 protected:
00049
00050 public:
00051 float m_xmin,m_ymin,m_zmin;
00052 float m_xmax,m_ymax,m_zmax;
00053 float m_frecuency;
00054 float m_lineWidth;
00055 bool m_marks;
00056
00058 static CAxisPtr Create(
00059 float xmin=-1.0f,float ymin=-1.0f, float zmin=-1.0f,
00060 float xmax=1.0f, float ymax=1.0f, float zmax=1.0f,
00061 float frecuency = 0.25f, float lineWidth = 3.0f, bool marks=false)
00062 {
00063 return CAxisPtr( new CAxis( xmin,ymin, zmin, xmax,ymax,zmax,frecuency,lineWidth,marks ) );
00064 }
00065
00068 void render();
00069
00070 private:
00073 CAxis(
00074 float xmin=-1.0f,float ymin=-1.0f, float zmin=-1.0f,
00075 float xmax=1.0f, float ymax=1.0f, float zmax=1.0f,
00076 float frecuency = 0.25f, float lineWidth = 3.0f, bool marks=false) :
00077 m_xmin(xmin),m_ymin(ymin),m_zmin(zmin),
00078 m_xmax(xmax),m_ymax(ymax),m_zmax(zmax),
00079 m_frecuency(frecuency),
00080 m_lineWidth(lineWidth),
00081 m_marks(marks)
00082 {
00083 }
00084
00086 virtual ~CAxis() { }
00087 };
00088
00089 }
00090 }
00091
00092 #endif