Forge: plot3.h Source File

Forge

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

plot3.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 _Plot3;
17 }
18
19 namespace fg
20 {
21
27 class Plot3 {
28 private:
29 internal::_Plot3* value;
30
31 public:
39 FGAPI Plot3(unsigned pNumPoints, dtype pDataType, PlotType pPlotType=fg::FG_LINE, MarkerType pMarkerType=fg::FG_NONE);
40
46 FGAPI Plot3(const Plot3& other);
47
51 FGAPI ~Plot3();
52
58 FGAPI void setColor(fg::Color col);
59
67 FGAPI void setColor(float pRed, float pGreen, float pBlue);
68
79 FGAPI void setAxesLimits(float pXmax, float pXmin, float pYmax, float pYmin, float pZmax, float pZmin);
80
88 FGAPI void setAxesTitles(const char* pXTitle, const char* pYTitle, const char* pZTitle);
89
95 FGAPI float xmax() const;
96
102 FGAPI float xmin() const;
103
109 FGAPI float ymax() const;
110
116 FGAPI float ymin() const;
117
123 FGAPI float zmax() const;
124
130 FGAPI float zmin() const;
131
137 FGAPI unsigned vbo() const;
138
144 FGAPI unsigned size() const;
145
149 FGAPI internal::_Plot3* get() const;
150 };
151
152 }
fg::FG_LINE
Definition: defines.h:142
fg
Definition: CPUCopy.hpp:13
fg::Plot3::setAxesLimits
FGAPI void setAxesLimits(float pXmax, float pXmin, float pYmax, float pYmin, float pZmax, float pZmin)
Set the chart axes limits.
fg::Plot3::vbo
FGAPI unsigned vbo() const
Get the OpenGL Vertex Buffer Object identifier.
fg::Plot3
3d graph to display 3d line plots.
Definition: plot3.h:27
fg::Plot3::zmax
FGAPI float zmax() const
Get Z-Axis maximum value.
fg::Plot3::size
FGAPI unsigned size() const
Get the OpenGL Vertex Buffer Object resource size.
FGAPI
#define FGAPI
Definition: defines.h:32
defines.h
fg::dtype
dtype
Definition: defines.h:131
fg::Plot3::ymin
FGAPI float ymin() const
Get Y-Axis minimum value.
fg::Plot3::xmax
FGAPI float xmax() const
Get X-Axis maximum value.
fg::Plot3::xmin
FGAPI float xmin() const
Get X-Axis minimum value.
fg::PlotType
PlotType
Definition: defines.h:141
fg::MarkerType
MarkerType
Definition: defines.h:147
fg::Plot3::zmin
FGAPI float zmin() const
Get Z-Axis minimum value.
fg::Plot3::setAxesTitles
FGAPI void setAxesTitles(const char *pXTitle, const char *pYTitle, const char *pZTitle)
Set axes titles.
fg::Plot3::~Plot3
FGAPI ~Plot3()
Plot3 Destructor.
internal
Definition: font.h:13
fg::FG_NONE
Definition: defines.h:148
fg::Plot3::ymax
FGAPI float ymax() const
Get Y-Axis maximum value.
fg::Plot3::Plot3
FGAPI Plot3(unsigned pNumPoints, dtype pDataType, PlotType pPlotType=fg::FG_LINE, MarkerType pMarkerType=fg::FG_NONE)
Creates a Plot3 object.
fg::Color
Color
Definition: defines.h:120
fg::Plot3::setColor
FGAPI void setColor(fg::Color col)
Set the color of the 3d line plot.