class DVframed_lines: public DVlines

A class for rendering curves in space.

Inheritance:


Public Methods

[more] DVframed_lines( 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 )
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] DVframed_lines( 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 )
for giving a ribbon segment.
[more] DVframed_lines(LCVMarray_2D<float> &coords)
The coordinates of the points for one line are stored in the array coords.
[more] DVframed_lines(LCVMarray_3D<float> &coords)
The coordinates of the points for several lines are in the array coords.
[more]void set_defaults()
Set what has to be rendered by default: no frame, no ribbon, mirrored ribbon, and surface ribbon
[more]virtual ~DVframed_lines()
destructor
[more]virtual void draw(LCVMstack<DVproperty*>&)
main draw routine
[more]void draw_ribbons(LCVMstack<DVproperty*> &)
It draws the whole list of ribbons.
[more]void draw_frames(LCVMstack<DVproperty*>&)
Draws the frame.
[more]void draw_ribbon(LCVMstack<DVproperty*> &)
Draws the current ribbon. It should not be called directly.
[more]void draw_plain_ribbon(LCVMstack<DVproperty*> &)
Draws one ribbon as a surface.
[more]void draw_vector_ribbon(LCVMstack<DVproperty*> &)
Draws one ribbon as a vector field.
[more] DVframed_lines(DVframed_lines &data)
We also want a copy constructor as well as an assignment operator
[more]int copy_ribbons(DVframed_lines &data)
Copies the list of ribbons.
[more]const DVframed_lines& operator=(DVframed_lines &data)
Assignment operator
[more]int operator==(DVframed_lines &data)
check for equality
[more]int operator!=(DVframed_lines &data)
Check for not equality
[more]DVframed_lines& set_frame_status(const DVframed_lines_frame_status)
Set the frame status
[more]DVframed_lines& set_ribbon_form_status(const DVribbon_form_status)
Choose between surface or vector field ribbon.
[more]DVframed_lines& set_ribbon_mirror_status(const DVribbon_mirror_status)
Choose between one sided and mirrored ribbon.
[more]int add_ribbon(int, int, int)
Adds a ribbon to the list, x,y and z coordinates given.
[more]int add_ribbon(int, int, int, int)
Adds a ribbon to the list, x,y and z and color coordinates given.
[more]int add_ribbon(LCVMarray<int> *new_ribbon)
Adds a ribbon from an array of coordinates.
[more]int add_ribbon(LCVMarray<int> &)
Adds a ribbon from an array of coordinates
[more]int set_ribbon(int, int, int, int)
Sets the current ribbon coordinates
[more]int set_ribbon(LCVMarray<int> &)
Sets the current ribbon coordinates
[more]void default_frame_coords()
Sets the default frame with the coordinates: 3 to 9 for the x,y,z coordinates, 10 to 12 for the color
[more]void set_frame_coords(int d1x, int d1y, int d1z, int d2x, int d2y, int d2z, int d3x, int d3y, int d3z)
Set the frame coordinates, color not given.
[more]void set_frame_coords(int d1x, int d1y, int d1z, int d2x, int d2y, int d2z, int d3x, int d3y, int d3z, int color1, int color2, int color3)
Set the frame coordinates, including the color.
[more]void set_frame_coords(LCVMarray_2D<int> &coords)
Set the frame coordinates from an array.
[more]DVframed_lines_frame_status get_frame_status()
Get the frame status
[more]int get_ribbon_number()
Get the number of ribbons in the list.
[more]void set_coord_names(LCVMarray<LCVMstring> &the_names)
Set the coordinates names from an LCVMarray, no size needed.
[more]void set_coord_names(char **the_names, int coord_nr)
Set the coordinates names from a usual array, its size is needed.
[more]LCVMstring get_coord_name(int coord_nr)
Get the name of the coordinate specified by a number.
[more]const char* get_char_coord_name(int coord_nr)
Get the name of the coordinate specified by a number.
[more]int get_coords_number(LCVMstring &a_name)
Get the number of the coordinate with the given name.
[more]int get_coords_number(char *a_name)
Get the number of the coordinate with the given name.
[more]virtual void print(ostream&)
a virtual print function
[more]friend ostream& operator<<(ostream &, DVframed_lines &)
A friend routine to overload the << operator
[more] DVframed_lines(FileOption a_file_op)
constructor from the global file with a file format option
[more]void ReadVBMoptions()
Read the options generated by VBM and in the VBM style
[more]void ReadRibbonDef()
Read the ribbon coordinates in the VBM style
[more]void ReadSomeCoords(int *where, const int n, const int def_val = 0)
Read the coordinates in the VBM style
[more]void ReadDefaults()
Read the default coordinates in the VBM style
[more]void ReadCoordDef()
Read the default coordinates in the VBM style, no color given
[more]void ReadFrameDef()
Read the frame in the VBM style
[more]void ReadFrameColorDef()
Read the frame plus its color in the VBM style
[more]virtual int ReadMyProp()
Specific properties for the scene file format.

Protected Fields

[more]DVframed_lines_frame_status frame_status
Tells if the frame is drawn or not.
[more]int ribbon_number
The number of ribbons to be drawn.
[more]LCVMarray_2D<int> frame_coords
The coordinates of the frame.
[more]LCVMarray<LCVMstring> coord_names
The names of all used coordinates.
[more]LCVMdoubly_linked_list<LCVMarray<int> *> ribbons
A list of coordinate vectors (3) for the ribbons
[more]DVribbon_form_status form_status
Tells if the ribbon is rendered as a surface or as a vector.
[more]DVribbon_mirror_status mirror_status
Tells if the ribbon is on one or on two sides of the line.

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 DVlines:

Public Methods

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 )
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 )
oDVlines& set_data(LCVMarray_2D<float> &coords)
oDVlines& set_data(LCVMarray_3D<float> &coords)
ovoid draw_lines(LCVMstack<DVproperty*>&)
ovoid draw_cylinders(LCVMstack<DVproperty*>&)
oDVlines& set_line_status(const DVlines_line_status)
oDVlines& set_ribbon_status(const DVlines_ribbon_status)
oDVlines_line_status get_line_status()
oDVlines_ribbon_status get_ribbon_status()
oDVlines& set_data(FileOption a_file_op)

Protected Fields

oDVlines_line_status line_status
oDVlines_ribbon_status ribbon_status


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 curves in space. It can render a group of space curves, using either lines or cylinders. Compared to the DVlines class from which it is derived, this class can place several director fields or ribbons along the center line. The ribbons can be either vectors or surfaces, and on one or both sides of the line.
oDVframed_lines_frame_status frame_status
Tells if the frame is drawn or not.

oint ribbon_number
The number of ribbons to be drawn.

oLCVMarray_2D<int> frame_coords
The coordinates of the frame.

oLCVMarray<LCVMstring> coord_names
The names of all used coordinates.

oLCVMdoubly_linked_list<LCVMarray<int> *> ribbons
A list of coordinate vectors (3) for the ribbons

oDVribbon_form_status form_status
Tells if the ribbon is rendered as a surface or as a vector.

oDVribbon_mirror_status mirror_status
Tells if the ribbon is on one or on two sides of the line.

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

o DVframed_lines( 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 )
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 DVframed_lines( 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 )
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 DVframed_lines(LCVMarray_2D<float> &coords)
The coordinates of the points for one line are stored in the array coords. An OpenGL line is drawn between each point and the next in the array.

o DVframed_lines(LCVMarray_3D<float> &coords)
The coordinates of the points for several lines are in the array coords. Each line is drawn as before, and can have its own length.

ovoid set_defaults()
Set what has to be rendered by default: no frame, no ribbon, mirrored ribbon, and surface ribbon

ovirtual ~DVframed_lines()
destructor

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

ovoid draw_ribbons(LCVMstack<DVproperty*> &)
It draws the whole list of ribbons.

ovoid draw_frames(LCVMstack<DVproperty*>&)
Draws the frame.

ovoid draw_ribbon(LCVMstack<DVproperty*> &)
Draws the current ribbon. It should not be called directly.

ovoid draw_plain_ribbon(LCVMstack<DVproperty*> &)
Draws one ribbon as a surface.

ovoid draw_vector_ribbon(LCVMstack<DVproperty*> &)
Draws one ribbon as a vector field.

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

oint copy_ribbons(DVframed_lines &data)
Copies the list of ribbons.

oconst DVframed_lines& operator=(DVframed_lines &data)
Assignment operator

oint operator==(DVframed_lines &data)
check for equality

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

oDVframed_lines& set_frame_status(const DVframed_lines_frame_status)
Set the frame status

oDVframed_lines& set_ribbon_form_status(const DVribbon_form_status)
Choose between surface or vector field ribbon.

oDVframed_lines& set_ribbon_mirror_status(const DVribbon_mirror_status)
Choose between one sided and mirrored ribbon.

oint add_ribbon(int, int, int)
Adds a ribbon to the list, x,y and z coordinates given.

oint add_ribbon(int, int, int, int)
Adds a ribbon to the list, x,y and z and color coordinates given.

oint add_ribbon(LCVMarray<int> *new_ribbon)
Adds a ribbon from an array of coordinates.

oint add_ribbon(LCVMarray<int> &)
Adds a ribbon from an array of coordinates

oint set_ribbon(int, int, int, int)
Sets the current ribbon coordinates

oint set_ribbon(LCVMarray<int> &)
Sets the current ribbon coordinates

ovoid default_frame_coords()
Sets the default frame with the coordinates: 3 to 9 for the x,y,z coordinates, 10 to 12 for the color

ovoid set_frame_coords(int d1x, int d1y, int d1z, int d2x, int d2y, int d2z, int d3x, int d3y, int d3z)
Set the frame coordinates, color not given.

ovoid set_frame_coords(int d1x, int d1y, int d1z, int d2x, int d2y, int d2z, int d3x, int d3y, int d3z, int color1, int color2, int color3)
Set the frame coordinates, including the color.

ovoid set_frame_coords(LCVMarray_2D<int> &coords)
Set the frame coordinates from an array.

oDVframed_lines_frame_status get_frame_status()
Get the frame status

oint get_ribbon_number()
Get the number of ribbons in the list.

ovoid set_coord_names(LCVMarray<LCVMstring> &the_names)
Set the coordinates names from an LCVMarray, no size needed.

ovoid set_coord_names(char **the_names, int coord_nr)
Set the coordinates names from a usual array, its size is needed.

oLCVMstring get_coord_name(int coord_nr)
Get the name of the coordinate specified by a number.

oconst char* get_char_coord_name(int coord_nr)
Get the name of the coordinate specified by a number.

oint get_coords_number(LCVMstring &a_name)
Get the number of the coordinate with the given name.

oint get_coords_number(char *a_name)
Get the number of the coordinate with the given name.

ovirtual void print(ostream&)
a virtual print function

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

o DVframed_lines(FileOption a_file_op)
constructor from the global file with a file format option

ovoid ReadVBMoptions()
Read the options generated by VBM and in the VBM style

ovoid ReadRibbonDef()
Read the ribbon coordinates in the VBM style

ovoid ReadSomeCoords(int *where, const int n, const int def_val = 0)
Read the coordinates in the VBM style

ovoid ReadDefaults()
Read the default coordinates in the VBM style

ovoid ReadCoordDef()
Read the default coordinates in the VBM style, no color given

ovoid ReadFrameDef()
Read the frame in the VBM style

ovoid ReadFrameColorDef()
Read the frame plus its color in the VBM style

ovirtual int ReadMyProp()
Specific properties for the scene file format. For this class: the frame coordinates, any number of ribbon coordinates, one-sided or mirrored ribbon, vector field or surface ribbon.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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