#include <RaySample.h>
This class contains a couple of methods for the raysample primitive. Each raysample has various properties, such as color, opacity, density, gradient vector, objectID and coordinates, which wil be described later.
Public Member Functions | |
RaySample (void) | |
This is the standard constructor. | |
RaySample (Vector3 *n_Coords) | |
This constructor initalized a raysample with the given coordinates. | |
RaySample (float n_Color __gc[], float n_Opacity, unsigned short n_ObjectID) | |
This constructor initalized a raysample with the given parameters. | |
~RaySample (void) | |
This is the standard destructor. | |
__property void | set_Color (float n_Color __gc[]) |
Sets the color of the raysample. | |
__property void | set_Density (unsigned short n_Density) |
Sets the density of the raysample. | |
__property void | set_Opacity (float n_Opacity) |
Sets the opacity of the raysample. | |
__property void | set_Gradient (RenderPrimitives::Gradient *n_Gradient) |
Sets the gradient of the raysample. | |
__property void | set_ObjectID (unsigned short n_ObjectID) |
Sets the objectID of the raysample. | |
__property void | set_Coords (Vector3 *n_Coords) |
Sets the coordinates of the raysample. | |
__property float | get_Color (void) __gc[] |
Returns the color of the raysample. | |
__property unsigned short | get_Density (void) |
Returns the density of the raysample. | |
__property float | get_Opacity (void) |
Returns the opacity of the raysample. | |
__property RenderPrimitives::Gradient * | get_Gradient (void) |
Returns the gradient of the raysample. | |
__property unsigned short | get_ObjectID (void) |
Returns the objectID of the raysample. | |
__property Vector3 * | get_Coords (void) |
Returns the coordinates of the raysample. | |
Private Attributes | |
float m_Color | __gc [] |
The color of the raysample. | |
unsigned short | m_Density |
The density of the raysample. | |
float | m_Opacity |
The opacity of the raysample. | |
RenderPrimitives::Gradient * | m_Gradient |
The gradient of the raysample. | |
unsigned short | m_ObjectID |
The objectID of the raysample. | |
Vector3 * | m_Coords |
The coordinates of the raysample. |
|
This is the standard constructor. This standard constructor initialzed all elements with zero. |
|
This constructor initalized a raysample with the given coordinates. All other parmeters are set to zero.
|
|
This constructor initalized a raysample with the given parameters.
|
|
This is the standard destructor.
|
|
Returns the color of the raysample.
|
|
Returns the coordinates of the raysample.
|
|
Returns the density of the raysample.
|
|
Returns the gradient of the raysample.
|
|
Returns the objectID of the raysample.
|
|
Returns the opacity of the raysample.
|
|
Sets the color of the raysample.
|
|
Sets the coordinates of the raysample.
|
|
Sets the density of the raysample.
|
|
Sets the gradient of the raysample.
|
|
Sets the objectID of the raysample.
|
|
Sets the opacity of the raysample.
|