MCPcopy Create free account
hub / github.com/arrayfire/forge / VectorField

Class VectorField

include/fg/vector_field.h:180–302  ·  view source on GitHub ↗

\class VectorField \brief VectorField is a line graph to display two dimensional data. */

Source from the content-addressed store, hash-verified

178 \brief VectorField is a line graph to display two dimensional data.
179 */
180class VectorField {
181 private:
182 fg_vector_field mValue;
183
184 public:
185 /**
186 Creates a VectorField object
187
188 \param[in] pNumPoints is number of data points to display
189 \param[in] pDataType takes one of the values of \ref dtype that indicates
190 the integral data type of VectorField data
191 \param[in] pChartType dictates the dimensionality of the chart
192 */
193 FGAPI VectorField(const unsigned pNumPoints, const dtype pDataType, const ChartType pChartType);
194
195 /**
196 Copy constructor for VectorField
197
198 \param[in] pOther is the VectorField of which we make a copy of.
199 */
200 FGAPI VectorField(const VectorField& pOther);
201
202 /**
203 Construct VectorField ojbect from fg_vector_field resource handle
204
205 \param[in] pHandle is the input fg_vector_field resource handle
206
207 \note This kind of construction assumes ownership of the resource handle
208 is released during the VectorField object's destruction.
209 */
210 FGAPI explicit VectorField(const fg_vector_field pHandle);
211
212 /**
213 VectorField Destructor
214 */
215 FGAPI ~VectorField();
216
217 /**
218 Set global color for the field lines
219
220 \param[in] pColor takes values of forge::Color to define VectorField color
221 */
222 FGAPI void setColor(const forge::Color pColor);
223
224 /**
225 Set global color for the field lines
226
227 \param[in] pRed is Red component in range [0, 1]
228 \param[in] pGreen is Green component in range [0, 1]
229 \param[in] pBlue is Blue component in range [0, 1]
230 \param[in] pAlpha is Blue component in range [0, 1]
231 */
232 FGAPI void setColor(const float pRed, const float pGreen,
233 const float pBlue, const float pAlpha);
234
235 /**
236 Set VectorField legend
237

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected