class DVlines: public DVpoints_2D

A class for rendering one dimensional manifolds (curves in space).

Inheritance:


Public Methods

[more] DVlines( 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 )
Constructor the end points of the line segment are given default line starts at the origin, proceeds along the positive x-axis and has length one.
[more] DVlines( const float x0, const float y0, const float z0, const float d0, const float d1, const float d2, const float x1, const float y1, const float z1, const float e0, const float e1, const float e2 )
Constructor for giving a ribbon segment.
[more] DVlines(LCVMarray_2D<float> &coords)
Constructor The coordinates of the points for one line are stored in the array coords
[more] DVlines(LCVMarray_3D<float> &coords)
Constructor The coordinates of the points for the lines are in the array coords
[more]virtual ~DVlines()
Destructor
[more]DVlines& 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 )
Set data routine the end points of the line segment are given default line starts at the origin, proceeds along the positive x-axis and has length one.
[more]DVlines& set_data( const float x0, const float y0, const float z0, const float d0, const float d1, const float d2, const float x1, const float y1, const float z1, const float e0, const float e1, const float e2 )
Set data routine for giving a ribbon segment.
[more]DVlines& set_data(LCVMarray_2D<float> &coords)
Set data routine The coordinates of the points for one line are stored in the array coords
[more]DVlines& set_data(LCVMarray_3D<float> &coords)
Set data routine The coordinates of the points for the lines are in the array coords
[more]virtual void draw(LCVMstack<DVproperty*>&)
Main draw routine
[more]void draw_lines(LCVMstack<DVproperty*>&)
Draw routine just for the lines
[more]void draw_cylinders(LCVMstack<DVproperty*>&)
Draw routine just for the cylinders
[more]void draw_ribbons(LCVMstack<DVproperty*>&)
Draw routine just for the ribbons
[more] DVlines(const DVlines &data)
Copy constructor
[more]const DVlines& operator=(const DVlines &data)
Assignment operator
[more]int operator==(const DVlines &data)
Check for equality
[more]int operator!=(const DVlines &data)
Check for not equality
[more]DVlines& set_line_status(const DVlines_line_status)
Sets the line status.
[more]DVlines& set_ribbon_status(const DVlines_ribbon_status)
Sets the ribbon status.
[more]DVlines_line_status get_line_status()
Get the line status
[more]DVlines_ribbon_status get_ribbon_status()
Get the ribbon status
[more]virtual void print(ostream&)
A virtual print function
[more]friend ostream& operator<<(ostream &, DVlines &)
A friend routine to overload the << operator
[more] DVlines(FileOption a_file_op)
Methods concerning the scene file format
[more]DVlines& set_data(FileOption a_file_op)
Methods concerning the scene file format
[more]virtual int ReadMyProp()
Methods concerning the scene file format

Protected Fields

[more]DVlines_line_status line_status
Defines how the lines will be drawn.
[more]DVlines_ribbon_status ribbon_status
Defines how the ribbons will be drawn.

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 rendering one dimensional manifolds (curves in space). It can render a group a space curves, using either lines or cylinders. It also includes the ability to place a director field, or "ribbon", along the curve.
oDVlines_line_status line_status
Defines how the lines will be drawn. Options are thin lines, tubes, or not at all.

oDVlines_ribbon_status ribbon_status
Defines how the ribbons will be drawn. Options are as flat surfaces or not at all.

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

o DVlines( 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 )
Constructor the end points of the line segment are given default line starts at the origin, proceeds along the positive x-axis and has length one. the end points of the line segment are given.

o DVlines( const float x0, const float y0, const float z0, const float d0, const float d1, const float d2, const float x1, const float y1, const float z1, const float e0, const float e1, const float e2 )
Constructor for giving a ribbon segment. the end points of the ribbon segment are given--3 coordinates for the end point and 3 coordinates for the direction

o DVlines(LCVMarray_2D<float> &coords)
Constructor The coordinates of the points for one line are stored in the array coords

o DVlines(LCVMarray_3D<float> &coords)
Constructor The coordinates of the points for the lines are in the array coords

ovirtual ~DVlines()
Destructor

oDVlines& 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 )
Set data routine the end points of the line segment are given default line starts at the origin, proceeds along the positive x-axis and has length one. the end points of the line segment are given

oDVlines& set_data( const float x0, const float y0, const float z0, const float d0, const float d1, const float d2, const float x1, const float y1, const float z1, const float e0, const float e1, const float e2 )
Set data routine for giving a ribbon segment. the end points of the ribbon segment are given--3 coordinates for the end point and 3 coordinates for the direction

oDVlines& set_data(LCVMarray_2D<float> &coords)
Set data routine The coordinates of the points for one line are stored in the array coords

oDVlines& set_data(LCVMarray_3D<float> &coords)
Set data routine The coordinates of the points for the lines are in the array coords

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

ovoid draw_lines(LCVMstack<DVproperty*>&)
Draw routine just for the lines

ovoid draw_cylinders(LCVMstack<DVproperty*>&)
Draw routine just for the cylinders

ovoid draw_ribbons(LCVMstack<DVproperty*>&)
Draw routine just for the ribbons

o DVlines(const DVlines &data)
Copy constructor

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

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

oint operator!=(const DVlines &data)
Check for not equality

oDVlines& set_line_status(const DVlines_line_status)
Sets the line status. Can be {line, cylinder, or none}.

oDVlines& set_ribbon_status(const DVlines_ribbon_status)
Sets the ribbon status. Can be {ribbon, or none}.

oDVlines_line_status get_line_status()
Get the line status

oDVlines_ribbon_status get_ribbon_status()
Get the ribbon status

ovirtual void print(ostream&)
A virtual print function

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

o DVlines(FileOption a_file_op)
Methods concerning the scene file format

oDVlines& set_data(FileOption a_file_op)
Methods concerning the scene file format

ovirtual int ReadMyProp()
Methods concerning the scene file format


Direct child classes:
DVframed_lines

Alphabetic index HTML hierarchy of classes or Java



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