class DVcones: public DVpoints_2D

A class for drawing cones

Inheritance:


Public Methods

[more] DVcones( const float x0=0.0, const float y0=0.0, const float z0=0.0, const float x1=1.0, const float y1=0.0, const float z1=0.0, const float r1=1.0, const float r2=1.0 )
A simple cone, with two extremities and two radius values given.
[more] DVcones(LCVMarray_2D<float> &coords)
The coordinates of the points for one string of cones are stored in the array coords.
[more] DVcones(LCVMarray_3D<float> &coords)
The coordinates of the points for several strings of cones are in the array coords.
[more]virtual ~DVcones()
destructor
[more]DVcones& set_data( const float x0=0.0, const float y0=0.0, const float z0=0.0, const float x1=1.0, const float y1=0.0, const float z1=0.0, const float r1=1.0, const float r2=1.0 )
A simple cone, with two extremities and two radius values given.
[more]DVcones& set_data(LCVMarray_2D<float> &coords)
The coordinates of the points for one string of cones are stored in the array coords.
[more]DVcones& set_data(LCVMarray_3D<float> &coords)
The coordinates of the points for several strings of cones are in the array coords.
[more]void get_used_radius(LCVMarray_2D<float> &, DVproperty *)
It retrieves an array of values for the radius in each point, using the radius_coord variable and the scaling from the DVproperty.
[more]virtual void draw(LCVMstack<DVproperty*>&)
draw routine
[more] DVcones(const DVcones &data)
We also want a copy constructor as well as an assignment operator
[more]const DVcones& operator=(const DVcones &data)
[more]int operator==(const DVcones &data)
check for equality and not equal
[more]int operator!=(const DVcones &data)
[more]DVcones& set_radius_coord(const int)
Set the coordinate for the radius
[more]int get_radius_coord()
Get the coordinate for the radius
[more]virtual void print(ostream&)
a virtual print function
[more]friend ostream& operator<<(ostream &, DVcones &)
A friend routine to overload the << operator
[more] DVcones(FileOption a_file_op)
Constructor from a scene file.
[more]DVcones& set_data(FileOption a_file_op)
Set the data from a scene file.
[more]virtual int ReadMyProp()
Specific properties in the scene file.

Protected Fields

[more]int radius_coord
The coordinate that will be the radius of the cones.

Protected Methods

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


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()
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 for drawing cones
oint radius_coord
The coordinate that will be the radius of the cones.

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

o DVcones( const float x0=0.0, const float y0=0.0, const float z0=0.0, const float x1=1.0, const float y1=0.0, const float z1=0.0, const float r1=1.0, const float r2=1.0 )
A simple cone, with two extremities and two radius values given. The line between the two points is the center line of the cone. By default it is a cylinder of radius 1.0, starting at the origin, parallel to the x-axis and of length one.

o DVcones(LCVMarray_2D<float> &coords)
The coordinates of the points for one string of cones are stored in the array coords. A cone will be drawn (see the description above) between each point in the string and the next one.

o DVcones(LCVMarray_3D<float> &coords)
The coordinates of the points for several strings of cones are in the array coords. The strings may not have the same length. Each string of cones is drawn as before.

ovirtual ~DVcones()
destructor

oDVcones& set_data( const float x0=0.0, const float y0=0.0, const float z0=0.0, const float x1=1.0, const float y1=0.0, const float z1=0.0, const float r1=1.0, const float r2=1.0 )
A simple cone, with two extremities and two radius values given. The line between the two points is the center line of the cone. By default it is a cylinder of radius 1.0, starting at the origin, parallel to the x-axis and of length one.

oDVcones& set_data(LCVMarray_2D<float> &coords)
The coordinates of the points for one string of cones are stored in the array coords. A cone will be drawn (see the description above) between each point in the string and the next one.

oDVcones& set_data(LCVMarray_3D<float> &coords)
The coordinates of the points for several strings of cones are in the array coords. The strings may not have the same length. Each string of cones is drawn as before.

ovoid get_used_radius(LCVMarray_2D<float> &, DVproperty *)
It retrieves an array of values for the radius in each point, using the radius_coord variable and the scaling from the DVproperty.

ovirtual void draw(LCVMstack<DVproperty*>&)
draw routine

o DVcones(const DVcones &data)
We also want a copy constructor as well as an assignment operator

oconst DVcones& operator=(const DVcones &data)

oint operator==(const DVcones &data)
check for equality and not equal

oint operator!=(const DVcones &data)

oDVcones& set_radius_coord(const int)
Set the coordinate for the radius

oint get_radius_coord()
Get the coordinate for the radius

ovirtual void print(ostream&)
a virtual print function

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

o DVcones(FileOption a_file_op)
Constructor from a scene file.

oDVcones& set_data(FileOption a_file_op)
Set the data from a scene file.

ovirtual int ReadMyProp()
Specific properties in the scene file. For this class, the radius coordinate.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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