ImFusion C++ SDK 4.5.0
ImFusion::GL::ImageProgram::Cuboid Class Reference

#include <ImFusion/Core/GL/ImageProgram.h>

Utility class to specify the (sub-) region of the textures to execute the shader on. More...

Inheritance diagram for ImFusion::GL::ImageProgram::Cuboid:

Detailed Description

Utility class to specify the (sub-) region of the textures to execute the shader on.

Public Member Functions

 Cuboid (double x, double y, double z, double width, double height, double depth)
double x () const
double y () const
double z () const
Public Member Functions inherited from ImFusion::Geometry::AlignedBox
 AlignedBox ()
 Creates an invalid box that does not contain any point and does not intersect with anything.
 AlignedBox (const vec3 &point)
 Creates a box that consists of the single given point; it has zero extent but is valid.
 AlignedBox (const vec3 &lowerLeftFront, const vec3 &upperRightBack)
 Creates a box that spans the two given points.
bool operator== (const AlignedBox &) const
bool operator!= (const AlignedBox &) const
bool isApprox (const AlignedBox &) const
 Floating point comparison using the same epsilon as Eigen::isApprox.
void addPoint (const vec3 &point)
 Extends this box to include the given point.
void addBox (const AlignedBox &other)
 Extends this box to include the other AlignedBox.
void reset ()
 Reset to an invalid bounding box.
bool isValid () const
 Returns whether this box is valid (i.e. none of the LLF/URB components is NaN).
bool includesPoint (const vec3 &point) const
 Returns whether the box contains the given point.
vec3 closestPoint (const vec3 &point) const
 Returns the point inside this box that is closest to point, NaN if isValid() is false.
double distanceToPoint (const vec3 &point) const
 Returns the distance of point to the closest point inside this box, NaN if isValid() is false.
const vec3 & lowerLeftFront () const
 Returns the lower-left-front corner (component-wise minimum) of the bounding box.
const vec3 & upperRightBack () const
 Returns the upper-right-back corner (component-wise maximum) of the bounding box.
double left () const
double right () const
double top () const
double bottom () const
double front () const
double back () const
double width () const
double height () const
double depth () const
vec3 center () const
 Returns the center of the bounding box.
vec3 extent () const
 Returns the extent of the bounding box (URB - LLF).
double volume () const
 Returns the volume of the bounding box.
std::array< vec3, 8 > corners () const
 Returns corner in order left to right, bottom to top, front to back, i.e.

Additional Inherited Members

Protected Attributes inherited from ImFusion::Geometry::AlignedBox
vec3 m_llf
vec3 m_urb

The documentation for this class was generated from the following file:
  • ImFusion/Core/GL/ImageProgram.h
Search Tab / S to search, Esc to close