Trax3 3.1.0
trax track library
Loading...
Searching...
No Matches
trax::Camera Struct Referenceabstract

Base Camera interface. More...

#include <C:/Trend/Development/Trax3/Code/trax/rigid/modules/Camera.h>

Inheritance diagram for trax::Camera:

Public Member Functions

virtual const char * TypeName () const noexcept=0
virtual Cameraoperator= (const Camera &camera)=0
virtual CameraType GetType () const =0
virtual void SetFrame (const spat::Frame< Length, One > &frame)=0
 Sets position and orientation (pose) in global coordinates.
virtual spat::Vector< VelocityGetVelocity () const =0
 Gets the current velocity.
virtual void EyePoint (const spat::Position< Length > &eyePoint)=0
 Sets the camera to look at eyePoint.
virtual spat::Position< LengthEyePoint () const =0
virtual void Up (const spat::Vector< One > &up)=0
virtual spat::Vector< OneUp () const =0
virtual void LookAt (const spat::Position< Length > &lookAtPoint)=0
virtual spat::Position< LengthLookAt () const =0
virtual bool InFrustum (const spat::Position< Length > &position) const =0
GetFrame

Gets the pose in global coordinates.

virtual const spat::Frame< Length, One > & GetFrame () const =0
virtual spat::Frame< Length, One > & GetFrame ()=0
Public Member Functions inherited from trax::Frustum
virtual void SetFromFofy (Angle fovy=default_fovy, One aspect=default_aspect, Length zn=default_nearPlane, Length zf=default_farPlane)=0
virtual void SetFromDimensions (Length width, Length height, Length zn=default_nearPlane, Length zf=default_farPlane)=0
virtual void PlaneDistances (const common::Interval< Length > &planes)=0
virtual Length NearPlaneDistance () const =0
virtual Length FarPlaneDistance () const =0
virtual void Width (Length width)=0
virtual Length Width () const =0
virtual void Height (Length height)=0
virtual Length Height () const =0
virtual void Fovy (Angle fovy)=0
 The Field Of View angle in radiants.
virtual Angle Fovy () const =0
virtual void AspectRatio (One aspect)=0
virtual One AspectRatio () const =0
virtual void ProjectionMatrix (const spat::Transformation< Real > &projection)=0
virtual const spat::Transformation< Real > & ProjectionMatrix () const =0
virtual spat::Transformation< Real > & ProjectionMatrix ()=0
 Frustum (const Frustum &)=delete
 Frustum (Frustum &&)=delete
Frustum & operator= (const Frustum &)=delete
Frustum & operator= (Frustum &&)=delete
Public Member Functions inherited from trax::Identified< Camera >
virtual const std::string & Reference (const std::string &name) const=0
 Gets a reference that was set for this object by name.
virtual const std::vector< char const * > & ReferenceNames (const std::string &namePart) const=0
 Searches for all reference names that countain namePart as substring in the name.
virtual IDType ID () const noexcept=0
 Identified (const Identified &)=delete
Identified & operator= (const Identified &)=delete

Static Public Member Functions

static dclspc std::unique_ptr< CameraMake (CameraType type=CameraType::cam_basic) noexcept
 Makes a Camera object.

Additional Inherited Members

Static Public Attributes inherited from trax::Frustum
static const Angle default_fovy
static const One default_aspect
static const Length default_nearPlane
static const Length default_farPlane

Detailed Description

Base Camera interface.

Member Function Documentation

◆ GetType()

virtual CameraType trax::Camera::GetType ( ) const
pure virtual
Returns
The Type of this camera object.

◆ GetVelocity()

virtual spat::Vector< Velocity > trax::Camera::GetVelocity ( ) const
pure virtual

Gets the current velocity.

Returns
The linear velocity the camera is moving with in global coordinates and units per second.

◆ InFrustum()

virtual bool trax::Camera::InFrustum ( const spat::Position< Length > & position) const
pure virtual
Returns
true if the position lays inside the camera's frustum.

◆ SetFrame()

virtual void trax::Camera::SetFrame ( const spat::Frame< Length, One > & frame)
pure virtual

Sets position and orientation (pose) in global coordinates.

Parameters
frameFrame of reference.

◆ TypeName()

virtual const char * trax::Camera::TypeName ( ) const
pure virtualnoexcept
Returns
the name for the object type that implements this interface.

The documentation for this struct was generated from the following file:
  • C:/Trend/Development/Trax3/Code/trax/rigid/modules/Camera.h