virtual bool StubPrimitives::IntersectEmitterShapes |
( |
Ray & |
ray, |
|
|
Intersection & |
isect |
|
) |
| const |
|
inlinevirtual |
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* StubPrimitives::LightByIndex |
( |
int |
index | ) |
const |
|
inlinevirtual |
virtual bool StubPrimitives::Load |
( |
const ConfigNode & |
node, |
|
|
const Assets & |
assets |
|
) |
| |
|
inlinevirtual |
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* StubPrimitives::MainCamera |
( |
| ) |
const |
|
inlinevirtual |
Get a main camera.
- Returns
- Main camera.
Implements Primitives.
virtual int StubPrimitives::NumLights |
( |
| ) |
const |
|
inlinevirtual |
Get the number of lights.
- Returns
- Number of lights.
Implements Primitives.
virtual int StubPrimitives::NumPrimitives |
( |
| ) |
const |
|
inlinevirtual |
Get the number of primitives.
- Returns
- Number of primitives.
Implements Primitives.
virtual bool StubPrimitives::PostConfigure |
( |
const Scene & |
scene | ) |
|
|
inlinevirtual |
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* StubPrimitives::PrimitiveByID |
( |
const std::string & |
id | ) |
const |
|
inlinevirtual |
Get a primitive by ID. Note that ID for a primitive is optional.
- Parameters
-
- Returns
- Primitive.
Implements Primitives.
virtual const Primitive* StubPrimitives::PrimitiveByIndex |
( |
int |
index | ) |
const |
|
inlinevirtual |
Get a primitive by index.
- Parameters
-
index | Index of a primitive. |
- Returns
- Primitive.
Implements Primitives.
virtual void StubPrimitives::Reset |
( |
| ) |
|
|
inlinevirtual |
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/lightmetrica.test/test.scene.intersection.cpp