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();
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.
This is a 4-by-4 transform matrix.
This is the base class for all two-component vectors and points.
LVecBase3d vec3() const
Returns the object's representation as an LVecBase3d.
virtual void output_data(ostream &out) const
Writes a suitable representation of this node to an .x file in text mode.
string s() const
Unambiguously returns the object's representation as a string, or empty string if the object has no s...
LMatrix4d mat4() const
Returns the object's representation as an LMatrix4d.
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.
A definition of a single data element appearing within a template record.
const XFileDataDef * get_data_def() const
Returns the data object that this object is represented by, if any, or NULL if there is none...
const XFileDataObject & operator[](int n) const
Returns the nth nested object within this object.
const double * get_data() const
Returns the address of the first of the two data elements in the vector.
const double * get_data() const
Returns the address of the first of the three data elements in the vector.
LVecBase2d vec2() const
Returns the object's representation as an LVecBase2d.
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.
void operator=(int int_value)
Stores the indicated integer value into the object, if it makes sense to do so.
The abstract base class for a number of different types of data elements that may be stored in the X ...
const double * get_data() const
Returns the address of the first of the nine data elements in the matrix.
int i() const
Unambiguously returns the object's representation as an integer, or 0 if the object has no integer re...
double d() const
Unambiguously returns the object's representation as a double, or 0.0 if the object has no double rep...