RenderConfig stores all the configuration settings used to render a scene.
More...
#include <luxcore.h>
RenderConfig stores all the configuration settings used to render a scene.
Definition at line 907 of file luxcore.h.
virtual luxcore::RenderConfig::~RenderConfig |
( |
| ) |
|
|
virtual |
Create a new RenderConfig using the provided Properties and (optional) Scene.
- Parameters
-
props | are the Properties used to build the new RenderConfig. |
scene | is the Scene used to build the new RenderConfig. If specified, the Scene will not be deleted by the destructor. If NULL, the Scene will be read from the file specified in the "scene.file" Property and deleted by the destructor. |
static RenderConfig* luxcore::RenderConfig::Create |
( |
const std::string & |
fileName | ) |
|
|
static |
Create a new RenderConfig using the provided binary file.
- Parameters
-
fileName | is the binary file used to build the new RenderConfig. The extension for the binary format must be ".bcf". |
Create a new RenderConfig using the provided resume binary file.
- Parameters
-
fileName | is the binary file used to build the new RenderConfig. The extension for the binary format must be ".rsm". |
startState | the pointer to the render state will be returned here. |
startFilm | the pointer to the film will be returned here. |
virtual void luxcore::RenderConfig::Delete |
( |
const std::string & |
prefix | ) |
|
|
pure virtual |
Deletes any configuration Property starting with the given prefix. This method can be used only when the RenderConfig is not in use by a RenderSession.
- Parameters
-
prefix | is the prefix of the Properties to delete. |
virtual void luxcore::RenderConfig::DeleteSceneOnExit |
( |
| ) |
|
|
pure virtual |
Delete the scene passed to the constructor when the class destructor is invoked.
virtual void luxcore::RenderConfig::Export |
( |
const std::string & |
dirName | ) |
|
|
pure virtual |
Save all the scene related information (the LuxCore RenderConfig, and Scene) in a directory using text format for the SDL. This performs the same work of FILESAVER render engine.
Returns a Properties container with all default values.
- Returns
- the default Properties.
virtual bool luxcore::RenderConfig::GetFilmSize |
( |
unsigned int * |
filmFullWidth, |
|
|
unsigned int * |
filmFullHeight, |
|
|
unsigned int * |
filmSubRegion |
|
) |
| const |
|
pure virtual |
Return the configured Film width, height, sub-region width, height, and if sub-region is enabled.
- Parameters
-
filmFullWidth | is where the configured Film width is returned if the pointer is not NULL. |
filmFullHeight | is where the configured Film height is returned if the pointer is not NULL. |
filmSubRegion | is an array of 4 values with the horizontal (followed by the vertical) begin and end of the Film region to render (in pixels). |
- Returns
- true if there is a sub-region to render, false otherwise.
virtual const luxrays::Property luxcore::RenderConfig::GetProperty |
( |
const std::string & |
name | ) |
const |
|
pure virtual |
Returns the Property with the given name or the default value if it has not been defined.
- Returns
- the Property with the given name.
virtual Scene& luxcore::RenderConfig::GetScene |
( |
| ) |
const |
|
pure virtual |
Sets configuration Properties with new values. This method can be used only when the RenderConfig is not in use by a RenderSession.
- Parameters
-
props | are the Properties to set. |
virtual void luxcore::RenderConfig::Save |
( |
const std::string & |
fileName | ) |
|
|
pure virtual |
Save all the scene related information (the LuxCore RenderConfig, and Scene) in a file.
Returns a reference to all Properties (including default values) defining the RenderConfig.
- Returns
- the RenderConfig properties.
The documentation for this class was generated from the following file: