Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::SamplesND Class Referencefinal

#include <SamplesND.h>

Public Member Functions

 SamplesND ()
 
 SamplesND (real *buffer, std::size_t numDims, std::size_t numSamples)
 
 SamplesND (real *buffer, std::size_t numDims, std::size_t numSamples, std::size_t strideSize, std::size_t offsetInStride)
 
void shuffle ()
 
void shuffleDimension (std::size_t dimIndex)
 
void shuffleDimensions (std::size_t dimIndexBegin, std::size_t dimIndexEnd)
 
void shuffleAllDimensions ()
 
void setSample (std::size_t index, const real *sample)
 
template<std::size_t N>
void setSample (std::size_t index, const std::array< real, N > &sample)
 
real * buffer ()
 
std::size_t numDims () const
 
std::size_t numSamples () const
 
std::size_t numElements () const
 
bool isValid () const
 
real * operator[] (std::size_t index)
 

Constructor & Destructor Documentation

◆ SamplesND() [1/3]

ph::SamplesND::SamplesND ( )
inline

◆ SamplesND() [2/3]

ph::SamplesND::SamplesND ( real * buffer,
std::size_t numDims,
std::size_t numSamples )
inline

◆ SamplesND() [3/3]

ph::SamplesND::SamplesND ( real * buffer,
std::size_t numDims,
std::size_t numSamples,
std::size_t strideSize,
std::size_t offsetInStride )
inline

Member Function Documentation

◆ buffer()

real * ph::SamplesND::buffer ( )
inline

◆ isValid()

bool ph::SamplesND::isValid ( ) const
inline

◆ numDims()

std::size_t ph::SamplesND::numDims ( ) const
inline

◆ numElements()

std::size_t ph::SamplesND::numElements ( ) const
inline

◆ numSamples()

std::size_t ph::SamplesND::numSamples ( ) const
inline

◆ operator[]()

real * ph::SamplesND::operator[] ( std::size_t index)
inline

◆ setSample() [1/2]

void ph::SamplesND::setSample ( std::size_t index,
const real * sample )
inline

◆ setSample() [2/2]

template<std::size_t N>
void ph::SamplesND::setSample ( std::size_t index,
const std::array< real, N > & sample )
inline

◆ shuffle()

void ph::SamplesND::shuffle ( )
inline

◆ shuffleAllDimensions()

void ph::SamplesND::shuffleAllDimensions ( )
inline

◆ shuffleDimension()

void ph::SamplesND::shuffleDimension ( std::size_t dimIndex)
inline

◆ shuffleDimensions()

void ph::SamplesND::shuffleDimensions ( std::size_t dimIndexBegin,
std::size_t dimIndexEnd )
inline

The documentation for this class was generated from the following file: