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>

Inheritance diagram for chrono::ChProperty:

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()

void chrono::ChProperty::ArchiveIn ( ChArchiveIn & archive_in)
virtual

◆ ArchiveOut()

void chrono::ChProperty::ArchiveOut ( ChArchiveOut & archive_out)
virtual

◆ GetSize()

virtual size_t chrono::ChProperty::GetSize ( )
pure virtual

◆ SetSize()

virtual void chrono::ChProperty::SetSize ( const size_t msize)
pure virtual

The documentation for this class was generated from the following files:
  • D:/W/B/src/chrono-9.0.1/src/chrono/geometry/ChProperty.h
  • D:/W/B/src/chrono-9.0.1/src/chrono/geometry/ChProperty.cpp