Forge
surface.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 _Surface;
17 }
18 
19 namespace fg
20 {
21 
27 class Surface {
28  private:
29  internal::_Surface* value;
30 
31  public:
40  FGAPI Surface(unsigned pNumXPoints, unsigned pNumYPoints, dtype pDataType, PlotType pPlotType=fg::FG_SURFACE, MarkerType pMarkerType=fg::FG_NONE);
41 
47  FGAPI Surface(const Surface& other);
48 
52  FGAPI ~Surface();
53 
59  FGAPI void setColor(fg::Color col);
60 
68  FGAPI void setColor(float pRed, float pGreen, float pBlue);
69 
78  FGAPI void setAxesLimits(float pXmax, float pXmin, float pYmax, float pYmin, float pZmax, float pZmin);
79 
87  FGAPI void setAxesTitles(const char* pXTitle, const char* pYTitle, const char* pZTitle);
88 
94  FGAPI float xmax() const;
95 
101  FGAPI float xmin() const;
102 
108  FGAPI float ymax() const;
109 
115  FGAPI float ymin() const;
116 
122  FGAPI float zmax() const;
123 
129  FGAPI float zmin() const;
130 
136  FGAPI unsigned vbo() const;
137 
143  FGAPI unsigned size() const;
144 
148  FGAPI internal::_Surface* get() const;
149 };
150 
151 }
Definition: defines.h:144
FGAPI float xmin() const
Get X-Axis minimum value.
Definition: CPUCopy.hpp:13
FGAPI Surface(unsigned pNumXPoints, unsigned pNumYPoints, dtype pDataType, PlotType pPlotType=fg::FG_SURFACE, MarkerType pMarkerType=fg::FG_NONE)
Creates a Surface object.
FGAPI float zmax() const
Get Z-Axis maximum value.
#define FGAPI
Definition: defines.h:32
FGAPI ~Surface()
Plot Destructor.
dtype
Definition: defines.h:131
PlotType
Definition: defines.h:141
MarkerType
Definition: defines.h:147
FGAPI void setAxesTitles(const char *pXTitle, const char *pYTitle, const char *pZTitle)
Set axes titles.
Definition: font.h:13
FGAPI float ymin() const
Get Y-Axis minimum value.
FGAPI float xmax() const
Get X-Axis maximum value.
Definition: defines.h:148
FGAPI void setColor(fg::Color col)
Set the color of line graph(plot)
FGAPI unsigned size() const
Get the OpenGL Vertex Buffer Object resource size.
FGAPI float ymax() const
Get Y-Axis maximum value.
FGAPI float zmin() const
Get Z-Axis minimum value.
FGAPI void setAxesLimits(float pXmax, float pXmin, float pYmax, float pYmin, float pZmax, float pZmin)
Set the chart axes limits.
3d graph to display plots.
Definition: surface.h:27
Color
Definition: defines.h:120
FGAPI unsigned vbo() const
Get the OpenGL Vertex Buffer Object identifier.