#include <primitives.h>
Primitives. A set of primitives for scene description.
virtual bool Primitives::IntersectEmitterShapes |
( |
Ray & |
ray, |
|
|
Intersection & |
isect |
|
) |
| const |
|
pure virtual |
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. |
Implemented in StubPrimitives, and PrimitivesImpl.
virtual const Light* Primitives::LightByIndex |
( |
int |
index | ) |
const |
|
pure virtual |
virtual bool Primitives::Load |
( |
const ConfigNode & |
node, |
|
|
const Assets & |
assets |
|
) |
| |
|
pure virtual |
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. |
Implemented in StubPrimitives, and PrimitivesImpl.
virtual const Camera* Primitives::MainCamera |
( |
| ) |
const |
|
pure virtual |
virtual int Primitives::NumLights |
( |
| ) |
const |
|
pure virtual |
virtual int Primitives::NumPrimitives |
( |
| ) |
const |
|
pure virtual |
virtual bool Primitives::PostConfigure |
( |
const Scene & |
scene | ) |
|
|
pure virtual |
Post configuration of the primitive.
- Parameters
-
- Return values
-
true | Succeeded to configure the scene. |
false | Failed to configure the scene. |
Implemented in StubPrimitives, and PrimitivesImpl.
virtual const Primitive* Primitives::PrimitiveByID |
( |
const std::string & |
id | ) |
const |
|
pure virtual |
virtual const Primitive* Primitives::PrimitiveByIndex |
( |
int |
index | ) |
const |
|
pure virtual |
virtual void Primitives::Reset |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file:
- /home/travis/build/hi2p-perim/lightmetrica/include/lightmetrica/primitives.h