Defines a camera (point of view) in a scene. More...
#include <cadex/ModelData_PMICamera.hxx>
Public Types | |
typedef cadex::internal::ModelData_PMICameraImpl | ImplType |
Public Types inherited from cadex::ModelData_BaseObject | |
typedef int | IdType |
Defines a type identifier. | |
Public Member Functions | |
ModelData_PMICamera () | |
Constructor. | |
ModelData_PMICamera (initialized) | |
Constructor. | |
ModelData_PMICamera (const ModelData_Point &theLocation, const ModelData_Point &theTargetPoint, const ModelData_Direction &theUpDirection) | |
Constructor. | |
ModelData_PMICamera (const ModelData_Point &theLocation, const ModelData_Point &theTargetPoint, const ModelData_Direction &theUpDirection, const Base_UTF16String &theName) | |
Constructor. | |
void | SetLocation (const ModelData_Point &theLocation) |
const ModelData_Point & | Location () const |
Returns position of the camera. | |
void | SetTargetPoint (const ModelData_Point &theTargetPoint) |
const ModelData_Point & | TargetPoint () const |
Returns the point that the camera is looking at. | |
void | SetUpDirection (const ModelData_Direction &theUpDirection) |
const ModelData_Direction & | UpDirection () const |
Returns "up" direction of the camera. | |
Public Member Functions inherited from cadex::ModelData_BaseObject | |
ModelData_BaseObject () | |
Constructor. | |
IdType | TypeId () const |
Returns an object type id. | |
template<typename T > | |
bool | IsOfType () const |
Returns true if the object has a type T. | |
void | SetName (const Base_UTF16String &theName) |
Sets an object name. | |
Base_UTF16String | Name () const |
void | SetUuid (const Base_Uuid &theUuid) |
Base_Uuid | Uuid () const |
void | Nullify () |
Resets reference to implementation object. | |
bool | IsNull () const |
Returns true if the object is nullified. | |
operator bool () const | |
Casts the object to the bool type. | |
internal::ModelData_BaseObjectImpl * | Impl () const |
Return a handle to backend (reserved for internal use). | |
Static Public Member Functions | |
static IdType | GetTypeId () |
Additional Inherited Members | |
Protected Member Functions inherited from cadex::ModelData_BaseObject | |
ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl) | |
Constructor (reserved for internal use). | |
ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl, const Base_UTF16String &theName) | |
Constructor (reserved for internal use). | |
template<typename T > | |
T * | GetOrCreateImpl () |
Reserved for internal use. | |
Defines a camera (point of view) in a scene.
cadex::ModelData_PMICamera::ModelData_PMICamera | ( | ) |
Constructor.
Creates not initialized object, for which IsNull() returns true.
|
explicit |
Constructor.
Creates initialized object, for which IsNull() returns false.
const ModelData_Point & cadex::ModelData_PMICamera::Location | ( | ) | const |
Returns position of the camera.
Must not be called on IsNull() object. Otherwise behavior is undefined.
const ModelData_Point & cadex::ModelData_PMICamera::TargetPoint | ( | ) | const |
Returns the point that the camera is looking at.
Must not be called on IsNull() object. Otherwise behavior is undefined.
const ModelData_Direction & cadex::ModelData_PMICamera::UpDirection | ( | ) | const |
Returns "up" direction of the camera.
Must not be called on IsNull() object. Otherwise behavior is undefined.