CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
OdBcf::OdBcfPerspectiveCamera Class Reference

#include <BcfPerspectiveCamera.h>

Inheritance diagram for OdBcf::OdBcfPerspectiveCamera:
OdBcf::OdBcfElement OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdBcfPerspectiveCamera)
 
 OdBcfPerspectiveCamera ()
 
virtual OdResult inFields (TiXmlElement *pParent) ODRX_OVERRIDE
 
virtual OdResult outFields (TiXmlElement *pParent) const ODRX_OVERRIDE
 
virtual bool validate () const ODRX_OVERRIDE
 
const OdBcfPointPtrgetCameraViewPoint () const
 
bool isCameraViewPointUnset () const
 
const OdBcfDirectionPtrgetCameraDirection () const
 
bool isCameraDirectionUnset () const
 
const OdBcfDirectionPtrgetCameraUpVector () const
 
bool isCameraUpVectorUnset () const
 
const double & getFieldOfView () const
 
bool isFieldOfViewUnset () const
 
- Public Member Functions inherited from OdBcf::OdBcfElement
 ODRX_DECLARE_MEMBERS (OdBcfElement)
 
virtual OdResult inFields (TiXmlElement *pParent)=0
 
virtual OdResult outFields (TiXmlElement *pParent) const =0
 
virtual bool validate () const =0
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Static Public Member Functions

static OdSmartPtr< OdBcfPerspectiveCameracreateObject (const OdBcfPointPtr &pCameraViewPoint, const OdBcfDirectionPtr &pCameraDirection, const OdBcfDirectionPtr &pCameraUpVector, double fieldOfView)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Protected Attributes

OdBcfPointPtr m_pCameraViewPoint
 
OdBcfDirectionPtr m_pCameraDirection
 
OdBcfDirectionPtr m_pCameraUpVector
 
double m_fieldOfView
 

Detailed Description

A class that stores and operates a perspective camera data within the BCF format.

Definition at line 45 of file BcfPerspectiveCamera.h.

Constructor & Destructor Documentation

◆ OdBcfPerspectiveCamera()

OdBcf::OdBcfPerspectiveCamera::OdBcfPerspectiveCamera ( )

Creates a new perspective camera object with default parameters.

Member Function Documentation

◆ createObject()

static OdSmartPtr< OdBcfPerspectiveCamera > OdBcf::OdBcfPerspectiveCamera::createObject ( const OdBcfPointPtr pCameraViewPoint,
const OdBcfDirectionPtr pCameraDirection,
const OdBcfDirectionPtr pCameraUpVector,
double  fieldOfView 
)
static

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

Retrieves the camera direction.

Returns
A smart pointer to the <link OdBcf::OdBcfDirection, OdBcfDirection> object that represents the camera direction.
Remarks
The direction object returned by the method can't be modified in the calling subroutine.

◆ getCameraUpVector()

const OdBcfDirectionPtr & OdBcf::OdBcfPerspectiveCamera::getCameraUpVector ( ) const

Retrieves the camera up-vector.

Returns
A smart pointer to the <link OdBcf::OdBcfDirection, OdBcfDirection> object that represents the camera up-vector.
Remarks
The direction object returned by the method can't be modified in the calling subroutine.

◆ 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.
Remarks
The point returned by the method can't be modified in the calling subroutine.

◆ 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.
Remarks
The field view value returned by the method can't be modified in the calling subroutine.

◆ 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()

OdBcf::OdBcfPerspectiveCamera::ODRX_DECLARE_MEMBERS ( OdBcfPerspectiveCamera  )

◆ 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.

Member Data Documentation

◆ m_fieldOfView

double OdBcf::OdBcfPerspectiveCamera::m_fieldOfView
protected

Definition at line 154 of file BcfPerspectiveCamera.h.

◆ m_pCameraDirection

OdBcfDirectionPtr OdBcf::OdBcfPerspectiveCamera::m_pCameraDirection
protected

Definition at line 152 of file BcfPerspectiveCamera.h.

◆ m_pCameraUpVector

OdBcfDirectionPtr OdBcf::OdBcfPerspectiveCamera::m_pCameraUpVector
protected

Definition at line 153 of file BcfPerspectiveCamera.h.

◆ m_pCameraViewPoint

OdBcfPointPtr OdBcf::OdBcfPerspectiveCamera::m_pCameraViewPoint
protected

Definition at line 151 of file BcfPerspectiveCamera.h.


The documentation for this class was generated from the following file: