Apollo  6.0
Open source self driving car software
Public Member Functions | Protected Member Functions | List of all members
RadarPoints Class Reference

#include <radarpoints.h>

Inheritance diagram for RadarPoints:
Inheritance graph
Collaboration diagram for RadarPoints:
Collaboration graph

Public Member Functions

 RadarPoints (const std::shared_ptr< QOpenGLShaderProgram > &shaderProgram=nullptr)
 
 ~RadarPoints (void)
 
virtual GLenum GetPrimitiveType (void) const
 
void SetupExtraUniforms (void)
 
GLfloat red (void) const
 
GLfloat green (void) const
 
GLfloat blue (void) const
 
const QVector3D & color (void) const
 
void set_color (const QRgb &rgb)
 
void set_color (const QColor &color)
 
bool FillData (const std::shared_ptr< const apollo::drivers::RadarObstacles > &pData)
 
- Public Member Functions inherited from RenderableObject
 RenderableObject (int vertex_count=1, int vertex_element_count=3, const std::shared_ptr< QOpenGLShaderProgram > &shaderProgram=NullRenderableObj)
 
virtual ~RenderableObject (void)
 
bool is_renderable (void) const
 
void set_is_renderable (bool b)
 
int vertex_count (void) const
 
void set_vertex_count (int vertexCount)
 
int vertex_element_count (void) const
 
void set_vertex_element_count (int vertexElementCount)
 
int VertexBufferSize (void) const
 
void set_shader_program (const std::shared_ptr< QOpenGLShaderProgram > &shaderProgram)
 
bool haveShaderProgram (void)
 
bool Init (std::shared_ptr< QOpenGLShaderProgram > &shaderProgram=NullRenderableObj)
 
void Destroy (void)
 
void Render (const QMatrix4x4 *mvp=nullptr)
 

Protected Member Functions

bool FillVertexBuffer (GLfloat *pBuffer) override
 
- Protected Member Functions inherited from RenderableObject
virtual void Draw (void)
 
virtual void SetupAllAttrPointer (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from RenderableObject
static std::shared_ptr< QOpenGLShaderProgram > CreateShaderProgram (const QString &vertexShaderFileName, const QString &fragShaderFileName)
 
- Static Public Attributes inherited from RenderableObject
static std::shared_ptr< QOpenGLShaderProgram > NullRenderableObj
 
- Protected Attributes inherited from RenderableObject
bool is_init_
 
bool is_renderable_
 
int vertex_count_
 
int vertex_element_count_
 
std::shared_ptr< QOpenGLShaderProgram > shader_program_
 
QOpenGLVertexArrayObject vao_
 
QOpenGLBuffer vbo_
 

Constructor & Destructor Documentation

◆ RadarPoints()

RadarPoints::RadarPoints ( const std::shared_ptr< QOpenGLShaderProgram > &  shaderProgram = nullptr)
explicit

◆ ~RadarPoints()

RadarPoints::~RadarPoints ( void  )
inline

Member Function Documentation

◆ blue()

GLfloat RadarPoints::blue ( void  ) const
inline

◆ color()

const QVector3D& RadarPoints::color ( void  ) const
inline

◆ FillData()

bool RadarPoints::FillData ( const std::shared_ptr< const apollo::drivers::RadarObstacles > &  pData)

◆ FillVertexBuffer()

bool RadarPoints::FillVertexBuffer ( GLfloat *  pBuffer)
overrideprotectedvirtual

Implements RenderableObject.

◆ GetPrimitiveType()

virtual GLenum RadarPoints::GetPrimitiveType ( void  ) const
inlinevirtual

Implements RenderableObject.

◆ green()

GLfloat RadarPoints::green ( void  ) const
inline

◆ red()

GLfloat RadarPoints::red ( void  ) const
inline

◆ set_color() [1/2]

void RadarPoints::set_color ( const QRgb &  rgb)
inline

◆ set_color() [2/2]

void RadarPoints::set_color ( const QColor &  color)
inline

◆ SetupExtraUniforms()

void RadarPoints::SetupExtraUniforms ( void  )
inlinevirtual

Reimplemented from RenderableObject.


The documentation for this class was generated from the following file: