Description
Base class for properties to attach to vertices or particles as arrays of data.
These properties are virtual classes so that one can store a list of them in a triangle mesh, or a particle cluster, or a glyph array. They are particularly useful for storing data that later must be used in postprocessing, for example a scalar property could be the temperature of particles to be rendered as falsecolor.
#include <ChProperty.h>

Public Member Functions | |
virtual ChProperty * | clone ()=0 |
virtual size_t | GetSize ()=0 |
Get current size of data array. | |
virtual void | SetSize (const size_t msize)=0 |
Resize data array to some amount. All internal data will be reset. | |
virtual void | ArchiveOut (ChArchiveOut &archive_out) |
Method to allow serialization of transient data to archives. | |
virtual void | ArchiveIn (ChArchiveIn &archive_in) |
Method to allow de-serialization of transient data from archives. | |
Public Attributes | |
std::string | name |
name of this property | |
Member Function Documentation
◆ ArchiveIn()
|
virtual |
Method to allow de-serialization of transient data from archives.
Reimplemented in chrono::ChPropertyT< T >, chrono::ChPropertyT< ChColor >, chrono::ChPropertyT< ChQuaternion<> >, chrono::ChPropertyT< ChVector3d >, and chrono::ChPropertyT< double >.
◆ ArchiveOut()
|
virtual |
Method to allow serialization of transient data to archives.
Reimplemented in chrono::ChPropertyT< T >, chrono::ChPropertyT< ChColor >, chrono::ChPropertyT< ChQuaternion<> >, chrono::ChPropertyT< ChVector3d >, and chrono::ChPropertyT< double >.
◆ GetSize()
|
pure virtual |
Get current size of data array.
Implemented in chrono::ChPropertyT< T >, chrono::ChPropertyT< ChColor >, chrono::ChPropertyT< ChQuaternion<> >, chrono::ChPropertyT< ChVector3d >, and chrono::ChPropertyT< double >.
◆ SetSize()
|
pure virtual |
Resize data array to some amount. All internal data will be reset.
Implemented in chrono::ChPropertyT< T >, chrono::ChPropertyT< ChColor >, chrono::ChPropertyT< ChQuaternion<> >, chrono::ChPropertyT< ChVector3d >, and chrono::ChPropertyT< double >.
The documentation for this class was generated from the following files:
- C:/M/B/src/chrono-9.0.1/src/chrono/geometry/ChProperty.h
- C:/M/B/src/chrono-9.0.1/src/chrono/geometry/ChProperty.cpp