API Reference > Classes > PRC Base Classes > OdPrcPreviewGenerator Class > OdPrcPreviewGenerator Methods > OdPrcPreviewGenerator::setCamera Method
OdPrcPreviewGenerator::setCamera Method
Syntax
C++
OdResult setCamera(const OdGePoint3d & ptCameraPos, const OdGePoint3d & ptCameraTarget, const OdGeVector3d & vrCameraUp, double dCameraWidth = 1., double dCameraHeight = 1., bool bPerspective = false);
Parameters 
Description 
const OdGePoint3d & ptCameraPos 
[in] A three-dimensional point that determines the camera position.  
const OdGePoint3d & ptCameraTarget 
[in] A three-dimensional point that determines the camera target.  
const OdGeVector3d & vrCameraUp 
[in] A three-dimensional vector that determines the camera's vertical moving.  
double dCameraWidth = 1. 
[in] A width of the camera.  
double dCameraHeight = 1. 
[in] A height of the camera.  
bool bPerspective = false 
[in] A flag value that determines whether camera is in perspective (if true) of in parallel (if false) mode.
 

Returns the eOk value if the new camera was successfully set or an appropriate error code in the other case.

Sets parameters of a camera for the preview images generator. 

 

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.