CAD Exchanger SDK
cadex::ModelData_PMICamera Class Reference

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

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. More...
 
 ModelData_PMICamera (initialized)
 Constructor. More...
 
 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. More...
 
void SetTargetPoint (const ModelData_Point &theTargetPoint)
 
const ModelData_PointTargetPoint () const
 Returns the point that the camera is looking at. More...
 
void SetUpDirection (const ModelData_Direction &theUpDirection)
 
const ModelData_DirectionUpDirection () const
 Returns "up" direction of the camera. More...
 
- Public Member Functions inherited from cadex::ModelData_BaseObject
 ModelData_BaseObject ()
 Constructor. More...
 
IdType TypeId () const
 Returns an object type id. More...
 
template<typename T >
bool IsOfType () const
 Returns true if the object has a type T. More...
 
void SetName (const Base_UTF16String &theName)
 Sets an object name. More...
 
Base_UTF16String Name () const
 Returns an object name. More...
 
void Nullify ()
 Resets reference to implementation object. More...
 
bool IsNull () const
 Returns true if the object is nullified. More...
 
 operator bool () const
 Casts the object to the bool type. More...
 
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.