MCPcopy Create free account
hub / github.com/arrayfire/forge / ChartRenderableBase

Class ChartRenderableBase

src/backend/common/chart_common.hpp:25–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23// class, otherwise you cannot use this class.
24template<class RenderableType>
25class ChartRenderableBase {
26 protected:
27 std::shared_ptr< RenderableType > mShrdPtr;
28
29 public:
30 ChartRenderableBase() {
31 }
32
33 ChartRenderableBase(const std::shared_ptr< RenderableType > &pValue)
34 : mShrdPtr(pValue) {
35 }
36
37 inline const std::shared_ptr< RenderableType >& impl() const {
38 return mShrdPtr;
39 }
40
41 inline void setColor(const float pRed, const float pGreen,
42 const float pBlue, const float pAlpha) {
43 mShrdPtr->setColor(pRed, pGreen, pBlue, pAlpha);
44 }
45
46 inline void setLegend(const char* pLegend) {
47 mShrdPtr->setLegend(pLegend);
48 }
49
50 inline unsigned vbo() const {
51 return mShrdPtr->vbo();
52 }
53
54 inline unsigned cbo() const {
55 return mShrdPtr->cbo();
56 }
57
58 inline unsigned abo() const {
59 return mShrdPtr->abo();
60 }
61
62 inline size_t vboSize() const {
63 return mShrdPtr->vboSize();
64 }
65
66 inline size_t cboSize() const {
67 return mShrdPtr->cboSize();
68 }
69
70 inline size_t aboSize() const {
71 return mShrdPtr->aboSize();
72 }
73
74 inline void render(const int pWindowId,
75 const int pX, const int pY, const int pVPW, const int pVPH,
76 const glm::mat4& pTransform) const {
77 mShrdPtr->render(pWindowId, pX, pY, pVPW, pVPH, pTransform);
78 }
79};
80
81}
82}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected