sphore 0.0.1
SPH openGL rendering engine
|
Code for managing data that is to be rendered with column integrals. More...
Go to the source code of this file.
Typedefs | |
typedef struct _data_column_int | data_column_int_t |
The public interface to data_points. | |
Functions | |
data_column_int_t * | data_column_int_create (unsigned int n, float *x, float *y, float *z, float *h, float *weight, float *data, float data_min, float data_max) |
Creates a new data object. | |
void | data_column_int_destroy (data_column_int_t *ds) |
Frees the memory associated with the given data_column_int_t. | |
void | data_column_int_render (data_column_int_t *data) |
Renders the given particles. |
Code for managing data that is to be rendered with column integrals.
typedef struct _data_column_int data_column_int_t |
The public interface to data_points.
data_column_int_t* data_column_int_create | ( | unsigned int | n, |
float * | x, | ||
float * | y, | ||
float * | z, | ||
float * | h, | ||
float * | weight, | ||
float * | data, | ||
float | data_min, | ||
float | data_max | ||
) |
Creates a new data object.
[in] | n | The number of points. |
[in] | x | The x coordinantes of the points. |
[in] | y | The y coordinantes of the points. |
[in] | z | The z coordinantes of the points. |
[in] | h | The smoothing length of the particles. |
[in] | weight | The weight of each particle. |
[in] | data | The value of the quantity being integrated at each particle. |
[in] | data_min | The value of data that will be assigned to the lowest colour in the table. |
[in] | data_max | The value of data that will be assigned to the highest colour in the table. |
void data_column_int_destroy | ( | data_column_int_t * | ds | ) |
Frees the memory associated with the given data_column_int_t.
[in] | ds | the data to be destroyed. |
void data_column_int_render | ( | data_column_int_t * | data | ) |
Renders the given particles.