class DVrotation_surface: public DVtriangle_strips

A class to transform curves into rotation surfaces

Inheritance:


Public Methods

[more] DVrotation_surface(DVlines &data, const float end_angle = 360.0, char degrees='d')
Constructor with a curve as input, and with an angle in degrees (by default) or in radians (last parameter equal to 'r')
[more] DVrotation_surface(LCVMarray_2D<float> &line_points, LCVMarray<float> &the_colors, const float end_angle = 360.0, char degrees = 'd')
Similar to the DVlines constructor, but needs an angle in degrees (by default) or in radians (last parameter equal to 'r')
[more] DVrotation_surface(LCVMarray_2D<float> &line_points, const float end_angle = 360.0, char degrees = 'd')
Similar to the DVlines constructor, but needs an angle in degrees (by default) or in radians (last parameter equal to 'r')
[more]void set_data(DVlines &data, const float end_angle = 360.0, char degrees = 'd')
Set data starting with the curve (data) that has to be turned into a rotation surface.
[more]void set_data(LCVMarray_2D<float> &line_points, LCVMarray<float> &the_colors, const float end_angle = 360.0, char degrees = 'd')
Similar to the DVlines set_data, but needs an angle in degrees (by default) or in radians (last parameter equal to 'r')
[more]void set_data(LCVMarray_2D<float> &line_points, const float end_angle = 360.0, char degrees = 'd')
Similar to the DVlines set_data, but needs an angle in degrees (by default) or in radians (last parameter equal to 'r')
[more]virtual ~DVrotation_surface()
the destructor
[more]virtual void draw(LCVMstack<DVproperty*>&)
The draw function
[more] DVrotation_surface(FileOption a_file_op)
The constructor from the input scene file
[more]virtual int ReadMyProp()
Specific properties for this class: none, but it has to be specified as it is virtual

Protected Methods

[more]virtual DVobject* copy()
We also want a routine that returns a pointer to a copy of the object created with new
[more] DVrotation_surface(const DVrotation_surface &data)
The copy constructor
[more]const DVrotation_surface& operator=(const DVrotation_surface &data)
The assignment operator


Inherited from DVtriangle_strips:

Public Methods

ovoid compute_normals(DVscale &scale)
ovirtual void print(ostream&)


Inherited from DVpoints_2D_with_normals:

Public Methods

oint operator==(const DVpoints_2D_with_normals &data)
oint operator!=(const DVpoints_2D_with_normals &data)
oint user_supplied_normals()

Protected Fields

oLCVMarray_3D<float> normals
oint user_supplied_normals_flag

Protected Methods

ovoid set_nodes()
ovoid set_nodes(LCVMarray_3D<float> &v)
ovoid set_normals()
ovoid set_normals(LCVMarray_3D<float> &n)
ovoid set_user_supplied_normals()
ovoid set_compute_normals()


Inherited from DVpoints_2D:

Public Methods

ovoid get_used_coordinates(LCVMarray_3D<float>&, const int select=0)
ovoid get_used_coordinates(LCVMarray_3D<float>&, DVscale &, const int select=0)
ovoid get_used_colors(LCVMarray_2D<float>&, const int select=0)
ovoid ReadDVProps()

Protected Fields

oLCVMarray_3D<float> points


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)
ovirtual DVobject& copy_child(DVobject &child)
ovirtual DVobject& delete_current_child()
ofriend ostream& operator<<(ostream &, DVobject &)
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()


Inherited from DVpick_components:

Public Methods

ovoid set_x_plot_coordinate(const int i, const int select=0)
ovoid set_y_plot_coordinate(const int j, const int select=0)
ovoid set_z_plot_coordinate(const int k, const int select=0)
ovoid set_plot_coordinate(const int i, const int coord, const int select=0)
ovoid set_xyz_plot_coordinates(const int i, const int j, const int k, const int select=0)
ovoid set_xyz_plot_coordinates(LCVMarray<int> &i, const int select=0)
ovoid set_xyz_plot_coordinates(LCVMarray_2D<int> &i)
ovoid set_color_coordinate(const int i, const int select=0)
ovoid set_color_coordinates(LCVMarray<int> &i)
oint check_color_coordinates(int select = 0)
oint ReadPickCompProp()
ovoid ReadCoords()
ovoid ReadColorCoord()

Protected Fields

oint num_elts
oLCVMarray_2D<int> use_xyz
oLCVMarray<int> use_color

Protected Methods

ovoid default_use_coords()
ovoid default_use_colors()
ovoid check_use_coords()
ovoid check_use_colors()


Documentation

A class to transform curves into rotation surfaces
o DVrotation_surface(DVlines &data, const float end_angle = 360.0, char degrees='d')
Constructor with a curve as input, and with an angle in degrees (by default) or in radians (last parameter equal to 'r')

o DVrotation_surface(LCVMarray_2D<float> &line_points, LCVMarray<float> &the_colors, const float end_angle = 360.0, char degrees = 'd')
Similar to the DVlines constructor, but needs an angle in degrees (by default) or in radians (last parameter equal to 'r')

o DVrotation_surface(LCVMarray_2D<float> &line_points, const float end_angle = 360.0, char degrees = 'd')
Similar to the DVlines constructor, but needs an angle in degrees (by default) or in radians (last parameter equal to 'r')

ovoid set_data(DVlines &data, const float end_angle = 360.0, char degrees = 'd')
Set data starting with the curve (data) that has to be turned into a rotation surface. Needs an angle in degrees (by default) or in radians (last parameter equal to 'r').

ovoid set_data(LCVMarray_2D<float> &line_points, LCVMarray<float> &the_colors, const float end_angle = 360.0, char degrees = 'd')
Similar to the DVlines set_data, but needs an angle in degrees (by default) or in radians (last parameter equal to 'r')

ovoid set_data(LCVMarray_2D<float> &line_points, const float end_angle = 360.0, char degrees = 'd')
Similar to the DVlines set_data, but needs an angle in degrees (by default) or in radians (last parameter equal to 'r')

ovirtual ~DVrotation_surface()
the destructor

ovirtual void draw(LCVMstack<DVproperty*>&)
The draw function

o DVrotation_surface(FileOption a_file_op)
The constructor from the input scene file

ovirtual int ReadMyProp()
Specific properties for this class: none, but it has to be specified as it is virtual

ovirtual DVobject* copy()
We also want a routine that returns a pointer to a copy of the object created with new

o DVrotation_surface(const DVrotation_surface &data)
The copy constructor

oconst DVrotation_surface& operator=(const DVrotation_surface &data)
The assignment operator


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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