API Reference > Classes > PRC Base Classes > OdPrcPreviewGenerator Class > OdPrcPreviewGenerator Methods > OdPrcPreviewGenerator::getCamera Method
OdPrcPreviewGenerator::getCamera Method
Syntax
C++
OdResult getCamera(OdGePoint3d & ptCameraPos, OdGePoint3d & ptCameraTarget, OdGeVector3d & vrCameraUp, double & dCameraWidth, double & dCameraHeight, bool & bPerspective) const;
Parameters 
Description 
OdGePoint3d & ptCameraPos 
[out] A placeholder for a three-dimensional point that determines the camera position.  
OdGePoint3d & ptCameraTarget 
[out] A placeholder for a three-dimensional point that determines the camera target.  
OdGeVector3d & vrCameraUp 
[out] A placeholder for a three-dimensional vector that determines the camera's vertical moving.  
double & dCameraWidth 
[out] A placeholder for the camera width value.  
double & dCameraHeight 
[out] A placeholder for the camera height value.  
bool & bPerspective 
[out] A A placeholder for the camera's perspective flag value.
 

Returns the eOk value if the camera's parameters were successfully returned, otherwise the method returns an appropriate error code.

Retrieves the camera's parameters for the preview images generator. 

 

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