Archicad 28 C++ API
|
Functions related to Photorendering. More...
Classes | |
struct | API_PhotoRenderPars |
Parameters for saving photo rendered picture into an image file. More... | |
struct | API_RendEffects |
The representation of the Rendering Settings / Effects tab page. More... | |
struct | API_RendImage |
The representation of the Rendering Settings / Size Background tab page. More... | |
Enumerations | |
enum | API_RendSetTypeID { APIRendSet_EffectsID , APIRendSet_ImageID } |
The enumeration of the available photorendering tab page types. More... | |
Functions | |
GSErrCode | ACAPI_Rendering_PhotoRender (const API_PhotoRenderPars *photoRenderPars, const API_PrintPars *printPars=nullptr) |
Creates a photorealistic image of the 3D window. | |
GSErrCode | ACAPI_Rendering_GetRenderingSets (void *rendInfo, API_RendSetTypeID rendSetType, const GS::UniString *sceneName=nullptr) |
Returns information on the photorendering settings. | |
GSErrCode | ACAPI_Rendering_ChangeRenderingSets (void *rendEffects, API_RendSetTypeID rendSetType) |
Changes the photorendering settings. | |
GSErrCode | ACAPI_Rendering_GetRenderingSceneNames (GS::Array< GS::UniString > *sceneNames) |
Returns the names of all the named Rendering Scenes. | |
GSErrCode | ACAPI_Rendering_SetCurrentRenderingScene (const GS::UniString *newCurrentSceneName) |
Sets the current Rendering Scene to the given named Rendering Scene. | |
Functions related to Photorendering.
enum API_RendSetTypeID |
The enumeration of the available photorendering tab page types.
GSErrCode ACAPI_Rendering_ChangeRenderingSets | ( | void * | rendEffects, |
API_RendSetTypeID | rendSetType | ||
) |
Changes the photorendering settings.
rendEffects | [in] Data of a "PhotoRendering Settings..." tab page. The type depends on the prefsType parameter |
rendSetType | [in] Type of the PhotoRendering Settings you want to modify |
GSErrCode ACAPI_Rendering_GetRenderingSceneNames | ( | GS::Array< GS::UniString > * | sceneNames | ) |
Returns the names of all the named Rendering Scenes.
sceneNames | [out] Array of the names of all the named Rendering Scenes. |
GSErrCode ACAPI_Rendering_GetRenderingSets | ( | void * | rendInfo, |
API_RendSetTypeID | rendSetType, | ||
const GS::UniString * | sceneName = nullptr |
||
) |
Returns information on the photorendering settings.
rendInfo | [out] Data of a "PhotoRendering Settings..." tab page. The type depends on the prefsType parameter |
rendSetType | [in] Type of the PhotoRendering Settings you want to get |
sceneName | [in] The name of the Rendering Scene of which the settings you want to get. If nullptr, the settings of the current Scene will be returned. |
GSErrCode ACAPI_Rendering_PhotoRender | ( | const API_PhotoRenderPars * | photoRenderPars, |
const API_PrintPars * | printPars = nullptr |
||
) |
Creates a photorealistic image of the 3D window.
photoRenderPars | [in] Parameters for saving the photorendered picture into image file |
printPars | [in] Printing options for producing printed output of the photorendered picture. Optional parameter, can be nullptr |
rendPars
. The picture window will be closed automatically before the function returns. You can also print the rendered picture to the default printer if the printPars
parameter is not nullptr
. If you need printed output only, set the fileTypeID
field of rendPars to APIFType_None
. The photorendering settings can be accessed with the ACAPI_Rendering_GetRenderingSets and ACAPI_Rendering_ChangeRenderingSets functions. GSErrCode ACAPI_Rendering_SetCurrentRenderingScene | ( | const GS::UniString * | newCurrentSceneName | ) |
Sets the current Rendering Scene to the given named Rendering Scene.
newCurrentSceneName | [in] The name of the Rendering Scene, which you want to set as the current Scene. |