Hide menu
Loading...
Searching...
No Matches

Defines a camera (point of view) in a scene. More...

#include <cadex/ModelData_PMICamera.hxx>

Inheritance diagram for cadex::ModelData_PMICamera:
cadex::ModelData_BaseObject

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_PointLocation () const
 Returns position of the camera.
 
void SetTargetPoint (const ModelData_Point &theTargetPoint)
 
const ModelData_PointTargetPoint () const
 Returns the point that the camera is looking at.
 
void SetUpDirection (const ModelData_Direction &theUpDirection)
 
const ModelData_DirectionUpDirection () 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.
 

Detailed Description

Defines a camera (point of view) in a scene.

See also
ModelData_PMISavedView

Constructor & Destructor Documentation

◆ ModelData_PMICamera() [1/2]

cadex::ModelData_PMICamera::ModelData_PMICamera ( )

Constructor.

Creates not initialized object, for which IsNull() returns true.

◆ ModelData_PMICamera() [2/2]

cadex::ModelData_PMICamera::ModelData_PMICamera ( initialized  )
explicit

Constructor.

Creates initialized object, for which IsNull() returns false.

Member Function Documentation

◆ Location()

const ModelData_Point & cadex::ModelData_PMICamera::Location ( ) const

Returns position of the camera.

Must not be called on IsNull() object. Otherwise behavior is undefined.

◆ TargetPoint()

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.

◆ UpDirection()

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.