Forge: surface.h Source File

Forge

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

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 }
fg::FG_SURFACE
Definition: defines.h:149
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::Surface
3d graph to display plots.
Definition: surface.h:27
fg::Color
Color
Definition: defines.h:125