Basic geometric objects to construct the domain. More...
Functions | |
uint | helios::Context::addPatch () |
Add new default Patch geometric primitive, which is centered at the origin (0,0,0), has unit length and width, horizontal orientation, and black color. | |
uint | helios::Context::addPatch (const helios::vec3 ¢er, const helios::vec2 &size) |
Add new Patch geometric primitive. | |
uint | helios::Context::addPatch (const helios::vec3 ¢er, const helios::vec2 &size, const helios::SphericalCoord &rotation) |
Add new Patch geometric primitive. | |
uint | helios::Context::addPatch (const helios::vec3 ¢er, const helios::vec2 &size, const helios::SphericalCoord &rotation, const char *texture_file) |
Add new Patch geometric primitive. | |
uint | helios::Context::addPatch (const helios::vec3 ¢er, const helios::vec2 &size, const helios::SphericalCoord &rotation, const char *texture_file, const helios::vec2 &uv_center, const helios::vec2 &uv_size) |
Add new Patch geometric primitive. | |
uint | helios::Context::addTriangle (const helios::vec3 &vertex0, const helios::vec3 &vertex1, const helios::vec3 &vertex2) |
Add new Triangle geometric primitive. | |
uint | helios::Context::addTriangle (const helios::vec3 &vertex0, const helios::vec3 &vertex1, const helios::vec3 &vertex2, const helios::RGBcolor &color) |
Add new Triangle geometric primitive. | |
uint | helios::Context::addTriangle (const helios::vec3 &vertex0, const helios::vec3 &vertex1, const helios::vec3 &vertex2, const helios::RGBAcolor &color) |
Add new Triangle geometric primitive. | |
uint | helios::Context::addTriangle (const helios::vec3 &vertex0, const helios::vec3 &vertex1, const helios::vec3 &vertex2, const char *texture_file, const helios::vec2 &uv0, const helios::vec2 &uv1, const helios::vec2 &uv2) |
Add new Triangle geometric primitive. | |
uint | helios::Context::addVoxel (const helios::vec3 ¢er, const helios::vec3 &size) |
Add new Voxel geometric primitive. | |
uint | helios::Context::addVoxel (const helios::vec3 ¢er, const helios::vec3 &size, const float &rotation) |
Add new Voxel geometric primitive. | |
size_t | helios::Context::getPrimitiveCount (bool include_hidden_primitives=true) const |
Get the total number of Primitives in the Context. | |
size_t | helios::Context::getTriangleCount (bool include_hidden_primitives=true) const |
Get the total number of triangle Primitives in the Context. | |
size_t | helios::Context::getPatchCount (bool include_hidden_primitives=true) const |
Get the total number of patch Primitives in the Context. | |
Basic geometric objects to construct the domain.
uint Context::addPatch | ( | ) |
Add new default Patch geometric primitive, which is centered at the origin (0,0,0), has unit length and width, horizontal orientation, and black color.
Method to add a new default Patch to the Context
Definition at line 20 of file Context_primitive.cpp.
uint Context::addPatch | ( | const helios::vec3 & | center, |
const helios::vec2 & | size | ||
) |
Add new Patch geometric primitive.
Method to add a new Patch to the Context given its center, and size.
[in] | center | 3D coordinates of Patch center |
[in] | size | width and length of Patch |
Definition at line 24 of file Context_primitive.cpp.
uint Context::addPatch | ( | const helios::vec3 & | center, |
const helios::vec2 & | size, | ||
const helios::SphericalCoord & | rotation | ||
) |
Add new Patch geometric primitive.
Method to add a new Patch to the Context given its center, size, and spherical rotation.
[in] | center | 3D coordinates of Patch center |
[in] | size | width and length of Patch |
[in] | rotation | Spherical rotation |
Definition at line 28 of file Context_primitive.cpp.
uint Context::addPatch | ( | const helios::vec3 & | center, |
const helios::vec2 & | size, | ||
const helios::SphericalCoord & | rotation, | ||
const char * | texture_file | ||
) |
Add new Patch geometric primitive.
Method to add a new Patch to the Context given its center, size, spherical rotation, and a texture map handle.
[in] | center | 3D coordinates of Patch center |
[in] | size | width and length of Patch |
[in] | rotation | Spherical rotation |
[in] | texture_file | path to image file (JPEG or PNG) to be used as texture |
Definition at line 64 of file Context_primitive.cpp.
uint Context::addPatch | ( | const helios::vec3 & | center, |
const helios::vec2 & | size, | ||
const helios::SphericalCoord & | rotation, | ||
const char * | texture_file, | ||
const helios::vec2 & | uv_center, | ||
const helios::vec2 & | uv_size | ||
) |
Add new Patch geometric primitive.
Method to add a new Patch to the Context given its center, size, spherical rotation, and a texture map handle.
[in] | center | 3D coordinates of Patch center |
[in] | size | width and length of Patch |
[in] | rotation | Spherical rotation |
[in] | texture_file | path to image file (JPEG or PNG) to be used as texture |
[in] | uv_center | u-v coordinates of the center of texture map |
[in] | uv_size | size of the texture in u-v coordinates |
Definition at line 94 of file Context_primitive.cpp.
uint Context::addTriangle | ( | const helios::vec3 & | vertex0, |
const helios::vec3 & | vertex1, | ||
const helios::vec3 & | vertex2 | ||
) |
Add new Triangle geometric primitive.
Method to add a new Triangle to the Context given the (x,y,z) coordinates of its vertices.
[in] | vertex0 | 3D coordinate of Triangle vertex #0 |
[in] | vertex1 | 3D coordinate of Triangle vertex #1 |
[in] | vertex2 | 3D coordinate of Triangle vertex #2 |
Definition at line 132 of file Context_primitive.cpp.
uint Context::addTriangle | ( | const helios::vec3 & | vertex0, |
const helios::vec3 & | vertex1, | ||
const helios::vec3 & | vertex2, | ||
const char * | texture_file, | ||
const helios::vec2 & | uv0, | ||
const helios::vec2 & | uv1, | ||
const helios::vec2 & | uv2 | ||
) |
Add new Triangle geometric primitive.
Method to add a new Triangle to the Context given its the (x,y,z) coordinates of its vertices and diffuse RGBcolor.
[in] | vertex0 | 3D coordinate of Triangle vertex #0 |
[in] | vertex1 | 3D coordinate of Triangle vertex #1 |
[in] | vertex2 | 3D coordinate of Triangle vertex #2 |
[in] | texture_file | path to image file (JPEG or PNG) to be used as texture |
[in] | uv0 | u-v texture coordinates for vertex0 |
[in] | uv1 | u-v texture coordinates for vertex1 |
[in] | uv2 | u-v texture coordinates for vertex2 |
Definition at line 155 of file Context_primitive.cpp.
uint Context::addTriangle | ( | const helios::vec3 & | vertex0, |
const helios::vec3 & | vertex1, | ||
const helios::vec3 & | vertex2, | ||
const helios::RGBAcolor & | color | ||
) |
Add new Triangle geometric primitive.
Method to add a new Triangle to the Context given its the (x,y,z) coordinates of its vertices and diffuse RGBAcolor.
[in] | vertex0 | 3D coordinate of Triangle vertex #0 |
[in] | vertex1 | 3D coordinate of Triangle vertex #1 |
[in] | vertex2 | 3D coordinate of Triangle vertex #2 |
[in] | color | diffuse R-G-B-A color of Triangle |
Definition at line 140 of file Context_primitive.cpp.
uint Context::addTriangle | ( | const helios::vec3 & | vertex0, |
const helios::vec3 & | vertex1, | ||
const helios::vec3 & | vertex2, | ||
const helios::RGBcolor & | color | ||
) |
Add new Triangle geometric primitive.
Method to add a new Triangle to the Context given its the (x,y,z) coordinates of its vertices and diffuse RGBcolor.
[in] | vertex0 | 3D coordinate of Triangle vertex #0 |
[in] | vertex1 | 3D coordinate of Triangle vertex #1 |
[in] | vertex2 | 3D coordinate of Triangle vertex #2 |
[in] | color | diffuse R-G-B color of Triangle |
Definition at line 136 of file Context_primitive.cpp.
uint Context::addVoxel | ( | const helios::vec3 & | center, |
const helios::vec3 & | size | ||
) |
Add new Voxel geometric primitive.
Method to add a new Voxel to the Context given its center, and size.
[in] | center | 3D coordinates of Voxel center |
[in] | size | width, length, and height of Voxel |
Definition at line 174 of file Context_primitive.cpp.
uint Context::addVoxel | ( | const helios::vec3 & | center, |
const helios::vec3 & | size, | ||
const float & | rotation | ||
) |
Add new Voxel geometric primitive.
Method to add a new Voxel to the Context given its center, size, and spherical rotation.
[in] | center | 3D coordinates of Voxel center |
[in] | size | width, length, and height of Voxel |
[in] | rotation | spherical rotation angle (elevation,azimuth) in radians of Voxel |
Definition at line 178 of file Context_primitive.cpp.
size_t Context::getPatchCount | ( | bool | include_hidden_primitives = true | ) | const |
Get the total number of patch Primitives in the Context.
[in] | include_hidden_primitives | [optional] If true, the number of hidden primitives is included in the count. |
Definition at line 714 of file Context_primitive.cpp.
size_t Context::getPrimitiveCount | ( | bool | include_hidden_primitives = true | ) | const |
Get the total number of Primitives in the Context.
[in] | include_hidden_primitives | [optional] If true, the number of hidden primitives is included in the count. |
Definition at line 690 of file Context_primitive.cpp.
size_t Context::getTriangleCount | ( | bool | include_hidden_primitives = true | ) | const |
Get the total number of triangle Primitives in the Context.
[in] | include_hidden_primitives | [optional] If true, the number of hidden primitives is included in the count. |
Definition at line 704 of file Context_primitive.cpp.