class DVpoints_2D_with_normals: public DVpoints_2D

A class which encapsulates a two dimensional array of points with an attach vector field.

Inheritance:


Public Methods

[more] DVpoints_2D_with_normals()
Default constructor -- default is no points, no normals
[more] DVpoints_2D_with_normals(LCVMarray_2D<float> &point)
Defines one group of points with components in the array point.
[more] DVpoints_2D_with_normals(LCVMarray_3D<float> &coords)
Defines an array of groups of points with components in array "coords".
[more] DVpoints_2D_with_normals(LCVMarray_2D<float> &point, LCVMarray_2D<float> &n)
Defines one group of points with components in the array point.
[more] DVpoints_2D_with_normals(LCVMarray_3D<float> &coords, LCVMarray_3D<float> &n)
Defines an array of groups of points with components in array "coords".
[more]virtual ~DVpoints_2D_with_normals()
Destructor
[more]virtual void draw(LCVMstack<DVproperty*>&)
Draw routine
[more] DVpoints_2D_with_normals(const DVpoints_2D_with_normals &data)
Copy constructor
[more]const DVpoints_2D_with_normals& operator=(const DVpoints_2D_with_normals &data)
Assignment operator
[more]int operator==(const DVpoints_2D_with_normals &data)
Check for equality
[more]int operator!=(const DVpoints_2D_with_normals &data)
Check for inequality
[more]virtual void print(ostream&)
A virtual print function
[more]int user_supplied_normals()
Returns 1 if the user supplied normal vectors

Protected Fields

[more]LCVMarray_3D<float> normals
Normals[i][j] is a normal vector.
[more]int user_supplied_normals_flag
1 if user supplied normals

Protected Methods

[more]virtual DVobject* copy()
A routine that returns a pointer to a copy of the object created with new.
[more]void set_data()
The default is no points and no normals
[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".
[more]void set_data(LCVMarray_2D<float> &point, LCVMarray_2D<float> &n)
Makes one group of points with components in the array point.
[more]void set_data(LCVMarray_3D<float> &coords, LCVMarray_3D<float> &n)
Makes an array of groups of points with components in the array "coords".
[more]void set_nodes()
Protected functions to set the nodes and normals.
[more]void set_nodes(LCVMarray_3D<float> &v)
2_D array of nodes given
[more]void set_normals()
No normals given
[more]void set_normals(LCVMarray_3D<float> &n)
2_D array of normals given.
[more]void set_user_supplied_normals()
The user has supplied normals
[more]void set_compute_normals()
The class should compute the normals itself


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)
ovirtual int ReadMyProp()
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 which encapsulates a two dimensional array of points with an attach vector field.
ovirtual DVobject* copy()
A routine that returns a pointer to a copy of the object created with new.

oLCVMarray_3D<float> normals
Normals[i][j] is a normal vector. Normals[i] is a group of normals. normals[i][j] must have size 3

oint user_supplied_normals_flag
1 if user supplied normals

ovoid set_data()
The default is no points and no normals

ovoid set_data(LCVMarray_2D<float> &point)
Makes one group of points with components in the array point. No normals.

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

ovoid set_data(LCVMarray_2D<float> &point, LCVMarray_2D<float> &n)
Makes one group of points with components in the array point. Normals given in n.

ovoid set_data(LCVMarray_3D<float> &coords, LCVMarray_3D<float> &n)
Makes an array of groups of points with components in the array "coords". Normals given in n.

ovoid set_nodes()
Protected functions to set the nodes and normals. This one makes a default list of points (empty).

ovoid set_nodes(LCVMarray_3D<float> &v)
2_D array of nodes given

ovoid set_normals()
No normals given

ovoid set_normals(LCVMarray_3D<float> &n)
2_D array of normals given.

ovoid set_user_supplied_normals()
The user has supplied normals

ovoid set_compute_normals()
The class should compute the normals itself

o DVpoints_2D_with_normals()
Default constructor -- default is no points, no normals

o DVpoints_2D_with_normals(LCVMarray_2D<float> &point)
Defines one group of points with components in the array point. No normals given.

o DVpoints_2D_with_normals(LCVMarray_3D<float> &coords)
Defines an array of groups of points with components in array "coords". No normals given.

o DVpoints_2D_with_normals(LCVMarray_2D<float> &point, LCVMarray_2D<float> &n)
Defines one group of points with components in the array point. Normals given -- point and n must have the same leading size each vector in n must have 3 components. (usually the vectors are normalized.).

o DVpoints_2D_with_normals(LCVMarray_3D<float> &coords, LCVMarray_3D<float> &n)
Defines an array of groups of points with components in array "coords". Normals given -- coords and n must have the same structure each vector in n must have 3 components. (usually the vectors are normalized.).

ovirtual ~DVpoints_2D_with_normals()
Destructor

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

o DVpoints_2D_with_normals(const DVpoints_2D_with_normals &data)
Copy constructor

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

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

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

ovirtual void print(ostream&)
A virtual print function

oint user_supplied_normals()
Returns 1 if the user supplied normal vectors


Direct child classes:
DVtriangle_strips
DVtriangle_grid
DVpolygons

Alphabetic index HTML hierarchy of classes or Java



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