The view state of the application, managed by Viewer and accessible by Controller::checkInput() (or derived classes).
More...
#include "ViewState.h"
The view state of the application, managed by Viewer and accessible by Controller::checkInput() (or derived classes).
Definition at line 39 of file ViewState.h.
◆ ViewState()
scg::ViewState::ViewState |
( |
| ) |
|
◆ ~ViewState()
virtual scg::ViewState::~ViewState |
( |
| ) |
|
|
virtual |
◆ getFrameRate()
double scg::ViewState::getFrameRate |
( |
| ) |
const |
Get current frame rate (FPS).
◆ getWindow()
GLFWwindow* scg::ViewState::getWindow |
( |
| ) |
const |
Get window pointer, called by camera controllers.
◆ isAnimationLocked()
bool scg::ViewState::isAnimationLocked |
( |
| ) |
const |
Check locked state of animations.
◆ isFrameRateOutput()
bool scg::ViewState::isFrameRateOutput |
( |
| ) |
const |
◆ isMouseCursorVisible()
bool scg::ViewState::isMouseCursorVisible |
( |
| ) |
const |
Check mouse cursor visibility.
◆ setAnimationLocked()
void scg::ViewState::setAnimationLocked |
( |
bool |
isLocked | ) |
|
Set locked state of animations (default: false/unlocked).
◆ setFrameRateInterval()
void scg::ViewState::setFrameRateInterval |
( |
double |
intervalSec | ) |
|
Set interval for frame rate computation (default: 3 sec).
- Parameters
-
intervalSec | interval (seconds) for frame rate computation; 0 deactivates frame rate computation |
◆ setFrameRateOutput()
void scg::ViewState::setFrameRateOutput |
( |
bool |
isOutput | ) |
|
Set frame output mode (default: false/disabled).
◆ setMouseCursorVisible()
void scg::ViewState::setMouseCursorVisible |
( |
bool |
isVisible | ) |
|
Set mouse cursor visibility (default: true/visible).
◆ setWindow()
void scg::ViewState::setWindow |
( |
GLFWwindow * |
window | ) |
|
◆ updateFrameRate()
void scg::ViewState::updateFrameRate |
( |
| ) |
|
◆ frameRate_
double scg::ViewState::frameRate_ |
|
protected |
◆ frameRateInterval_
double scg::ViewState::frameRateInterval_ |
|
protected |
◆ isAnimationLocked_
bool scg::ViewState::isAnimationLocked_ |
|
protected |
◆ isFrameRateOutput_
bool scg::ViewState::isFrameRateOutput_ |
|
protected |
◆ isMouseCursorVisible_
bool scg::ViewState::isMouseCursorVisible_ |
|
protected |
◆ window_
GLFWwindow* scg::ViewState::window_ |
|
protected |
The documentation for this class was generated from the following file: