X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fhla%2FHLAArrayDataElement.hxx;h=72f1478b878476d99ae371868cc1e0819a7b197c;hb=098441f5fbbcff41508b9411ecf2904f84a7eb81;hp=de3c1d0aee945e39b5db77d0e4168795ad808818;hpb=dc9163f8016047f29603c3d40032655132f5c109;p=simgear.git diff --git a/simgear/hla/HLAArrayDataElement.hxx b/simgear/hla/HLAArrayDataElement.hxx index de3c1d0a..72f1478b 100644 --- a/simgear/hla/HLAArrayDataElement.hxx +++ b/simgear/hla/HLAArrayDataElement.hxx @@ -78,6 +78,9 @@ public: void setDataElementFactory(DataElementFactory* dataElementFactory); DataElementFactory* getDataElementFactory(); +protected: + virtual void _setStamp(Stamp* stamp); + private: HLADataElement* newElement(unsigned index); @@ -112,6 +115,9 @@ public: void setAlternativeDataElementFactory(AlternativeDataElementFactory* alternativeDataElementFactory); AlternativeDataElementFactory* getAlternativeDataElementFactory(); +protected: + virtual void _setStamp(Stamp* stamp); + private: HLAVariantRecordDataElement* newElement(); @@ -133,7 +139,7 @@ public: const std::string& getValue() const { return _value; } void setValue(const std::string& value) - { _value = value; } + { _value = value; setDirty(true); } virtual bool setNumElements(unsigned count) { @@ -210,11 +216,11 @@ public: const SGVec2& getValue() const { return _value; } void setValue(const SGVec2& value) - { _value = value; } + { _value = value; setDirty(true); } virtual bool setNumElements(unsigned count) { - for (unsigned i = 2; i < count; ++i) + for (unsigned i = count; i < 2; ++i) _value[i] = 0; return true; } @@ -302,11 +308,11 @@ public: const SGVec3& getValue() const { return _value; } void setValue(const SGVec3& value) - { _value = value; } + { _value = value; setDirty(true); } virtual bool setNumElements(unsigned count) { - for (unsigned i = 3; i < count; ++i) + for (unsigned i = count; i < 3; ++i) _value[i] = 0; return true; } @@ -394,11 +400,11 @@ public: const SGVec4& getValue() const { return _value; } void setValue(const SGVec4& value) - { _value = value; } + { _value = value; setDirty(true); } virtual bool setNumElements(unsigned count) { - for (unsigned i = 4; i < count; ++i) + for (unsigned i = count; i < 4; ++i) _value[i] = 0; return true; } @@ -486,11 +492,11 @@ public: const SGQuat& getValue() const { return _value; } void setValue(const SGQuat& value) - { _value = value; } + { _value = value; setDirty(true); } virtual bool setNumElements(unsigned count) { - for (unsigned i = 4; i < count; ++i) + for (unsigned i = count; i < 4; ++i) _value[i] = 0; return true; }