21 INLINE XFileDataObject::
137 set_int_value(int_value);
149 set(
double double_value) {
150 set_double_value(double_value);
162 set(
const string &string_value) {
163 set_string_value(string_value);
176 store_double_array(2, vec.
get_data());
189 store_double_array(3, vec.
get_data());
202 store_double_array(4, vec.
get_data());
215 store_double_array(16, mat.
get_data());
228 return get_int_value();
241 return get_double_value();
254 return get_string_value();
267 get_double_array(2, &vec[0]);
281 get_double_array(3, &vec[0]);
295 get_double_array(4, &vec[0]);
309 get_double_array(16, &mat(0, 0));
321 return get_num_elements();
virtual void output_data(ostream &out) const
Writes a suitable representation of this node to an .x file in text mode.
const double * get_data() const
Returns the address of the first of the nine data elements in the matrix.
This is a 4-by-4 transform matrix.
string s() const
Unambiguously returns the object's representation as a string, or empty string if the object has no s...
This is the base class for all two-component vectors and points.
int i() const
Unambiguously returns the object's representation as an integer, or 0 if the object has no integer re...
const double * get_data() const
Returns the address of the first of the two data elements in the vector.
const XFileDataDef * get_data_def() const
Returns the data object that this object is represented by, if any, or NULL if there is none...
This is the base class for all three-component vectors and points.
A definition of a single data element appearing within a template record.
const double * get_data() const
Returns the address of the first of the four data elements in the vector.
LVecBase4d vec4() const
Returns the object's representation as an LVecBase4d.
void set(int int_value)
Stores the indicated integer value into the object, if it makes sense to do so.
This is the base class for all three-component vectors and points.
int size() const
Returns the number of nested data objects within this object.
LVecBase2d vec2() const
Returns the object's representation as an LVecBase2d.
LMatrix4d mat4() const
Returns the object's representation as an LMatrix4d.
const double * get_data() const
Returns the address of the first of the three data elements in the vector.
void operator=(int int_value)
Stores the indicated integer value into the object, if it makes sense to do so.
double d() const
Unambiguously returns the object's representation as a double, or 0.0 if the object has no double rep...
LVecBase3d vec3() const
Returns the object's representation as an LVecBase3d.
const XFileDataObject & operator[](int n) const
Returns the nth nested object within this object.
The abstract base class for a number of different types of data elements that may be stored in the X ...