class DVpoints_2D: public DVobject, public DVpick_components

A class which encapsulated a two dimensional array of points.

Inheritance:


Public Methods

[more] DVpoints_2D()
Constructor.
[more] DVpoints_2D(LCVMarray_2D<float> &point)
Constructor.
[more] DVpoints_2D(LCVMarray_3D<float> &coords)
Constructor.
[more]virtual ~DVpoints_2D()
Destructor
[more]virtual void draw(LCVMstack<DVproperty*>&)
Draw routine
[more] DVpoints_2D(const DVpoints_2D &data)
Copy constructor
[more]const DVpoints_2D& operator=(const DVpoints_2D &data)
Assignment operator
[more]int operator==(const DVpoints_2D &data)
Check for equality
[more]int operator!=(const DVpoints_2D &data)
Check for inequality
[more]void get_used_coordinates(LCVMarray_3D<float>&, const int select=0)
Make smaller array with just the components that are being used
[more]void get_used_coordinates(LCVMarray_3D<float>&, DVscale &, const int select=0)
Make smaller array with just the components that are being used and scale them
[more]void get_used_colors(LCVMarray_2D<float>&, const int select=0)
Make smaller array with just the component that is being used for color
[more]virtual void print(ostream&)
A virtual print function
[more]virtual int ReadMyProp()
Methods concrening the scene file format
[more]void ReadDVProps()
Methods concrening the scene file format

Protected Fields

[more]LCVMarray_3D<float> points
points[i][j] is a "point" points[i] is a group of points

Protected Methods

[more]virtual DVobject* copy()
of the object created with new.
[more]void set_data()
The default is no points.
[more]void set_data(LCVMarray_2D<float> &point)
makes one group of points with components in the array point
[more]void set_data(LCVMarray_3D<float> &coords)
makes an array of groups of points with components in the array "coords"


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 which encapsulated a two dimensional array of points. It is not meant to be used itself, but as a basis from which other classes inherit.
ovirtual DVobject* copy()
of the object created with new.

ovoid set_data()
The default is no points.

ovoid set_data(LCVMarray_2D<float> &point)
makes one group of points with components in the array point

ovoid set_data(LCVMarray_3D<float> &coords)
makes an array of groups of points with components in the array "coords"

oLCVMarray_3D<float> points
points[i][j] is a "point" points[i] is a group of points

o DVpoints_2D()
Constructor. Default constructor -- default is no points

o DVpoints_2D(LCVMarray_2D<float> &point)
Constructor. Defines one group of points with components in the array point

o DVpoints_2D(LCVMarray_3D<float> &coords)
Constructor. Defines an array of groups of points with components in array "coords"

ovirtual ~DVpoints_2D()
Destructor

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

o DVpoints_2D(const DVpoints_2D &data)
Copy constructor

oconst DVpoints_2D& operator=(const DVpoints_2D &data)
Assignment operator

oint operator==(const DVpoints_2D &data)
Check for equality

oint operator!=(const DVpoints_2D &data)
Check for inequality

ovoid get_used_coordinates(LCVMarray_3D<float>&, const int select=0)
Make smaller array with just the components that are being used

ovoid get_used_coordinates(LCVMarray_3D<float>&, DVscale &, const int select=0)
Make smaller array with just the components that are being used and scale them

ovoid get_used_colors(LCVMarray_2D<float>&, const int select=0)
Make smaller array with just the component that is being used for color

ovirtual void print(ostream&)
A virtual print function

ovirtual int ReadMyProp()
Methods concrening the scene file format

ovoid ReadDVProps()
Methods concrening the scene file format


Direct child classes:
DVpoints_2D_with_normals
DVlines
DVcones
DVboxes

Alphabetic index HTML hierarchy of classes or Java



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