#include <BcfPerspectiveCamera.h>
A class that stores and operates a perspective camera data within the BCF format.
Definition at line 45 of file BcfPerspectiveCamera.h.
◆ OdBcfPerspectiveCamera()
OdBcf::OdBcfPerspectiveCamera::OdBcfPerspectiveCamera |
( |
| ) |
|
Creates a new perspective camera object with default parameters.
◆ createObject()
Creates a new perspective camera object.
- Parameters
-
pCameraViewPoint | [in] A smart pointer to the object that represents the camera's view point. |
pCameraDirection | [in] A smart pointer to the object that represents the camera direction. |
pCameraUpVector | [in] A smart pointer to the object that represents the camera's up vector. |
fieldOfView | [in] A value of the camera field of view. |
- Returns
- A smart pointer to the created <link OdBcf::OdBcfPerspectiveCamera, OdBcfPerspectiveCamera> instance.
◆ getCameraDirection()
const OdBcfDirectionPtr & OdBcf::OdBcfPerspectiveCamera::getCameraDirection |
( |
| ) |
const |
◆ getCameraUpVector()
◆ getCameraViewPoint()
const OdBcfPointPtr & OdBcf::OdBcfPerspectiveCamera::getCameraViewPoint |
( |
| ) |
const |
Retrieves the perspective camera viewpoint.
- Returns
- A smart pointer to the <link OdBcf::OdBcfPoint, OdBcfPoint> object that represents the camera viewpoint.
◆ getFieldOfView()
const double & OdBcf::OdBcfPerspectiveCamera::getFieldOfView |
( |
| ) |
const |
Retrieves the perspective camera's field of view.
- Returns
- A double value that contains the field of view.
◆ inFields()
virtual OdResult OdBcf::OdBcfPerspectiveCamera::inFields |
( |
TiXmlElement * |
pParent | ) |
|
|
virtual |
Reads XML data into ODA data structures.
- Parameters
-
pParent | [in] A pointer to the parent element of the data structure. |
- Returns
- eOk if data was successfully read; otherwise, the method returns an appropriate error code.
Implements OdBcf::OdBcfElement.
◆ isCameraDirectionUnset()
bool OdBcf::OdBcfPerspectiveCamera::isCameraDirectionUnset |
( |
| ) |
const |
Defines whether the camera direction is not initialized.
- Returns
- true if the camera direction is not initialized; otherwise, the method returns false.
◆ isCameraUpVectorUnset()
bool OdBcf::OdBcfPerspectiveCamera::isCameraUpVectorUnset |
( |
| ) |
const |
Defines whether the camera up-vector is not initialized.
- Returns
- true if the up-vector object is not initialized; otherwise, the method returns false.
◆ isCameraViewPointUnset()
bool OdBcf::OdBcfPerspectiveCamera::isCameraViewPointUnset |
( |
| ) |
const |
Defines whether the perspective camera viewpoint is not initialized.
- Returns
- true if the camera viewpoint is not initialized; otherwise, the method returns false.
◆ isFieldOfViewUnset()
bool OdBcf::OdBcfPerspectiveCamera::isFieldOfViewUnset |
( |
| ) |
const |
Defines whether the perspective camera's field of view is not initialized.
- Returns
- true if the field of value is not initialized; otherwise, the method returns false.
◆ ODRX_DECLARE_MEMBERS()
◆ outFields()
virtual OdResult OdBcf::OdBcfPerspectiveCamera::outFields |
( |
TiXmlElement * |
pParent | ) |
const |
|
virtual |
Writes data into XML structures.
- Parameters
-
pParent | [in] A pointer to the parent element of the data structure. |
- Returns
- eOk if data was successfully written; otherwise, the method returns an appropriate error code.
Implements OdBcf::OdBcfElement.
◆ validate()
virtual bool OdBcf::OdBcfPerspectiveCamera::validate |
( |
| ) |
const |
|
virtual |
Checks whether the perspective camera instance has all required fields initialized.
- Returns
- true if all required fields are initialized; otherwise the method returns false.
Implements OdBcf::OdBcfElement.
◆ m_fieldOfView
double OdBcf::OdBcfPerspectiveCamera::m_fieldOfView |
|
protected |
◆ m_pCameraDirection
◆ m_pCameraUpVector
◆ m_pCameraViewPoint
The documentation for this class was generated from the following file: