Functions related to the handling of various 3D sights.
More...
|
enum | API_3DSightID { APISight_3DModel
, APISight_Floorplan
} |
| This is the enumeration of the applicable types of 3D sights. More...
|
|
Functions related to the handling of various 3D sights.
◆ API_3DSightID
This is the enumeration of the applicable types of 3D sights.
◆ ACAPI_Sight_CreateSight()
GSErrCode ACAPI_Sight_CreateSight |
( |
void ** |
newSightPtr | ) |
|
Creates a new sight for 3D operations.
- Parameters
-
newSightPtr | [out] A pointer to the new sight. |
- Returns
- NoError - The function has completed with success.
- APIERR_GENERAL - The sight could not be created.
◆ ACAPI_Sight_DeleteSight()
GSErrCode ACAPI_Sight_DeleteSight |
( |
void * |
sightPtr | ) |
|
Deletes the supplied sight.
- Parameters
-
sightPtr | [in] A pointer to the sight to delete. |
- Returns
- NoError - The function has completed with success.
- APIERR_GENERAL - The passed sightId was invalid.
◆ ACAPI_Sight_GetCurrentWindowSight()
GSErrCode ACAPI_Sight_GetCurrentWindowSight |
( |
void ** |
sightPtr | ) |
|
Returns the current window sight.
- Parameters
-
sightPtr | [out] A pointer to the current window sight. |
- Returns
- NoError - The function has completed with success. @
◆ ACAPI_Sight_GetSelectedSightModel()
GSErrCode ACAPI_Sight_GetSelectedSightModel |
( |
ModelerAPI::Model & |
model | ) |
|
Returns the model of the selected sight.
- Parameters
-
model | [out] The model of the selected sight. |
- Returns
- NoError - The function has completed with success.
- APIERR_REFUSEDCMD - The model is not available in the current context.
- APIERR_GENERAL - Could not construct ModelerAPI::Model. @
◆ ACAPI_Sight_SelectSight()
GSErrCode ACAPI_Sight_SelectSight |
( |
void * |
sightPtr, |
|
|
void ** |
oldSightPtr |
|
) |
| |
Switches to the supplied 3D sight for subsequent operations.
- Parameters
-
sightPtr | [in] The sight to switch to. If sightPtr parameter is nullptr, then the 3D Window's sight will be selected. |
oldSightPtr | [out] A pointer to the previous sight. |
- Returns
- NoError - The function has completed with success.
- APIERR_GENERAL - The passed sightPtr was invalid.
◆ ACAPI_Sight_Switch3DSight()
Switches between different 3D databases.
- Parameters
-
newSight | The ID of the sight (as value!) |
- Returns
- NoError - The function has completed with success.
- APIERR_BADPARS - Incorrect sight ID was passed.