Forge: plot.h Source File

Forge

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

plot.h
Go to the documentation of this file.
1 /*******************************************************
2 * Copyright (c) 2015-2019, ArrayFire
3 * All rights reserved.
4 *
5 * This file is distributed under 3-clause BSD license.
6 * The complete license agreement can be obtained at:
7 * http://arrayfire.com/licenses/BSD-3-Clause
8 ********************************************************/
9
10 #pragma once
11
12 #include <fg/defines.h>
13
14 namespace internal
15 {
16 class _Plot;
17 }
18
19 namespace fg
20 {
21
27 class Plot {
28 private:
29 internal::_Plot* value;
30
31 public:
39 FGAPI Plot(unsigned pNumPoints, dtype pDataType, fg::PlotType=fg::FG_LINE, fg::MarkerType=fg::FG_NONE);
40
46 FGAPI Plot(const Plot& other);
47
51 FGAPI ~Plot();
52
58 FGAPI void setColor(fg::Color col);
59
67 FGAPI void setColor(float pRed, float pGreen, float pBlue);
68
77 FGAPI void setAxesLimits(float pXmax, float pXmin, float pYmax, float pYmin);
78
85 FGAPI void setAxesTitles(const char* pXTitle, const char* pYTitle);
86
92 FGAPI float xmax() const;
93
99 FGAPI float xmin() const;
100
106 FGAPI float ymax() const;
107
113 FGAPI float ymin() const;
114
120 FGAPI unsigned vbo() const;
121
127 FGAPI unsigned size() const;
128
132 FGAPI internal::_Plot* get() const;
133 };
134
135 }
fg::FG_LINE
Definition: defines.h:147
fg::Plot
Line graph to display plots.
Definition: plot.h:27
fg
Definition: CPUCopy.hpp:13
FGAPI
#define FGAPI
Definition: defines.h:32
defines.h
fg::dtype
dtype
Definition: defines.h:136
fg::PlotType
PlotType
Definition: defines.h:146
fg::MarkerType
MarkerType
Definition: defines.h:152
internal
Definition: font.h:13
fg::FG_NONE
Definition: defines.h:153
fg::Color
Color
Definition: defines.h:125