class DVselection_container: public DVcontainerbase

A contatiner object which can be used to create animations.

Inheritance:


Public Methods

[more] DVselection_container(const int first=0, const int step=1, const int do_not_animate=0)
Constructor.
[more]virtual ~DVselection_container()
Default destructor.
[more]void set_first_frame_number(const int first=0)
[more]void set_step_frame_number(const int step=1)
[more]void set_do_not_animate_flag(const int do_not_animate=0)
[more]int get_first_frame_number() const
[more]int get_step_frame_number() const
[more]int get_do_not_animate_flag() const
[more]virtual void draw(LCVMstack<DVproperty*>&)
The draw routine.
[more] DVselection_container(DVselection_container &data)
Copy constructor
[more]const DVselection_container& operator=(DVselection_container &data)
An assignment operator
[more]virtual void print(ostream &)
Print the selection_container -- make it virtual.
[more]friend ostream& operator<<(ostream &, DVselection_container &)
A friend routine to overload the << operator
[more]int ReadAnimateProp()
Routines concerning the scene file format
[more] DVselection_container(FileOption a_file_op)
Routines concerning the scene file format

Protected Fields

[more]int first_frame_number
The frame number of the first child.
[more]int step_frame_number
The number of frames to stay on each child.
[more]int do_not_animate_flag
If this is non-zero draw all children, just like a normal DVcontainer

Protected Methods

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


Inherited from DVcontainerbase:

Public Methods

oDVobject& copy_child(DVobject &child)
oDVobject& delete_current_child()
oDVobject* operator[](const int)
oint get_size() const
ovoid erase()
ovoid ReadNode()

Protected Fields

oLCVMdoubly_linked_list<DVobject *> list


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

A contatiner object which can be used to create animations. A DVselection_container draws one of its children at a time, based upon the frame_number give in the DVproperty item in the draw() function.
oint first_frame_number
The frame number of the first child. This frame number, and all lower frame numbers, will map into the first child

oint step_frame_number
The number of frames to stay on each child.

oint do_not_animate_flag
If this is non-zero draw all children, just like a normal DVcontainer

ovirtual DVobject* copy()
A routine that returns a pointer to a copy of the object created with new.

o DVselection_container(const int first=0, const int step=1, const int do_not_animate=0)
Constructor. It allows you to get the first_frame_number, step_frame_number, and do_not_animate_flag.

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

ovoid set_first_frame_number(const int first=0)

ovoid set_step_frame_number(const int step=1)

ovoid set_do_not_animate_flag(const int do_not_animate=0)

oint get_first_frame_number() const

oint get_step_frame_number() const

oint get_do_not_animate_flag() const

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

o DVselection_container(DVselection_container &data)
Copy constructor

oconst DVselection_container& operator=(DVselection_container &data)
An assignment operator

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

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

oint ReadAnimateProp()
Routines concerning the scene file format

o DVselection_container(FileOption a_file_op)
Routines concerning the scene file format


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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