#include <GenerateContext.h>
|
using | OcclusionSets = std::vector< const prt::OcclusionSet * > |
|
using | OcclusionSetsVector = std::vector< OcclusionSets > |
|
|
| GenerateContext (const prt::InitialShape *const *initialShapes, const prt::OcclusionSet::Handle *occlusionHandles, size_t initialShapeCount, prt::Callbacks *callbacks, prt::Cache *cache, const prt::OcclusionSet *const *occlSets, const size_t *occlSetCounts) |
|
| GenerateContext (const prt::InitialShape *const *initialShapes, size_t initialShapeCount, prt::Callbacks *callbacks, prt::Cache *cache, prt::OcclusionSet *writableOcclusionSet) |
|
A GenerateContext is created for each prt::generate() call. It basically contains the parameters of the prt::generate() call.
◆ GenerateContext() [1/2]
Constructor for read-only access to occlusionSet (i.e. to use occlusion set to resolve occlusion queries).
◆ GenerateContext() [2/2]
Constructor for write access to occlusionSet (i.e. for generateOccluders() call)
◆ getCache()
- Returns
- pointer to the (optional) prt::Cache implementation. Might be nullptr.
◆ getCallbacks()
◆ getInitialShape()
◆ getInitialShapeCount()
size_t prtx::GenerateContext::getInitialShapeCount |
( |
| ) |
const |
|
inline |
- Returns
- the number of initial shapes.
◆ getOcclusionHandle()
prt::OcclusionSet::Handle prtx::GenerateContext::getOcclusionHandle |
( |
size_t |
i | ) |
const |
|
inline |
Optionally, there is a occlusion handle for every initial shape.
- Parameters
-
i | Index of occlusion handle to return. |
- Returns
- occlusion handle with index i if set, 0 (= no handle) otherwise.
◆ getOcclusionSets()
const OcclusionSets& prtx::GenerateContext::getOcclusionSets |
( |
size_t |
i | ) |
const |
|
inline |
- Parameters
-
- Returns
- pointers to the (optional) read-only prt::OcclusionSet which contains the occluders of an initial shape identified by the occlusion handles. Might be empty.
The documentation for this class was generated from the following file: