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

Method VectorField

src/backend/common/chart_renderables.hpp:96–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94class VectorField : public ChartRenderableBase<detail::vector_field_impl> {
95 public:
96 VectorField(const unsigned pNumPoints,
97 const forge::dtype pDataType,
98 const forge::ChartType pChartType) {
99 if (pChartType == FG_CHART_2D) {
100 mShrdPtr = std::make_shared< detail::vector_field2d_impl >(pNumPoints, pDataType);
101 } else {
102 mShrdPtr = std::make_shared< detail::vector_field_impl >(pNumPoints, pDataType);
103 }
104 }
105
106 VectorField(const fg_vector_field pOther)
107 : ChartRenderableBase<detail::vector_field_impl>(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected