void setDataElementFactory(DataElementFactory* dataElementFactory);
DataElementFactory* getDataElementFactory();
+protected:
+ virtual void _setStamp(Stamp* stamp);
+
private:
HLADataElement* newElement(unsigned index);
void setAlternativeDataElementFactory(AlternativeDataElementFactory* alternativeDataElementFactory);
AlternativeDataElementFactory* getAlternativeDataElementFactory();
+protected:
+ virtual void _setStamp(Stamp* stamp);
+
private:
HLAVariantRecordDataElement* newElement();
const std::string& getValue() const
{ return _value; }
void setValue(const std::string& value)
- { _value = value; }
+ { _value = value; setDirty(true); }
virtual bool setNumElements(unsigned count)
{
const SGVec2<T>& getValue() const
{ return _value; }
void setValue(const SGVec2<T>& 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;
}
const SGVec3<T>& getValue() const
{ return _value; }
void setValue(const SGVec3<T>& 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;
}
const SGVec4<T>& getValue() const
{ return _value; }
void setValue(const SGVec4<T>& 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;
}
const SGQuat<T>& getValue() const
{ return _value; }
void setValue(const SGQuat<T>& 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;
}