class DVcontainerbase: public DVobject

Containers group children together which share properties.

Inheritance:


Public Methods

[more] DVcontainerbase()
Constructors for this class
[more]virtual ~DVcontainerbase()
Default destructor.
[more]DVobject& copy_child(DVobject &child)
Copy a DVobject into the list of children for this container
[more]DVobject& delete_current_child()
Delete the "current" child from the list (current child is always the last child in the list or null)
[more]DVobject* operator[](const int)
this lets us refer to children by number.
[more]int get_size() const
return the number of children the container has
[more]virtual void draw(LCVMstack<DVproperty*>&)
The draw routine.
[more] DVcontainerbase(DVcontainerbase &data)
[more]const DVcontainerbase& operator=(DVcontainerbase &data)
[more]virtual void print(ostream &)
print the containerbase -- make it virtual.
[more]void erase()
erase all children
[more]friend ostream& operator<<(ostream &, DVcontainerbase &)
A friend routine to overload the << operator
[more] DVcontainerbase(FileOption a_file_op)
A constructor for the scene file parse.
[more]void ReadNode()
A helper routine for the scene file parse.

Protected Fields

[more]LCVMdoubly_linked_list<DVobject *> list
The list of children

Protected Methods

[more]virtual DVobject* copy()
A routine that returns a pointer to a copy of the object created with new.


Inherited from DVobject:

Public Methods

oDVobject& set_translate(LCVMarray<float> &data)
oDVobject& set_translate(const float x, const float y, const float z)
oDVobject& add_translate(LCVMarray<float> &data)
oDVobject& add_translate(const float x, const float y, const float z)
oDVobject& set_rotate(LCVMarray<float> &data, const float angle, const char type='d')
oDVobject& set_rotate( const float x, const float y, const float z, const float angle, const char type='d' )
oDVobject& add_rotate(LCVMarray<float> &data, const float angle, const char type='d')
oDVobject& add_rotate( const float x, const float y, const float z, const float angle, const char type='d' )
ovoid get_translation(LCVMarray<float>&)
ovoid get_rotation(LCVMarray<float>&, float&)
ovoid set_OpenGL_lighting_properties(DVlight_properties_property_item_array &lights)
ovoid set_OpenGL_material_properties(DVmaterial_properties_property_item &material, DVcolor &color)
ovoid set_OpenGL_color(DVcolor &color)
oint operator==(const DVobject &data)
oint operator!=(const DVobject &data)
oint ReadProp()
ovoid ReadDVrotate()
ovoid ReadDVtranslation()
ovoid ReadSimpleProps()

Public

o
o

Protected Fields

oclass DVcontainerbase LCVMarray<float> translation
oLCVMarray<float> rotation_axis
ofloat rotation_angle
oLCVMarray<float> rotation_quaterions

Protected Methods

ovoid axis_to_quat(LCVMarray<float> axis, float angle, LCVMarray<float> &quat)
ovoid quat_to_axis(LCVMarray<float> quat, LCVMarray<float> &axis, float &angle)
ovoid add_quat(LCVMarray<float> a, LCVMarray<float> b, LCVMarray<float> &c)


Inherited from DVselect_property:

Public Fields

oDVcolor_select_property_item_array color
oDVpositive_float_select_property_item_array width
oDVcomplexity_int_select_property_item geometry_complexity
oDVcomplexity_int_select_property_item light_complexity
oDVscale_select_property_item scale
oDVcolor_by_data_select_property_item_array color_by_data
oDVrich_light_properties_select_property_item_array lights
oDVrich_material_properties_select_property_item_array material

Public Methods

ovoid extract_properties(DVproperty&)
ovoid default_lighting()
ovoid ReadDVColor()
ovoid ReadDVlightComp()
ovoid ReadDVgeomComp()
ovoid ReadDVscale()
ovoid ReadDVwidth()
ovoid ReadColorMap()


Documentation

Containers group children together which share properties. The various container classed group together DVobjects in a hierarchy. Lower levels of the hierarchy inherit properties from higher levels of the hierarchy.
ovirtual DVobject* copy()
A routine that returns a pointer to a copy of the object created with new.

oLCVMdoubly_linked_list<DVobject *> list
The list of children

o DVcontainerbase()
Constructors for this class

ovirtual ~DVcontainerbase()
Default destructor. It is declared virtual so that the correct decendant destructor will get called.

oDVobject& copy_child(DVobject &child)
Copy a DVobject into the list of children for this container

oDVobject& delete_current_child()
Delete the "current" child from the list (current child is always the last child in the list or null)

oDVobject* operator[](const int)
this lets us refer to children by number. i.e. foo[n] gives the nth element from the front of the list if n > 0, and the -nth element from the back of the list if n < 0.

oint get_size() const
return the number of children the container has

ovirtual void draw(LCVMstack<DVproperty*>&)
The draw routine. We again want it to be virtual so that the correct decendant routine gets called.

o DVcontainerbase(DVcontainerbase &data)

oconst DVcontainerbase& operator=(DVcontainerbase &data)

ovirtual void print(ostream &)
print the containerbase -- make it virtual.

ovoid erase()
erase all children

ofriend ostream& operator<<(ostream &, DVcontainerbase &)
A friend routine to overload the << operator

o DVcontainerbase(FileOption a_file_op)
A constructor for the scene file parse.

ovoid ReadNode()
A helper routine for the scene file parse.


Direct child classes:
DVtranslation_interpolation_container
DVselection_container
DVrotation_interpolation_container

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.