Graphics attributes object specifying how points are sampled in elements.
More...
#include <graphics.hpp>
|
cmzn_graphicssamplingattributes_id | id |
|
Graphics attributes object specifying how points are sampled in elements.
Graphics attributes object specifying how points are sampled in elements, including sampling mode, density, etc.
- See Also
- Graphics::getGraphicssamplingattributes
Field OpenCMISS::Zinc::Graphicssamplingattributes::getDensityField |
( |
| ) |
|
|
inline |
Gets the scalar field specifying the density of points sampled from elements when used with CELL_POISSON sampling mode.
- Returns
- Handle to density field, or NULL/invalid handle if none or failed.
int OpenCMISS::Zinc::Graphicssamplingattributes::getLocation |
( |
int |
valuesCount, |
|
|
double * |
valuesOut |
|
) |
| |
|
inline |
Gets the location in the element chart where a point is sampled in mode CMZN_ELEMENT_POINT_SAMPLING_MODE_SET_LOCATION. Up to 3 values can be returned.
- Parameters
-
valuesCount | The size of the valuesOut array. |
valuesOut | Array to receive location. |
- Returns
- OpenCMISS::Zinc::OK on success, otherwise OpenCMISS::Zinc::ERROR_ARGUMENT.
bool OpenCMISS::Zinc::Graphicssamplingattributes::isValid |
( |
| ) |
const |
|
inline |
int OpenCMISS::Zinc::Graphicssamplingattributes::setDensityField |
( |
const Field & |
densityField | ) |
|
|
inline |
Sets the scalar field specifying the density of points sampled from elements when used with CELL_POISSON sampling mode. The density is applied per unit volume/area/length, depending on dimension, evaluated at cell centres.
- See Also
- Graphicssamplingattributes::setElementPointSamplingMode
- Parameters
-
densityField | Scalar density field to set. |
- Returns
- OpenCMISS::Zinc::OK on success, otherwise OpenCMISS::Zinc::ERROR_ARGUMENT.
int OpenCMISS::Zinc::Graphicssamplingattributes::setLocation |
( |
int |
valuesCount, |
|
|
const double * |
valuesIn |
|
) |
| |
|
inline |
Sets the location in the element chart where a point is sampled in mode CMZN_ELEMENT_POINT_SAMPLING_MODE_SET_LOCATION. Up to 3 values can be set, with 0 assumed for additional chart coordinates.
- See Also
- Graphicssamplingattributes::setElementPointSamplingMode
- Parameters
-
valuesCount | The size of the valuesIn array. |
valuesIn | Array containing element location to set. |
- Returns
- OpenCMISS::Zinc::OK on success, otherwise OpenCMISS::Zinc::ERROR_ARGUMENT.
The documentation for this class was generated from the following file: