| 166 | | |
|---|
| 167 | | /*-------------------- Arbitrary Type Interface Methods ------------------*/ |
|---|
| 168 | | |
|---|
| 169 | | /*! Returns the value at index \a index in \a val after converting it to |
|---|
| 170 | | Vec3f. |
|---|
| 171 | | There is no range check for \a index, it must be in [0, size()[. |
|---|
| 172 | | |
|---|
| 173 | | \note This is a convenience function and therefore not the most efficient |
|---|
| 174 | | way to access property values. It is more efficient to obtain a pointer |
|---|
| 175 | | or reference to the stored field an modify it directly. |
|---|
| 176 | | |
|---|
| 177 | | \param[out] val Value at the given index. |
|---|
| 178 | | \param[in] index Index of the element to access. |
|---|
| 179 | | */ |
|---|
| 180 | | void GeoVectorProperty::getValue( Vec3f &val, |
|---|
| 181 | | const UInt32 index) const |
|---|
| 182 | | { |
|---|
| 183 | | MaxTypeT ival; |
|---|
| 184 | | getValue(ival, index); |
|---|
| 185 | | GeoConvert::convertOut(val, ival, 1, 0); |
|---|
| 186 | | } |
|---|
| 187 | | |
|---|
| 188 | | /*! Sets the value at index \a index to \a val. |
|---|
| 189 | | There is no range check for \a index, it must be in [0, size()[. |
|---|
| 190 | | |
|---|
| 191 | | \note This is a convenience function and therefore not the most efficient |
|---|
| 192 | | way to access property values. It is more efficient to obtain a pointer |
|---|
| 193 | | or reference to the stored field an modify it directly. |
|---|
| 194 | | |
|---|
| 195 | | \param[in] val Value to set the element at the given index to. |
|---|
| 196 | | \param[in] index Index of the element to set. |
|---|
| 197 | | */ |
|---|
| 198 | | void GeoVectorProperty::setValue(const Vec3f &val, |
|---|
| 199 | | const UInt32 index ) |
|---|
| 200 | | { |
|---|
| 201 | | MaxTypeT ival; |
|---|
| 202 | | GeoConvert::convertIn(ival, val, 1, 0); |
|---|
| 203 | | setValue(ival, index); |
|---|
| 204 | | } |
|---|
| 205 | | |
|---|