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