bool PrimitivesImpl::IntersectEmitterShapes |
( |
Ray & |
ray, |
|
|
Intersection & |
isect |
|
) |
| const |
|
overridevirtual |
Intersection query with emitter shapes. When intersected, information on the hit point is stored in the intersection data.
- Parameters
-
- Return values
-
true | Intersected with the scene. |
false | Not intersected with the scene. |
Implements Primitives.
virtual const Light* PrimitivesImpl::LightByIndex |
( |
int |
index | ) |
const |
|
inlineoverridevirtual |
Load primitives from XML element. Parse the element #node and load the scene. Any reference to the assets are resolved with #assets. The function is not reentrant. If the function fails, the state of #assets may be in the unstable state.
- Parameters
-
node | A XML element which consists of scene element. |
- Return values
-
true | Succeeded to load the scene. |
false | Failed to load the scene. |
Implements Primitives.
virtual const Camera* PrimitivesImpl::MainCamera |
( |
| ) |
const |
|
inlineoverridevirtual |
Get a main camera.
- Returns
- Main camera.
Implements Primitives.
virtual int PrimitivesImpl::NumLights |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the number of lights.
- Returns
- Number of lights.
Implements Primitives.
virtual int PrimitivesImpl::NumPrimitives |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the number of primitives.
- Returns
- Number of primitives.
Implements Primitives.
bool PrimitivesImpl::PostConfigure |
( |
const Scene & |
scene | ) |
|
|
overridevirtual |
Post configuration of the primitive.
- Parameters
-
- Return values
-
true | Succeeded to configure the scene. |
false | Failed to configure the scene. |
Implements Primitives.
virtual const Primitive* PrimitivesImpl::PrimitiveByID |
( |
const std::string & |
id | ) |
const |
|
inlineoverridevirtual |
Get a primitive by ID. Note that ID for a primitive is optional.
- Parameters
-
- Returns
- Primitive.
Implements Primitives.
virtual const Primitive* PrimitivesImpl::PrimitiveByIndex |
( |
int |
index | ) |
const |
|
inlineoverridevirtual |
Get a primitive by index.
- Parameters
-
index | Index of a primitive. |
- Returns
- Primitive.
Implements Primitives.
void PrimitivesImpl::Reset |
( |
| ) |
|
|
overridevirtual |
Reset the scene. Get the scene back to the initial state.
Implements Primitives.
The documentation for this class was generated from the following file:
- /home/travis/build/hi2p-perim/lightmetrica/src/liblightmetrica/primitives.cpp