Atoms Crowd
4.1.0
|
Metadata template class. More...
#include <TypedArrayMetadata.h>
Public Types | |
typedef std::vector< T > | valueType |
value type | |
Public Member Functions | |
bool | equalWithAbsError (const T &a, const T &b) const |
std::string | typeStr () const |
Type string. | |
unsigned int | typeId () const |
Type id. | |
std::string | basicTypeStr () const |
Type string. | |
TypedArrayMetadata () | |
Default constructor. | |
TypedArrayMetadata (const std::vector< T > &value) | |
Constructor. | |
TypedArrayMetadata (const TypedArrayMetadata< T > &other) | |
Copy constructor. | |
~TypedArrayMetadata () | |
Destructor. | |
TypedArrayMetadata & | operator= (const TypedArrayMetadata< T > &other) |
Assign operator. | |
virtual void | copy (Metadata *other) |
copy value | |
virtual AtomsPtr< Metadata > | clone () const |
clone object | |
virtual size_t | memSize () const |
Memory size. | |
std::vector< T > | value () const |
Get value. | |
std::vector< T > & | get () |
Get reference. | |
const std::vector< T > & | get () const |
Get reference. | |
void | set (const std::vector< T > &value) |
Set value. | |
AtomsPtr< Metadata > | getBasicTypeMetadata (size_t index) const |
void | getBasicTypeMetadataInPlace (size_t index, AtomsPtr< Metadata > &OutMeta) const |
T | getBasicTypeValue (size_t index) const |
T | getBlendedBasicTypeValue (size_t index1, size_t index2, const double weight) const |
AtomsPtr< Metadata > | getBlendedBasicTypeMetadata (size_t index1, size_t index2, const double weight) const |
void | getBlendedBasicTypeMetadataInPlace (size_t index1, size_t index2, const double weight, AtomsPtr< Metadata > &OutMeta) const |
virtual AtomsPtr< Metadata > | getDoubleBlendedBasicTypeMetadata (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const |
virtual void | getDoubleBlendedBasicTypeMetadataInPlace (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight, AtomsPtr< Metadata > &OutMeta) const |
virtual T | getDoubleBlendedBasicTypeMetadataValue (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const |
virtual void | hash (MurmurHash3 &hasher) const |
Hash function. | |
virtual size_t | size () const |
virtual void | reverse () |
Revers the vector. | |
virtual bool | isStatic () const |
Return true if the vector contains the same value for each entry. | |
virtual bool | serialise (Archive &outStream) const |
Serialise. | |
virtual bool | deserialise (Archive &inStream) |
Deserialise. | |
virtual void | toString (std::stringstream &ss) const |
String conversion. | |
bool | equalWithAbsError (const AtomsCore::Box2 &a, const AtomsCore::Box2 &b) const |
ATOMSCORE_EXPORT void | toString (std::stringstream &ss) const |
String conversion. | |
bool | equalWithAbsError (const AtomsCore::Box2f &a, const AtomsCore::Box2f &b) const |
ATOMSCORE_EXPORT void | toString (std::stringstream &ss) const |
String conversion. | |
ATOMSCORE_EXPORT void | toString (std::stringstream &ss) const |
String conversion. | |
bool | equalWithAbsError (const AtomsCore::Box3 &a, const AtomsCore::Box3 &b) const |
ATOMSCORE_EXPORT void | toString (std::stringstream &ss) const |
String conversion. | |
bool | equalWithAbsError (const AtomsCore::Box3f &a, const AtomsCore::Box3f &b) const |
ATOMSCORE_EXPORT void | toString (std::stringstream &ss) const |
String conversion. | |
ATOMSCORE_EXPORT void | toString (std::stringstream &ss) const |
String conversion. | |
ATOMSCORE_EXPORT size_t | memSize () const |
Memory size. | |
ATOMSCORE_EXPORT bool | serialise (Archive &outStream) const |
Serialise. | |
ATOMSCORE_EXPORT bool | deserialise (Archive &inStream) |
Deserialise. | |
ATOMSCORE_EXPORT void | toString (std::stringstream &ss) const |
String conversion. | |
ATOMSCORE_EXPORT AtomsUtils::Curve | getDoubleBlendedBasicTypeMetadataValue (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const |
ATOMSCORE_EXPORT AtomsUtils::Curve | getBlendedBasicTypeValue (size_t index1, size_t index2, const double weight) const |
ATOMSCORE_EXPORT void | hash (MurmurHash3 &hasher) const |
Hash function. | |
ATOMSCORE_EXPORT bool | equalWithAbsError (const AtomsUtils::Curve &a, const AtomsUtils::Curve &b) const |
bool | equalWithAbsError (const double &a, const double &b) const |
bool | equalWithAbsError (const AtomsCore::Euler &a, const AtomsCore::Euler &b) const |
bool | equalWithAbsError (const AtomsCore::Eulerf &a, const AtomsCore::Eulerf &b) const |
bool | equalWithAbsError (const float &a, const float &b) const |
bool | equalWithAbsError (const AtomsCore::Matrix &a, const AtomsCore::Matrix &b) const |
ATOMSCORE_EXPORT void | toString (std::stringstream &ss) const |
String conversion. | |
bool | equalWithAbsError (const AtomsCore::Matrixf &a, const AtomsCore::Matrixf &b) const |
ATOMSCORE_EXPORT size_t | memSize () const |
Memory size. | |
ATOMSCORE_EXPORT bool | serialise (Archive &outStream) const |
Serialise. | |
ATOMSCORE_EXPORT bool | deserialise (Archive &inStream) |
Deserialise. | |
ATOMSCORE_EXPORT void | toString (std::stringstream &ss) const |
String conversion. | |
ATOMSCORE_EXPORT AtomsUtils::Mesh | getDoubleBlendedBasicTypeMetadataValue (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const |
ATOMSCORE_EXPORT AtomsUtils::Mesh | getBlendedBasicTypeValue (size_t index1, size_t index2, const double weight) const |
ATOMSCORE_EXPORT void | hash (MurmurHash3 &hasher) const |
Hash function. | |
ATOMSCORE_EXPORT bool | equalWithAbsError (const AtomsUtils::Mesh &a, const AtomsUtils::Mesh &b) const |
ATOMSCORE_EXPORT size_t | memSize () const |
Memory size. | |
ATOMSCORE_EXPORT bool | serialise (Archive &outStream) const |
Serialise. | |
ATOMSCORE_EXPORT bool | deserialise (Archive &inStream) |
Deserialise. | |
ATOMSCORE_EXPORT void | toString (std::stringstream &ss) const |
String conversion. | |
ATOMSCORE_EXPORT AtomsCore::Pose | getDoubleBlendedBasicTypeMetadataValue (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const |
ATOMSCORE_EXPORT AtomsCore::Pose | getBlendedBasicTypeValue (size_t index1, size_t index2, const double weight) const |
ATOMSCORE_EXPORT void | hash (MurmurHash3 &hasher) const |
Hash function. | |
ATOMSCORE_EXPORT void | hash (MurmurHash3 &hasher) const |
Hash function. | |
ATOMSCORE_EXPORT bool | equalWithAbsError (const AtomsCore::Pose &a, const AtomsCore::Pose &b) const |
bool | equalWithAbsError (const AtomsCore::Quaternion &a, const AtomsCore::Quaternion &b) const |
bool | equalWithAbsError (const AtomsCore::Quaternionf &a, const AtomsCore::Quaternionf &b) const |
ATOMSCORE_EXPORT size_t | memSize () const |
Memory size. | |
ATOMSCORE_EXPORT bool | serialise (Archive &outStream) const |
Serialise. | |
ATOMSCORE_EXPORT bool | deserialise (Archive &inStream) |
Deserialise. | |
ATOMSCORE_EXPORT void | toString (std::stringstream &ss) const |
String conversion. | |
ATOMSCORE_EXPORT AtomsUtils::SampledCurve | getDoubleBlendedBasicTypeMetadataValue (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const |
ATOMSCORE_EXPORT AtomsUtils::SampledCurve | getBlendedBasicTypeValue (size_t index1, size_t index2, const double weight) const |
ATOMSCORE_EXPORT void | hash (MurmurHash3 &hasher) const |
Hash function. | |
ATOMSCORE_EXPORT bool | equalWithAbsError (const AtomsUtils::SampledCurve &a, const AtomsUtils::SampledCurve &b) const |
ATOMSCORE_EXPORT size_t | memSize () const |
Memory size. | |
ATOMSCORE_EXPORT bool | serialise (Archive &outStream) const |
Serialise. | |
ATOMSCORE_EXPORT bool | deserialise (Archive &inStream) |
Deserialise. | |
ATOMSCORE_EXPORT void | toString (std::stringstream &ss) const |
String conversion. | |
ATOMSCORE_EXPORT AtomsCore::Skeleton | getDoubleBlendedBasicTypeMetadataValue (size_t index11, size_t index12, const double weight1, size_t index21, size_t index22, const double weight2, const double finalWeight) const |
ATOMSCORE_EXPORT AtomsCore::Skeleton | getBlendedBasicTypeValue (size_t index1, size_t index2, const double weight) const |
ATOMSCORE_EXPORT void | hash (MurmurHash3 &hasher) const |
Hash function. | |
ATOMSCORE_EXPORT bool | equalWithAbsError (const AtomsCore::Skeleton &a, const AtomsCore::Skeleton &b) const |
bool | equalWithAbsError (const AtomsCore::Vector2 &a, const AtomsCore::Vector2 &b) const |
bool | equalWithAbsError (const AtomsCore::Vector2f &a, const AtomsCore::Vector2f &b) const |
bool | equalWithAbsError (const AtomsCore::Vector3 &a, const AtomsCore::Vector3 &b) const |
bool | equalWithAbsError (const AtomsCore::Vector3f &a, const AtomsCore::Vector3f &b) const |
bool | equalWithAbsError (const AtomsCore::Vector4 &a, const AtomsCore::Vector4 &b) const |
bool | equalWithAbsError (const AtomsCore::Vector4f &a, const AtomsCore::Vector4f &b) const |
Public Member Functions inherited from AtomsCore::BaseTypedArrayMetadata | |
BaseTypedArrayMetadata () | |
constructor | |
virtual | ~BaseTypedArrayMetadata ()=0 |
Virtual destructor. | |
virtual bool | isArray () const |
Public Member Functions inherited from AtomsCore::Metadata | |
Metadata () | |
constructor | |
virtual | ~Metadata ()=0 |
Virtual destructor. | |
virtual bool | setWithValuesAndWeights (const std::vector< AtomsPtr< Metadata >> &values, const std::vector< double > &weights) |
Set with weighted values. | |
virtual bool | setWithValuesAndWeights (const std::vector< Metadata * > &values, const std::vector< double > &weights) |
virtual bool | isEqual (Metadata *right, double err=0.0) const |
Equal function. | |
virtual bool | isGreater (Metadata *right) const |
virtual bool | isLess (Metadata *right) const |
Static Public Member Functions | |
static std::string | staticTypeStr () |
Class static type string. | |
static unsigned int | staticTypeId () |
Class static type string. | |
static std::string | staticBasicTypeStr () |
Class static base metadata string. | |
static Metadata * | creator () |
Creator function. More... | |
Metadata template class.
|
static |
Creator function.
Needad mainly by the metadata factory