LuxCore  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
luxcore::Camera Class Referenceabstract

Camera stores camera definitions. More...

#include <luxcore.h>

Public Types

enum  CameraType { PERSPECTIVE, ORTHOGRAPHIC, STEREO, ENVIRONMENT }
 Types of cameras. More...
 

Public Member Functions

virtual ~Camera ()
 
virtual const CameraType GetType () const =0
 Returns the camera type. More...
 
virtual void Translate (const float x, const float y, const float z) const =0
 Translates by vector t. This method can be used only when the Scene is not in use by a RenderSession. More...
 
virtual void TranslateLeft (const float t) const =0
 Translates left by t. This method can be used only when the Scene is not in use by a RenderSession. More...
 
virtual void TranslateRight (const float t) const =0
 Translates right by t. This method can be used only when the Scene is not in use by a RenderSession. More...
 
virtual void TranslateForward (const float t) const =0
 Translates forward by t. This method can be used only when the Scene is not in use by a RenderSession. More...
 
virtual void TranslateBackward (const float t) const =0
 Translates backward by t. This method can be used only when the Scene is not in use by a RenderSession. More...
 
virtual void Rotate (const float angle, const float x, const float y, const float z) const =0
 Rotates by angle around the axis. This method can be used only when the Scene is not in use by a RenderSession. More...
 
virtual void RotateLeft (const float angle) const =0
 Rotates left by angle. This method can be used only when the Scene is not in use by a RenderSession. More...
 
virtual void RotateRight (const float angle) const =0
 Rotates right by angle. This method can be used only when the Scene is not in use by a RenderSession. More...
 
virtual void RotateUp (const float angle) const =0
 Rotates up by angle. This method can be used only when the Scene is not in use by a RenderSession. More...
 
virtual void RotateDown (const float angle) const =0
 Rotates down by angle. This method can be used only when the Scene is not in use by a RenderSession. More...
 

Detailed Description

Camera stores camera definitions.

Definition at line 446 of file luxcore.h.

Member Enumeration Documentation

Types of cameras.

Enumerator
PERSPECTIVE 
ORTHOGRAPHIC 
STEREO 
ENVIRONMENT 

Definition at line 451 of file luxcore.h.

Constructor & Destructor Documentation

virtual luxcore::Camera::~Camera ( )
virtual

Member Function Documentation

virtual const CameraType luxcore::Camera::GetType ( ) const
pure virtual

Returns the camera type.

Returns
a camera type.
virtual void luxcore::Camera::Rotate ( const float  angle,
const float  x,
const float  y,
const float  z 
) const
pure virtual

Rotates by angle around the axis. This method can be used only when the Scene is not in use by a RenderSession.

Parameters
angleis the rotation angle.
axisis the rotation axis.
virtual void luxcore::Camera::RotateDown ( const float  angle) const
pure virtual

Rotates down by angle. This method can be used only when the Scene is not in use by a RenderSession.

Parameters
angleis the rotation angle.
virtual void luxcore::Camera::RotateLeft ( const float  angle) const
pure virtual

Rotates left by angle. This method can be used only when the Scene is not in use by a RenderSession.

Parameters
angleis the rotation angle.
virtual void luxcore::Camera::RotateRight ( const float  angle) const
pure virtual

Rotates right by angle. This method can be used only when the Scene is not in use by a RenderSession.

Parameters
angleis the rotation angle.
virtual void luxcore::Camera::RotateUp ( const float  angle) const
pure virtual

Rotates up by angle. This method can be used only when the Scene is not in use by a RenderSession.

Parameters
angleis the rotation angle.
virtual void luxcore::Camera::Translate ( const float  x,
const float  y,
const float  z 
) const
pure virtual

Translates by vector t. This method can be used only when the Scene is not in use by a RenderSession.

Parameters
tis the translation vector.
virtual void luxcore::Camera::TranslateBackward ( const float  t) const
pure virtual

Translates backward by t. This method can be used only when the Scene is not in use by a RenderSession.

Parameters
tis the translation distance.
virtual void luxcore::Camera::TranslateForward ( const float  t) const
pure virtual

Translates forward by t. This method can be used only when the Scene is not in use by a RenderSession.

Parameters
tis the translation distance.
virtual void luxcore::Camera::TranslateLeft ( const float  t) const
pure virtual

Translates left by t. This method can be used only when the Scene is not in use by a RenderSession.

Parameters
tis the translation distance.
virtual void luxcore::Camera::TranslateRight ( const float  t) const
pure virtual

Translates right by t. This method can be used only when the Scene is not in use by a RenderSession.

Parameters
tis the translation distance.

The documentation for this class was generated from the following file: