class Geo AbstractRayChunk

This is the documentation for Enlighten.

class Geo AbstractRayChunk

template<typename T>
class Geo::AbstractRayChunk

Buffer that holds a chunk of rays and results.

Classes

Name

Description

Name

Description

Geo::AbstractRayChunk::ResultsIterator

Iterator to a const ray result, allows iterating linearly over the ray results.

Functions

Name

Description

Name

Description

AddRay(const Geo::v128, const Geo::v128)

Add a ray to the set (must have already allocated enough space)

Alloc(Geo::s32, Geo::s32)

Allocate buffer space for nRays and set the chunk id.

BeginResults()

Gets an STL-style 'begin' iterator for the results.

EndResults()

Gets an STL-style 'end' iterator for the results.

GetId()

Gets the assigned chunk id.

GetMaxSize()

Get the maximum number of rays that will fit in this chunk.

GetRayConstPtr()

Ray data.

GetRayCount()

Get the number of rays currently in this chunk.

GetRayFilter()

Gets/sets the ray filter.

GetRayPtr()

Ray data.

GetResultsPtr()

Results data.

SetRayCount(Geo::s32)

Set the number of rays in this chunk.

SetRayFilter(Geo::u32)

Gets/sets the ray filter.

Typedefs

Name

Description

Name

Description

T RayType

Type of rays.



bool Geo::AbstractRayChunk< RayType >::AddRay


public: bool AddRay
(
    const Geo::v128 origin,
    const Geo::v128 direction
)


Add a ray to the set (must have already allocated enough space)



bool Geo::AbstractRayChunk< RayType >::Alloc


public: bool Alloc
(
    Geo::s32 nRays,
    Geo::s32 id
)