class DVlight_position

A class which defines the position of a light.

Public Fields

[more]float x
This is the x position of the light in homogeneous coordinates
[more]float y
This is the y position of the light in homogeneous coordinates
[more]float z
This is the z position of the light in homogeneous coordinates
[more]float w
This is the w position of the light in homogeneous coordinates.

Public Methods

[more] DVlight_position( const float x_val=0.0, const float y_val=0.0, const float z_val=1.0, const float w_val=0.0 )
Constructor
[more] ~DVlight_position()
Destructor
[more] DVlight_position(const DVlight_position&)
Copy constructor
[more]const DVlight_position& operator=(const DVlight_position&)
Sssignment operator
[more]int operator==(const DVlight_position&) const
Check equality
[more]int operator!=(const DVlight_position&) const
Check inequality
[more]void set_data( const float x_val=0.0, const float y_val=0.0, const float z_val=1.0, const float w_val=0.0 )
Set_data routine which matches the constructor
[more]void set_data(const DVlight_position&)
Set the data based upon another DVlight_position
[more]void get_data(float&, float&, float&, float&) const
Get the current light position
[more]void get_data(DVlight_position&) const
Copy the current light position into the give DVlight_position instance.
[more]float& operator[](const int)
We want foo[0] to be foo.x, ... foo[3] to be foo.w
[more]inline DVlight_position( const float x_val, const float y_val, const float z_val, const float w_val )
constructor
[more]inline DVlight_position(const DVlight_position &data)
copy constructor
[more]inline void get_data( float &x_val, float &y_val, float &z_val, float &w_val ) const
[more]inline void get_data(DVlight_position &r) const
[more]inline int operator!=(const DVlight_position &data) const
check not equal
[more]inline const DVlight_position& operator= (const DVlight_position &data)
assignment operator
[more]inline int operator==(const DVlight_position &data) const
check equal
[more]inline void set_data( const float x_val, const float y_val, const float z_val, const float w_val )
set_data routine
[more]inline void set_data(const DVlight_position &pt)
[more]inline ~DVlight_position()
destructor (does nothing)


Documentation

A class which defines the position of a light.
ofloat x
This is the x position of the light in homogeneous coordinates

ofloat y
This is the y position of the light in homogeneous coordinates

ofloat z
This is the z position of the light in homogeneous coordinates

ofloat w
This is the w position of the light in homogeneous coordinates. If it is 0, then the light is directional, if it is 1, then it is a point source

o DVlight_position( const float x_val=0.0, const float y_val=0.0, const float z_val=1.0, const float w_val=0.0 )
Constructor

o ~DVlight_position()
Destructor

o DVlight_position(const DVlight_position&)
Copy constructor

oconst DVlight_position& operator=(const DVlight_position&)
Sssignment operator

oint operator==(const DVlight_position&) const
Check equality

oint operator!=(const DVlight_position&) const
Check inequality

ovoid set_data( const float x_val=0.0, const float y_val=0.0, const float z_val=1.0, const float w_val=0.0 )
Set_data routine which matches the constructor

ovoid set_data(const DVlight_position&)
Set the data based upon another DVlight_position

ovoid get_data(float&, float&, float&, float&) const
Get the current light position

ovoid get_data(DVlight_position&) const
Copy the current light position into the give DVlight_position instance.

ofloat& operator[](const int)
We want foo[0] to be foo.x, ... foo[3] to be foo.w

oinline DVlight_position( const float x_val, const float y_val, const float z_val, const float w_val )
constructor

oinline DVlight_position(const DVlight_position &data)
copy constructor

oinline void get_data( float &x_val, float &y_val, float &z_val, float &w_val ) const

oinline void get_data(DVlight_position &r) const

oinline int operator!=(const DVlight_position &data) const
check not equal

oinline const DVlight_position& operator= (const DVlight_position &data)
assignment operator

oinline int operator==(const DVlight_position &data) const
check equal

oinline void set_data( const float x_val, const float y_val, const float z_val, const float w_val )
set_data routine

oinline void set_data(const DVlight_position &pt)

oinline ~DVlight_position()
destructor (does nothing)


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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