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

Class histogram_impl

src/backend/opengl/histogram_impl.hpp:22–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20{
21
22class histogram_impl : public AbstractRenderable {
23 private:
24 /* plot points characteristics */
25 forge::dtype mDataType;
26 gl::GLenum mGLType;
27 gl::GLuint mNBins;
28 /* OpenGL Objects */
29 ShaderProgram mProgram;
30 /* internal shader attributes for mProgram
31 * shader program to render histogram bars for each
32 * bin*/
33 gl::GLuint mYMaxIndex;
34 gl::GLuint mNBinsIndex;
35 gl::GLuint mMatIndex;
36 gl::GLuint mPointIndex;
37 gl::GLuint mFreqIndex;
38 gl::GLuint mColorIndex;
39 gl::GLuint mAlphaIndex;
40 gl::GLuint mPVCIndex;
41 gl::GLuint mPVAIndex;
42 gl::GLuint mBColorIndex;
43
44 std::map<int, gl::GLuint> mVAOMap;
45
46 /* bind and unbind helper functions
47 * for rendering resources */
48 void bindResources(const int pWindowId);
49 void unbindResources() const;
50
51 public:
52 histogram_impl(const uint pNBins, const forge::dtype pDataType);
53 ~histogram_impl();
54
55 void render(const int pWindowId,
56 const int pX, const int pY, const int pVPW, const int pVPH,
57 const glm::mat4 &pView, const glm::mat4 &pOrient);
58};
59
60}
61}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected