Skip to content

dakku

dakku namespace

Classes

Name
class dakku::Bounds2
2d bounding box
class dakku::Bounds2iIterator
2d integer bounds iterator, iterate all pixels inside
class dakku::Bounds3
3d bounding box
class dakku::BoundsBase
bounding box base
class dakku::BoxFilter
box filter the box filter is simple, just return \(1\) for all values
class dakku::Filter
class dakku::GlobalMemoryArena
global memory arena
class dakku::Logger
logger class
class dakku::Lua
dakku lua state
class dakku::MemoryArena
memory arena (unsynchronized)
class dakku::Normal
normal
class dakku::Point
point
class dakku::Ray
ray
class dakku::RayDifferential
differential ray
class dakku::TriangleFilter
triangle filter the weight falls off linearly from the filter center over the square extent of the filter
class dakku::Vector
vector
class dakku::VectorBase
vector base

Types

Name
using Bounds2< float > Bounds2f
2d float bounds
using Bounds2< int > Bounds2i
2d int bounds
using Bounds3< float > Bounds3f
3d float bounds
using Vector< int, 2 > Vector2i
2d int vector
using Vector< float, 2 > Vector2f
2d float vector
using Vector< int, 3 > Vector3i
3d int vector
using Vector< float, 3 > Vector3f
3d float vector
using Point< float, 3 > Point3f
3d float point
using Point< int, 3 > Point3i
3d int point
using Point< float, 2 > Point2f
2d float point
using Point< int, 2 > Point2i
2d int point
using Normal< float, 3 > Normal3f
3d float normal

Functions

Name
Bounds2iIterator begin(const Bounds2i & b)
begin of the bounds2i iteration
Bounds2iIterator end(const Bounds2i & b)
end of the bounds2i iteration
DAKKU_DECLARE_LUA_OBJECT(Bounds , DAKKU_EXPORT_CORE )
template <typename T >
DAKKU_INLINE bool
isnan(T x)
check whether x is not a number
template <typename T >
DAKKU_INLINE bool
isnan(T )
check whether x is not a number
DAKKU_DECLARE_LUA_OBJECT(Vector2i , DAKKU_EXPORT_CORE )
DAKKU_DECLARE_LUA_OBJECT(Vector2f , DAKKU_EXPORT_CORE )
DAKKU_DECLARE_LUA_OBJECT(Vector3i , DAKKU_EXPORT_CORE )
DAKKU_DECLARE_LUA_OBJECT(Vector3f , DAKKU_EXPORT_CORE )
DAKKU_DECLARE_LUA_OBJECT(Point3f , DAKKU_EXPORT_CORE )
DAKKU_DECLARE_LUA_OBJECT(Point3i , DAKKU_EXPORT_CORE )
DAKKU_DECLARE_LUA_OBJECT(Point2f , DAKKU_EXPORT_CORE )
DAKKU_DECLARE_LUA_OBJECT(Point2i , DAKKU_EXPORT_CORE )
DAKKU_DECLARE_LUA_OBJECT(Normal3f , DAKKU_EXPORT_CORE )
DAKKU_EXPORT_FILTERSFilter * create_box_filter(float x_width, float y_width)
Create a box filter object.
DAKKU_DECLARE_LUA_OBJECT(BoxFilter , DAKKU_EXPORT_FILTERS )
DAKKU_EXPORT_FILTERSFilter * create_triangle_filter(float x_width, float y_width)
Create a triangle filter object.
DAKKU_DECLARE_LUA_OBJECT(TriangleFilter , DAKKU_EXPORT_FILTERS )

Attributes

Name
constexpr float INF
infinity
constexpr float PI
PI.
constexpr float INV_PI
\(\frac 1 \pi\)
constexpr float PI_OVER_2
\(\frac \pi 2\)
constexpr float PI_OVER_4
\(\frac \pi 4\)
constexpr float SHADOW_EPS
shadow epsilon, used for shadow ray, offset ray origin
constexpr float ONE_MINUS_EPSILON
1 - eps

Types Documentation

using Bounds2f

using dakku::Bounds2f = typedef Bounds2<float>;

2d float bounds

using Bounds2i

using dakku::Bounds2i = typedef Bounds2<int>;

2d int bounds

using Bounds3f

using dakku::Bounds3f = typedef Bounds3<float>;

3d float bounds

using Vector2i

using dakku::Vector2i = typedef Vector<int, 2>;

2d int vector

using Vector2f

using dakku::Vector2f = typedef Vector<float, 2>;

2d float vector

using Vector3i

using dakku::Vector3i = typedef Vector<int, 3>;

3d int vector

using Vector3f

using dakku::Vector3f = typedef Vector<float, 3>;

3d float vector

using Point3f

using dakku::Point3f = typedef Point<float, 3>;

3d float point

using Point3i

using dakku::Point3i = typedef Point<int, 3>;

3d int point

using Point2f

using dakku::Point2f = typedef Point<float, 2>;

2d float point

using Point2i

using dakku::Point2i = typedef Point<int, 2>;

2d int point

using Normal3f

using dakku::Normal3f = typedef Normal<float, 3>;

3d float normal

Functions Documentation

function begin

inline Bounds2iIterator begin(
    const Bounds2i & b
)

begin of the bounds2i iteration

function end

inline Bounds2iIterator end(
    const Bounds2i & b
)

end of the bounds2i iteration

function DAKKU_DECLARE_LUA_OBJECT

DAKKU_DECLARE_LUA_OBJECT(
    Bounds ,
    DAKKU_EXPORT_CORE 
)

function isnan

template <typename T >
DAKKU_INLINE bool isnan(
    T x
)

check whether x is not a number

Parameters:

  • x given value

Template Parameters:

  • T type (floating point)

Return: whether x is nan

function isnan

template <typename T >
DAKKU_INLINE bool isnan(
    T 
)

check whether x is not a number

Template Parameters:

  • T type (integer)

Return: false (all integers are not nans)

function DAKKU_DECLARE_LUA_OBJECT

DAKKU_DECLARE_LUA_OBJECT(
    Vector2i ,
    DAKKU_EXPORT_CORE 
)

function DAKKU_DECLARE_LUA_OBJECT

DAKKU_DECLARE_LUA_OBJECT(
    Vector2f ,
    DAKKU_EXPORT_CORE 
)

function DAKKU_DECLARE_LUA_OBJECT

DAKKU_DECLARE_LUA_OBJECT(
    Vector3i ,
    DAKKU_EXPORT_CORE 
)

function DAKKU_DECLARE_LUA_OBJECT

DAKKU_DECLARE_LUA_OBJECT(
    Vector3f ,
    DAKKU_EXPORT_CORE 
)

function DAKKU_DECLARE_LUA_OBJECT

DAKKU_DECLARE_LUA_OBJECT(
    Point3f ,
    DAKKU_EXPORT_CORE 
)

function DAKKU_DECLARE_LUA_OBJECT

DAKKU_DECLARE_LUA_OBJECT(
    Point3i ,
    DAKKU_EXPORT_CORE 
)

function DAKKU_DECLARE_LUA_OBJECT

DAKKU_DECLARE_LUA_OBJECT(
    Point2f ,
    DAKKU_EXPORT_CORE 
)

function DAKKU_DECLARE_LUA_OBJECT

DAKKU_DECLARE_LUA_OBJECT(
    Point2i ,
    DAKKU_EXPORT_CORE 
)

function DAKKU_DECLARE_LUA_OBJECT

DAKKU_DECLARE_LUA_OBJECT(
    Normal3f ,
    DAKKU_EXPORT_CORE 
)

function create_box_filter

DAKKU_EXPORT_FILTERSFilter * create_box_filter(
    float x_width,
    float y_width
)

Create a box filter object.

function DAKKU_DECLARE_LUA_OBJECT

DAKKU_DECLARE_LUA_OBJECT(
    BoxFilter ,
    DAKKU_EXPORT_FILTERS 
)

function create_triangle_filter

DAKKU_EXPORT_FILTERSFilter * create_triangle_filter(
    float x_width,
    float y_width
)

Create a triangle filter object.

function DAKKU_DECLARE_LUA_OBJECT

DAKKU_DECLARE_LUA_OBJECT(
    TriangleFilter ,
    DAKKU_EXPORT_FILTERS 
)

Attributes Documentation

variable INF

static constexpr float INF = std::numeric_limits<float>::infinity();

infinity

variable PI

static constexpr float PI = std::numbers::pi_v<float>;

PI.

variable INV_PI

static constexpr float INV_PI =
    static_cast<float>(1.0 / std::numbers::pi_v<double>);

\(\frac 1 \pi\)

variable PI_OVER_2

static constexpr float PI_OVER_2 =
    static_cast<float>(std::numbers::pi_v<double> / 2.0);

\(\frac \pi 2\)

variable PI_OVER_4

static constexpr float PI_OVER_4 =
    static_cast<float>(std::numbers::pi_v<double> / 4.0);

\(\frac \pi 4\)

variable SHADOW_EPS

static constexpr float SHADOW_EPS = 1e-5f;

shadow epsilon, used for shadow ray, offset ray origin

variable ONE_MINUS_EPSILON

static constexpr float ONE_MINUS_EPSILON =
    1 - std::numeric_limits<float>::epsilon();

1 - eps


Updated on 2022-04-30 at 15:46:11 +0000