|
| Voxel ()=default |
| Default voxel constructor.
|
|
| Voxel (glm::dvec3 center, double voxelSize) |
| Voxel constructor. More...
|
|
| Voxel (double x, double y, double z, double halfVoxelSize) |
| Voxel constructor. More...
|
|
Primitive * | clone () override |
|
void | _clone (Primitive *p) override |
|
void | swap (Voxel &voxel) |
| Swap semantic implementation for voxel. More...
|
|
| Voxel (Voxel const &voxel) |
|
Voxel & | operator= (Voxel const &voxel) |
|
| Voxel (Voxel &&voxel) |
|
Voxel & | operator= (Voxel &&voxel) |
|
AABB * | getAABB () override |
|
glm::dvec3 | getCentroid () override |
|
double | getIncidenceAngle_rad (const glm::dvec3 &rayOrigin, const glm::dvec3 &rayDir, const glm::dvec3 &intersectionPoint) override |
|
double | getIncidenceAngleClosestFace_rad (const glm::dvec3 &rayOrigin, const glm::dvec3 &rayDir, const glm::dvec3 &intersectionPoint) |
| Obtain the incidence angle with respect to closest face for given intersection point. More...
|
|
std::vector< double > | getRayIntersection (const glm::dvec3 &rayOrigin, const glm::dvec3 &rayDir) override |
|
double | getRayIntersectionDistance (const glm::dvec3 &rayOrigin, const glm::dvec3 &rayDir) override |
|
virtual size_t | getNumVertices () override |
|
Vertex * | getVertices () override |
|
virtual size_t | getNumFullVertices () override |
|
Vertex * | getFullVertices () override |
|
double | getGroundZOffset () override |
|
bool | hasNormal () |
| Check if voxel has a valid normal. More...
|
|
void | rotate (Rotation &r) override |
| Voxel cannot be rotated More...
|
|
void | scale (double const factor) override |
|
void | translate (glm::dvec3 const &shift) override |
|
void | update () override |
|
virtual void | onFinishLoading (NoiseSource< double > &uniformNoiseSource) |
| Method to be triggered once all Primitives have been loaded. More...
|
|
virtual bool | canHandleIntersections () |
| Specify if the primitive can handle intersections or not. More...
|
|
virtual IntersectionHandlingResult | onRayIntersection (NoiseSource< double > &uniformNoiseSource, glm::dvec3 &rayDirection, glm::dvec3 const &insideIntersectionPoint, glm::dvec3 const &outsideIntersectionPoint, double rayIntensity) |
| Handle ray intersections. More...
|
|
virtual bool | canComputeSigmaWithLadLut () |
| Check if primitive can compute sigma using LadLut or not. More...
|
|
virtual double | computeSigmaWithLadLut (glm::dvec3 const &direction) |
| Compute sigma using LadLut. More...
|
|
|
Vertex | v |
| Vertex representing the voxel center.
|
|
int | numPoints = 0 |
| Number of points inside the voxel. Useful when the voxel has been built from a point cloud.
|
|
double | r = 0 |
| Aggregated red component from points inside voxel.
|
|
double | g = 0 |
| Aggregated green component from points inside voxel.
|
|
double | b = 0 |
| Aggregated blue component from points inside voxel.
|
|
glm::dvec3 | normal = glm::dvec3(0, 0, 0) |
| Voxel normal vecctor.
|
|
AABB * | bbox = nullptr |
| Axis aligned bounding box containing the voxel.
|
|
Color4f | color |
| Voxel color. This attribute is not used at the moment and might be removed in the future.
|
|
double | halfSize |
| Half of the voxel sizxe.
|
|
std::shared_ptr< ScenePart > | part = nullptr |
| Shared pointer to the scene part the primitive belongs to. More...
|
|
std::shared_ptr< Material > | material = nullptr |
| Shared pointer to the material defining certain properties such as reflectance, specularity, ... More...
|
|
Class representing a voxel primitive.