VectorField is a line graph to display two dimensional data.
More...
#include <vector_field.h>
VectorField is a line graph to display two dimensional data.
- Examples:
- cpu/field.cpp, cpu/stream.cpp, opencl/field.cpp, and opencl/stream.cpp.
◆ VectorField() [1/3]
Creates a VectorField object.
- Parameters
-
[in] | pNumPoints | is number of data points to display |
[in] | pDataType | takes one of the values of dtype that indicates the integral data type of VectorField data |
[in] | pChartType | dictates the dimensionality of the chart |
◆ VectorField() [2/3]
◆ VectorField() [3/3]
Construct VectorField ojbect from fg_vector_field resource handle.
- Parameters
-
[in] | pHandle | is the input fg_vector_field resource handle |
- Note
- This kind of construction assumes ownership of the resource handle is released during the VectorField object's destruction.
◆ ~VectorField()
◆ alphas()
FGAPI unsigned alphas |
( |
| ) |
const |
Get the buffer identifier for alpha values per vertex.
- Returns
- alpha values buffer resource id.
◆ alphasSize()
FGAPI unsigned alphasSize |
( |
| ) |
const |
Get the alpha values buffer size in bytes.
- Returns
- alpha buffer size in bytes
◆ colors()
FGAPI unsigned colors |
( |
| ) |
const |
◆ colorsSize()
FGAPI unsigned colorsSize |
( |
| ) |
const |
◆ directions()
FGAPI unsigned directions |
( |
| ) |
const |
◆ directionsSize()
FGAPI unsigned directionsSize |
( |
| ) |
const |
◆ get()
Get the handle to internal implementation of VectorField.
◆ setColor() [1/2]
◆ setColor() [2/2]
FGAPI void setColor |
( |
const float |
pRed, |
|
|
const float |
pGreen, |
|
|
const float |
pBlue, |
|
|
const float |
pAlpha |
|
) |
| |
Set global color for the field lines.
- Parameters
-
[in] | pRed | is Red component in range [0, 1] |
[in] | pGreen | is Green component in range [0, 1] |
[in] | pBlue | is Blue component in range [0, 1] |
[in] | pAlpha | is Blue component in range [0, 1] |
◆ setLegend()
FGAPI void setLegend |
( |
const char * |
pLegend | ) |
|
◆ vertices()
FGAPI unsigned vertices |
( |
| ) |
const |
◆ verticesSize()
FGAPI unsigned verticesSize |
( |
| ) |
const |
The documentation for this class was generated from the following file: