class DVtriangle: public DVobject

A simple class that displays one triangle.

Inheritance:


Public Methods

[more] DVtriangle()
Default constructor, no data given
[more] DVtriangle(const float *const, const float *const, const float *const)
Three nodes given
[more] DVtriangle(const float[][3])
Array of three nodes given
[more] DVtriangle(const float *const, const float *const, const float *const, const float *const, const float *const, const float *const)
Three nodes and three normal vectors given
[more] DVtriangle(const float *const, const float *const, const float *const, const float *const)
Three nodes and one normal vector given
[more] DVtriangle(const float *const, const float *const, const float *const, const float[][3])
Three nodes and an array of three normal vectors given
[more] DVtriangle(const float[][3], const float *const, const float *const, const float *const)
An array with the three nodes and three normal vectors given
[more] DVtriangle(const float[][3], const float *const)
An array with the three nodes and one normal vector given
[more] DVtriangle(const float[][3], const float[][3])
An array with the three nodes and an array with three normal vectors
[more]virtual ~DVtriangle()
Destructor
[more]DVtriangle& set_data()
Functions to set the nodes and normals, no data given.
[more]DVtriangle& set_data(const float *const, const float *const, const float *const)
Three nodes given, no normals given.
[more]DVtriangle& set_data(const float[][3])
An array of three nodes given, no normals given
[more]DVtriangle& set_data(const float *const, const float *const, const float *const, const float *const, const float *const, const float *const )
Three nodes and three normal vectors given
[more]DVtriangle& set_data(const float *const, const float *const, const float *const, const float *const)
Three nodes and one normal vector given
[more]DVtriangle& set_data(const float *const, const float *const, const float *const, const float[][3])
Three nodes and an array of three normal vectors given
[more]DVtriangle& set_data(const float[][3], const float *const, const float *const, const float *const)
An array with the three nodes and three normal vectors given
[more]DVtriangle& set_data(const float[][3], const float *const)
An array with the three nodes and one normal vector given
[more]DVtriangle& set_data(const float[][3], const float[][3])
An array with the three nodes and an array with three normal vectors
[more]virtual void draw(LCVMstack<DVproperty*>&)
Virtual draw routine
[more] DVtriangle(const DVtriangle &data)
Copy constructor
[more]DVtriangle& operator=(const DVtriangle &data)
Assignment operator
[more]virtual void print(ostream&)
A virtual print function
[more] DVtriangle(FileOption a_file_op)
A function to read from a scenefile
[more]friend ostream& operator<<(ostream &, DVtriangle &)
A friend routine to overload the << operator
[more]inline DVtriangle()
first one makes a "default" triangle. (no nodes or normals given)
[more]inline DVtriangle(const float *const p0, const float *const p1, const float *const p2)
three nodes and no normals given
[more]inline DVtriangle(const float p[][3])
an array of three nodes but no normals given
[more]inline DVtriangle(const float *const p0, const float *const p1, const float *const p2, const float *const n0, const float *const n1, const float *const n2)
three nodes and three normal vectors given
[more]inline DVtriangle(const float *const p0, const float *const p1, const float *const p2, const float *const n)
three nodes and one normal vector given
[more]inline DVtriangle(const float *const p0, const float *const p1, const float *const p2, const float n[][3])
three nodes and an array of three normal vectors given
[more]inline DVtriangle(const float p[][3], const float *const n0, const float *const n1, const float *const n2)
an array with the three nodes and three normal vectors given
[more]inline DVtriangle(const float p[][3], const float *const n)
an array with the three nodes and one normal vector given
[more]inline DVtriangle(const float p[][3], const float n[][3])
an array with the three nodes and an array with three normal vectors
[more]inline DVtriangle& set_data()
no data given
[more]inline DVtriangle& set_data(const float *const p0, const float *const p1, const float *const p2)
three nodes given, no normals given
[more]inline DVtriangle& set_data(const float p[][3])
an array of three nodes given, no normals given
[more]inline DVtriangle& set_data(const float *const p0, const float *const p1, const float *const p2, const float *const n0, const float *const n1, const float *const n2)
three nodes and three normal vectors given
[more]inline DVtriangle& set_data(const float *const p0, const float *const p1, const float *const p2, const float *const n)
three nodes and one normal vector given
[more]inline DVtriangle& set_data(const float *const p0, const float *const p1, const float *const p2, const float n[][3])
three nodes and an array of three normal vectors given
[more]inline DVtriangle& set_data(const float p[][3], const float *const n0, const float *const n1, const float *const n2)
an array with the three nodes and three normal vectors given
[more]inline DVtriangle& set_data(const float p[][3], const float *const n)
an array with the three nodes and one normal vector given
[more]inline DVtriangle& set_data(const float p[][3], const float n[][3])
an array with the three nodes and an array with three normal vectors
[more]inline ~DVtriangle()
destructor

Protected Fields

[more]float nodes[3][3]
First row is node 0 -- third column is z0,z1,z2
[more]float normals[3][3]
First row is normal 0 -- third column is nz0,nz1,nz2

Protected Methods

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


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 operator==(const DVobject &data)
oint operator!=(const DVobject &data)
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()


Documentation

A simple class that displays one triangle.
ofloat nodes[3][3]
First row is node 0 -- third column is z0,z1,z2

ofloat normals[3][3]
First row is normal 0 -- third column is nz0,nz1,nz2

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

o DVtriangle()
Default constructor, no data given

o DVtriangle(const float *const, const float *const, const float *const)
Three nodes given

o DVtriangle(const float[][3])
Array of three nodes given

o DVtriangle(const float *const, const float *const, const float *const, const float *const, const float *const, const float *const)
Three nodes and three normal vectors given

o DVtriangle(const float *const, const float *const, const float *const, const float *const)
Three nodes and one normal vector given

o DVtriangle(const float *const, const float *const, const float *const, const float[][3])
Three nodes and an array of three normal vectors given

o DVtriangle(const float[][3], const float *const, const float *const, const float *const)
An array with the three nodes and three normal vectors given

o DVtriangle(const float[][3], const float *const)
An array with the three nodes and one normal vector given

o DVtriangle(const float[][3], const float[][3])
An array with the three nodes and an array with three normal vectors

ovirtual ~DVtriangle()
Destructor

oDVtriangle& set_data()
Functions to set the nodes and normals, no data given.

oDVtriangle& set_data(const float *const, const float *const, const float *const)
Three nodes given, no normals given.

oDVtriangle& set_data(const float[][3])
An array of three nodes given, no normals given

oDVtriangle& set_data(const float *const, const float *const, const float *const, const float *const, const float *const, const float *const )
Three nodes and three normal vectors given

oDVtriangle& set_data(const float *const, const float *const, const float *const, const float *const)
Three nodes and one normal vector given

oDVtriangle& set_data(const float *const, const float *const, const float *const, const float[][3])
Three nodes and an array of three normal vectors given

oDVtriangle& set_data(const float[][3], const float *const, const float *const, const float *const)
An array with the three nodes and three normal vectors given

oDVtriangle& set_data(const float[][3], const float *const)
An array with the three nodes and one normal vector given

oDVtriangle& set_data(const float[][3], const float[][3])
An array with the three nodes and an array with three normal vectors

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

o DVtriangle(const DVtriangle &data)
Copy constructor

oDVtriangle& operator=(const DVtriangle &data)
Assignment operator

ovirtual void print(ostream&)
A virtual print function

o DVtriangle(FileOption a_file_op)
A function to read from a scenefile

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

oinline DVtriangle()
first one makes a "default" triangle. (no nodes or normals given)

oinline DVtriangle(const float *const p0, const float *const p1, const float *const p2)
three nodes and no normals given

oinline DVtriangle(const float p[][3])
an array of three nodes but no normals given

oinline DVtriangle(const float *const p0, const float *const p1, const float *const p2, const float *const n0, const float *const n1, const float *const n2)
three nodes and three normal vectors given

oinline DVtriangle(const float *const p0, const float *const p1, const float *const p2, const float *const n)
three nodes and one normal vector given

oinline DVtriangle(const float *const p0, const float *const p1, const float *const p2, const float n[][3])
three nodes and an array of three normal vectors given

oinline DVtriangle(const float p[][3], const float *const n0, const float *const n1, const float *const n2)
an array with the three nodes and three normal vectors given

oinline DVtriangle(const float p[][3], const float *const n)
an array with the three nodes and one normal vector given

oinline DVtriangle(const float p[][3], const float n[][3])
an array with the three nodes and an array with three normal vectors

oinline DVtriangle& set_data()
no data given

oinline DVtriangle& set_data(const float *const p0, const float *const p1, const float *const p2)
three nodes given, no normals given

oinline DVtriangle& set_data(const float p[][3])
an array of three nodes given, no normals given

oinline DVtriangle& set_data(const float *const p0, const float *const p1, const float *const p2, const float *const n0, const float *const n1, const float *const n2)
three nodes and three normal vectors given

oinline DVtriangle& set_data(const float *const p0, const float *const p1, const float *const p2, const float *const n)
three nodes and one normal vector given

oinline DVtriangle& set_data(const float *const p0, const float *const p1, const float *const p2, const float n[][3])
three nodes and an array of three normal vectors given

oinline DVtriangle& set_data(const float p[][3], const float *const n0, const float *const n1, const float *const n2)
an array with the three nodes and three normal vectors given

oinline DVtriangle& set_data(const float p[][3], const float *const n)
an array with the three nodes and one normal vector given

oinline DVtriangle& set_data(const float p[][3], const float n[][3])
an array with the three nodes and an array with three normal vectors

oinline ~DVtriangle()
destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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