00001 #pragma once 00002 #ifndef CIRCLE_H 00003 #define CIRCLE_H 00004 00005 #include "Rendernode.h" 00006 00007 namespace RenderTools { 00008 00009 class Circle : public Rendernode { 00010 public: 00011 00012 Circle( void ); 00013 virtual ~Circle( void ); 00014 00015 static PropertyPtr create( const XMLNodePtr & xml = XMLNodePtr() ); 00016 virtual void createProperties( void ); 00017 virtual const string getTypeName( bool ofComponent = false ) const; 00018 00019 virtual void onInitialize( void ); 00020 unsigned int getSubdivision( void ); 00021 void setSubdivision( unsigned int subdiv, bool send = true ); 00022 float getBegin( void ); 00023 void setBegin( float degrees, bool send = true ); 00024 float getEnd( void ); 00025 void setEnd( float degrees, bool send = true ); 00026 00027 protected: 00028 GLfloat * m_vertices; 00029 GLfloat * m_texCoords; 00030 GLfloat * m_normals; 00031 float m_begin; 00032 float m_end; 00033 unsigned int m_subdiv; 00034 00035 }; 00036 00037 }; // namespace RenderTools 00038 00039 00040 #endif
1.5.8