Walls And Holes  1
MeshViewCameraLikeBlender Class Reference

#include <meshviewcameralikeblender.h>

Inheritance diagram for MeshViewCameraLikeBlender:
Collaboration diagram for MeshViewCameraLikeBlender:

Public Member Functions

 MeshViewCameraLikeBlender ()
 
 ~MeshViewCameraLikeBlender ()
 
QMatrix4x4 getTransformationMatrix () const override
 getTransformationMatrix More...
 
QVector3D getPosition () const override
 Gets the world-space camera position. More...
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void wheelEvent (QWheelEvent *event) override
 
- Public Member Functions inherited from AbstractMeshViewCamera
virtual ~AbstractMeshViewCamera ()
 
virtual void activate () override
 Activates the tool. This is called before the tool is used. More...
 
virtual void deactivate () override
 Deactivates the tool. This is called before the tool stops being used. More...
 
virtual void mouseReleaseEvent (QMouseEvent *) override
 
- Public Member Functions inherited from AbstractTool
virtual ~AbstractTool ()
 
virtual QList< QAction * > contextActions ()
 Returns a vector of qactions which can be used to modify the behaviour of the tool. Will be used by the tool manager to add the actions to a context tool bar. More...
 

Protected Attributes

QVector3D mCenterOfRotation
 
float mDistanceFromCenter
 
float mRotationPitch
 
float mRotationYaw
 
float mRotationPitchStart
 
float mRotationYawStart
 
QPoint mCursorStart
 
QVector3D mCenterStart
 
ulong mStartTime
 
bool mRotating
 

Additional Inherited Members

- Signals inherited from AbstractMeshViewCamera
void changed ()
 This signal should be emitted when the camera is moved. More...
 

Constructor & Destructor Documentation

◆ MeshViewCameraLikeBlender()

MeshViewCameraLikeBlender::MeshViewCameraLikeBlender ( )

◆ ~MeshViewCameraLikeBlender()

MeshViewCameraLikeBlender::~MeshViewCameraLikeBlender ( )
inline

Member Function Documentation

◆ getPosition()

QVector3D MeshViewCameraLikeBlender::getPosition ( ) const
overridevirtual

Gets the world-space camera position.

Returns
The world-space camera position.

Implements AbstractMeshViewCamera.

◆ getTransformationMatrix()

QMatrix4x4 MeshViewCameraLikeBlender::getTransformationMatrix ( ) const
overridevirtual

getTransformationMatrix

Returns
the transform matrix that should be premultiplied to the vertex world-space positions

Implements AbstractMeshViewCamera.

◆ mouseMoveEvent()

void MeshViewCameraLikeBlender::mouseMoveEvent ( QMouseEvent *  event)
overridevirtual

Reimplemented from AbstractMeshViewCamera.

◆ mousePressEvent()

void MeshViewCameraLikeBlender::mousePressEvent ( QMouseEvent *  event)
overridevirtual

Reimplemented from AbstractMeshViewCamera.

◆ wheelEvent()

void MeshViewCameraLikeBlender::wheelEvent ( QWheelEvent *  event)
overridevirtual

Reimplemented from AbstractMeshViewCamera.

Member Data Documentation

◆ mCenterOfRotation

QVector3D MeshViewCameraLikeBlender::mCenterOfRotation
protected

◆ mCenterStart

QVector3D MeshViewCameraLikeBlender::mCenterStart
protected

◆ mCursorStart

QPoint MeshViewCameraLikeBlender::mCursorStart
protected

◆ mDistanceFromCenter

float MeshViewCameraLikeBlender::mDistanceFromCenter
protected

◆ mRotating

bool MeshViewCameraLikeBlender::mRotating
protected

◆ mRotationPitch

float MeshViewCameraLikeBlender::mRotationPitch
protected

◆ mRotationPitchStart

float MeshViewCameraLikeBlender::mRotationPitchStart
protected

◆ mRotationYaw

float MeshViewCameraLikeBlender::mRotationYaw
protected

◆ mRotationYawStart

float MeshViewCameraLikeBlender::mRotationYawStart
protected

◆ mStartTime

ulong MeshViewCameraLikeBlender::mStartTime
protected

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