Forge
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 }
Definition: defines.h:142
Definition: CPUCopy.hpp:13
FGAPI void setAxesLimits(float pXmax, float pXmin, float pYmax, float pYmin, float pZmax, float pZmin)
Set the chart axes limits.
FGAPI unsigned vbo() const
Get the OpenGL Vertex Buffer Object identifier.
3d graph to display 3d line plots.
Definition: plot3.h:27
FGAPI float zmax() const
Get Z-Axis maximum value.
FGAPI unsigned size() const
Get the OpenGL Vertex Buffer Object resource size.
#define FGAPI
Definition: defines.h:32
dtype
Definition: defines.h:131
FGAPI float ymin() const
Get Y-Axis minimum value.
FGAPI float xmax() const
Get X-Axis maximum value.
FGAPI float xmin() const
Get X-Axis minimum value.
PlotType
Definition: defines.h:141
MarkerType
Definition: defines.h:147
FGAPI float zmin() const
Get Z-Axis minimum value.
FGAPI void setAxesTitles(const char *pXTitle, const char *pYTitle, const char *pZTitle)
Set axes titles.
FGAPI ~Plot3()
Plot3 Destructor.
Definition: font.h:13
Definition: defines.h:148
FGAPI float ymax() const
Get Y-Axis maximum value.
FGAPI Plot3(unsigned pNumPoints, dtype pDataType, PlotType pPlotType=fg::FG_LINE, MarkerType pMarkerType=fg::FG_NONE)
Creates a Plot3 object.
Color
Definition: defines.h:120
FGAPI void setColor(fg::Color col)
Set the color of the 3d line plot.