Illustrative Line Visualization
Implementation of the method by Everts et al. for visualizing dense line data.
Public Slots | Public Member Functions | List of all members
Camera Class Reference

Class for orbital cameras. More...

#include <camera.h>

Inheritance diagram for Camera:

Public Slots

void setAspectRatio (float aspectRatio)
 Sets the aspect ratio for the perspective transform. More...
 
void setNearFarPlane (float near, float far)
 Sets the z values for the near and far plane respectively. More...
 
void rotateX (float angle)
 Yaws the camera. More...
 
void rotateY (float angle)
 Pitches the camera. More...
 
void move (const QVector2D &offset)
 Offets the camera. More...
 
void zoom (float distance)
 Changes the distance of the camera. More...
 

Public Member Functions

 Camera (QObject *parent, float minDist, float maxDist, float initDist=.0f, float initYaw=.0f, float initPitch=.0f)
 Constructs a new camera. More...
 
void getViewMatrix (QMatrix4x4 &viewMatrix)
 Constructs the view matrix and returns it in viewMatrix. More...
 
void getProjectionMatrix (QMatrix4x4 &projMatrix)
 Constructs the projection matrix and returns it in projMatrix. More...
 

Detailed Description

Class for orbital cameras.

Constructor & Destructor Documentation

◆ Camera()

Camera::Camera ( QObject *  parent,
float  minDist,
float  maxDist,
float  initDist = .0f,
float  initYaw = .0f,
float  initPitch = .0f 
)

Constructs a new camera.

Parameters
parentthe parent object.
minDistthe minimum distance from the target.
maxDistthe maximum distance from the target.
initDistthe initial distance.
initYawthe initial yaw angle.
initPitchthe initial pitch angle

Member Function Documentation

◆ getProjectionMatrix()

void Camera::getProjectionMatrix ( QMatrix4x4 &  projMatrix)

Constructs the projection matrix and returns it in projMatrix.

Parameters
projMatrixreturns the projection matrix.

◆ getViewMatrix()

void Camera::getViewMatrix ( QMatrix4x4 &  viewMatrix)

Constructs the view matrix and returns it in viewMatrix.

Parameters
viewMatrixreturns the view matrix.

◆ move

void Camera::move ( const QVector2D &  offset)
slot

Offets the camera.

Parameters
offsetthe offset vector

◆ rotateX

void Camera::rotateX ( float  angle)
slot

Yaws the camera.

Parameters
anglein radians

◆ rotateY

void Camera::rotateY ( float  angle)
slot

Pitches the camera.

Parameters
anglein radians

◆ setAspectRatio

void Camera::setAspectRatio ( float  aspectRatio)
slot

Sets the aspect ratio for the perspective transform.

Parameters
aspectRatiothe aspect ratio.

◆ setNearFarPlane

void Camera::setNearFarPlane ( float  near,
float  far 
)
slot

Sets the z values for the near and far plane respectively.

Parameters
nearthe near plane.
farthe far plane.

◆ zoom

void Camera::zoom ( float  distance)
slot

Changes the distance of the camera.

Parameters
distancethe distance value

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