|
CC_CORE_LIB_API | ScalarField (const char *name=nullptr) |
| Default constructor. More...
|
|
CC_CORE_LIB_API | ScalarField (const ScalarField &sf) |
| Copy constructor. More...
|
|
CC_CORE_LIB_API void | setName (const char *name) |
| Sets scalar field name.
|
|
const char * | getName () const |
| Returns scalar field name.
|
|
CC_CORE_LIB_API void | computeMeanAndVariance (ScalarType &mean, ScalarType *variance=nullptr) const |
| Computes the mean value (and optionally the variance value) of the scalar field. More...
|
|
virtual CC_CORE_LIB_API void | computeMinAndMax () |
| Determines the min and max values.
|
|
void | flagValueAsInvalid (std::size_t index) |
| Sets the value as 'invalid' (i.e. CCCoreLib::NAN_VALUE)
|
|
ScalarType | getMin () const |
| Returns the minimum value.
|
|
ScalarType | getMax () const |
| Returns the maximum value.
|
|
void | fill (ScalarType fillValue=0) |
| Fills the array with a particular value.
|
|
CC_CORE_LIB_API bool | reserveSafe (std::size_t count) |
| Reserves memory (no exception thrown)
|
|
CC_CORE_LIB_API bool | resizeSafe (std::size_t count, bool initNewElements=false, ScalarType valueForNewElements=0) |
| Resizes memory (no exception thrown)
|
|
ScalarType & | getValue (std::size_t index) |
|
const ScalarType & | getValue (std::size_t index) const |
|
void | setValue (std::size_t index, ScalarType value) |
|
void | addElement (ScalarType value) |
|
unsigned | currentSize () const |
|
void | swap (std::size_t i1, std::size_t i2) |
|
| CCShareable () |
| Default constructor.
|
|
virtual void | link () |
| Increase counter. More...
|
|
virtual void | release () |
| Decrease counter and deletes object when 0. More...
|
|
virtual unsigned | getLinkCount () const |
| Returns the current link count. More...
|
|
A simple scalar field (to be associated to a point cloud)
A monodimensional array of scalar values. It has also specific parameters for display purposes.
Invalid values can be represented by CCCoreLib::NAN_VALUE.