Hide menu
Loading...
Searching...
No Matches
cadex::PMI::Camera Class Reference

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

#include <cadex/PMI/Camera.hxx>

Inheritance diagram for cadex::PMI::Camera:
cadex::BaseObject

Public Member Functions

 Camera ()
 Constructor.
 
 Camera (const Geom::Point &theLocation, const Geom::Point &theTargetGeomPoint, const Geom::Direction &theUpDirection)
 Constructor.
 
 Camera (const Geom::Point &theLocation, const Geom::Point &theTargetGeomPoint, const Geom::Direction &theUpDirection, const UTF16String &theName)
 Constructor.
 
void SetLocation (const Geom::Point &theLocation)
 Sets the location of the camera.
 
Geom::Point Location () const
 Returns the location of the camera.
 
void SetTargetPoint (const Geom::Point &theTargetPoint)
 Sets the target point of the camera.
 
Geom::Point TargetPoint () const
 Returns the point that the camera is looking at.
 
void SetUpDirection (const Geom::Direction &theUpDirection)
 Sets the "up" direction of the camera.
 
Geom::Direction UpDirection () const
 Returns the "up" direction of the camera.
 
void SetName (const UTF16String &theName)
 Sets the name of the camera.
 
UTF16String Name () const
 Returns the name of the camera.
 
- Public Member Functions inherited from cadex::BaseObject
size_t Id () const
 Return unique identifier of public object.
 
internal::BaseObjectImpl * Impl () const
 
bool IsNull () const
 
 operator bool () const
 
template<typename T >
bool IsOfType () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 

Static Public Member Functions

static bool CompareType (const BaseObject &theObject)
 Returns true if theObject has the Camera type.
 

Additional Inherited Members

- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

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

See also
SavedView

Constructor & Destructor Documentation

◆ Camera() [1/3]

cadex::PMI::Camera::Camera ( )

Constructor.

◆ Camera() [2/3]

cadex::PMI::Camera::Camera ( const Geom::Point & theLocation,
const Geom::Point & theTargetGeomPoint,
const Geom::Direction & theUpDirection )

Constructor.

◆ Camera() [3/3]

cadex::PMI::Camera::Camera ( const Geom::Point & theLocation,
const Geom::Point & theTargetGeomPoint,
const Geom::Direction & theUpDirection,
const UTF16String & theName )

Constructor.

Member Function Documentation

◆ CompareType()

bool cadex::PMI::Camera::CompareType ( const BaseObject & theObject)
static

Returns true if theObject has the Camera type.

◆ Location()

Geom::Point cadex::PMI::Camera::Location ( ) const

Returns the location of the camera.

◆ Name()

UTF16String cadex::PMI::Camera::Name ( ) const

Returns the name of the camera.

◆ SetLocation()

void cadex::PMI::Camera::SetLocation ( const Geom::Point & theLocation)

Sets the location of the camera.

◆ SetName()

void cadex::PMI::Camera::SetName ( const UTF16String & theName)

Sets the name of the camera.

◆ SetTargetPoint()

void cadex::PMI::Camera::SetTargetPoint ( const Geom::Point & theTargetPoint)

Sets the target point of the camera.

◆ SetUpDirection()

void cadex::PMI::Camera::SetUpDirection ( const Geom::Direction & theUpDirection)

Sets the "up" direction of the camera.

◆ TargetPoint()

Geom::Point cadex::PMI::Camera::TargetPoint ( ) const

Returns the point that the camera is looking at.

◆ UpDirection()

Geom::Direction cadex::PMI::Camera::UpDirection ( ) const

Returns the "up" direction of the camera.