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 |
---|---|
Geo::AbstractRayChunk::ResultsIterator | Iterator to a const ray result, allows iterating linearly over the ray results. |
Functions
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 |
---|---|
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
)
Allocate buffer space for nRays and set the chunk id.
ResultsIterator Geo::AbstractRayChunk< T >::BeginResults
public: ResultsIterator BeginResults() const
Gets an STL-style 'begin' iterator for the results.
ResultsIterator Geo::AbstractRayChunk< T >::EndResults
public: ResultsIterator EndResults() const
Gets an STL-style 'end' iterator for the results.
Geo::s32 Geo::AbstractRayChunk< T >::GetId
public: Geo::s32 GetId() const
Gets the assigned chunk id.
Geo::s32 Geo::AbstractRayChunk< T >::GetMaxSize
public: Geo::s32 GetMaxSize() const
Get the maximum number of rays that will fit in this chunk.
const RayType* Geo::AbstractRayChunk< T >::GetRayConstPtr
public: const RayType * GetRayConstPtr() const
Ray data.
Geo::s32 Geo::AbstractRayChunk< T >::GetRayCount
public: Geo::s32 GetRayCount() const
Get the number of rays currently in this chunk.
Geo::u32 Geo::AbstractRayChunk< T >::GetRayFilter
public: Geo::u32 GetRayFilter() const
Gets/sets the ray filter.
RayType* Geo::AbstractRayChunk< T >::GetRayPtr
public: RayType * GetRayPtr()
Ray data.
RayResult* Geo::AbstractRayChunk< T >::GetResultsPtr
public: RayResult * GetResultsPtr()
Results data.
void Geo::AbstractRayChunk< T >::SetRayCount
public: void SetRayCount
(
  Geo::s32 sz
)
Set the number of rays in this chunk.
void Geo::AbstractRayChunk< T >::SetRayFilter
public: void SetRayFilter
(
  Geo::u32 filter
)
Gets/sets the ray filter.