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:
43  FGAPI Surface(unsigned pNumXPoints, unsigned pNumYPoints, dtype pDataType, PlotType pPlotType=fg::FG_SURFACE, MarkerType pMarkerType=fg::FG_NONE);
44 
50  FGAPI Surface(const Surface& other);
51 
55  FGAPI ~Surface();
56 
62  FGAPI void setColor(fg::Color col);
63 
71  FGAPI void setColor(float pRed, float pGreen, float pBlue);
72 
83  FGAPI void setAxesLimits(float pXmax, float pXmin, float pYmax, float pYmin, float pZmax, float pZmin);
84 
92  FGAPI void setAxesTitles(const char* pXTitle, const char* pYTitle, const char* pZTitle);
93 
99  FGAPI float xmax() const;
100 
106  FGAPI float xmin() const;
107 
113  FGAPI float ymax() const;
114 
120  FGAPI float ymin() const;
121 
127  FGAPI float zmax() const;
128 
134  FGAPI float zmin() const;
135 
141  FGAPI unsigned vbo() const;
142 
148  FGAPI unsigned size() const;
149 
153  FGAPI internal::_Surface* get() const;
154 };
155 
156 }
Definition: defines.h:149
Definition: CPUCopy.hpp:13
#define FGAPI
Definition: defines.h:32
dtype
Definition: defines.h:136
PlotType
Definition: defines.h:146
MarkerType
Definition: defines.h:152
Definition: font.h:13
Definition: defines.h:153
3d graph to display plots.
Definition: surface.h:27
Color
Definition: defines.h:125