Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

template<typename T>
class Geo::AbstractRayChunk

Buffer that holds a chunk of rays and results.

Classes

NameDescription
Geo::AbstractRayChunk::ResultsIterator

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

Functions

NameDescription
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

NameDescription
T RayType

Type of rays.


Anchor
a9fb0b689af1b778ca4a5b698dc54c08f
a9fb0b689af1b778ca4a5b698dc54c08f

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
a894a61a648b28538a85930ffd7264919
a894a61a648b28538a85930ffd7264919

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
a0115fa64e3d398eabddb2007a9e385ad
a0115fa64e3d398eabddb2007a9e385ad

ResultsIterator Geo::AbstractRayChunk< T >::BeginResults

...

public: ResultsIterator BeginResults() const

...

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


Anchor
afaab3a87952a57fd408cb663467eaa5b
afaab3a87952a57fd408cb663467eaa5b

ResultsIterator Geo::AbstractRayChunk< T >::EndResults

...

public: ResultsIterator EndResults() const

...

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


Anchor
a499341b5243a8156d137c3c3b2bd2c25
a499341b5243a8156d137c3c3b2bd2c25

Geo::s32 Geo::AbstractRayChunk< T >::GetId

...

public: Geo::s32 GetId() const

...

Gets the assigned chunk id.


Anchor
a6afc5496bc87a27a149555f6a7cbd015
a6afc5496bc87a27a149555f6a7cbd015

Geo::s32 Geo::AbstractRayChunk< T >::GetMaxSize

...

public: Geo::s32 GetMaxSize() const

...

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


Anchor
aa2f6b6dd5e635f42d9e5548a3cb532f4
aa2f6b6dd5e635f42d9e5548a3cb532f4

const RayType* Geo::AbstractRayChunk< T >::GetRayConstPtr

...

public: const RayType * GetRayConstPtr() const

...

Ray data.


Anchor
a74e4b67ecea06ac77c1fea769a086cae
a74e4b67ecea06ac77c1fea769a086cae

Geo::s32 Geo::AbstractRayChunk< T >::GetRayCount

...

public: Geo::s32 GetRayCount() const

...

Get the number of rays currently in this chunk.


Anchor
a497c70fa05fcd221be3fb6c8b1c43df9
a497c70fa05fcd221be3fb6c8b1c43df9

Geo::u32 Geo::AbstractRayChunk< T >::GetRayFilter

...

public: Geo::u32 GetRayFilter() const

...

Gets/sets the ray filter.


Anchor
a8446753bf15c1966dc1c4ef3d8c2db2e
a8446753bf15c1966dc1c4ef3d8c2db2e

RayType* Geo::AbstractRayChunk< T >::GetRayPtr

...

public: RayType * GetRayPtr()

...

Ray data.


Anchor
a694ec7aa5acbbc08e9df86d4f332adca
a694ec7aa5acbbc08e9df86d4f332adca

RayResult* Geo::AbstractRayChunk< T >::GetResultsPtr

...

public: RayResult * GetResultsPtr()

...

Results data.


Anchor
a80487609b9c4fdd469ccac405a98a02a
a80487609b9c4fdd469ccac405a98a02a

void Geo::AbstractRayChunk< T >::SetRayCount

...

public: void SetRayCount
(
    Geo::s32 sz
)

...

Set the number of rays in this chunk.


Anchor
afa477a5f471ad6ac4ea1b86fb05ed40f
afa477a5f471ad6ac4ea1b86fb05ed40f

void Geo::AbstractRayChunk< T >::SetRayFilter

...

public: void SetRayFilter
(
    Geo::u32 filter
)

...

Gets/sets the ray filter.