Skip to content

Vp::Manipulators

#include "Viewport/Manipulators.h"

Public Classes

Name
classManipulator

Public Types

Name
enum classManipulatorType { UNKNOWN, UNIMPLEMENTED, TRANSLATE, ROTATE_X, ROTATE_Y, ROTATE_Z, ROTATE, SCALE, ORTHO, PERSPECTIVE, FRUSTUM, LOOKAT}

Public Functions

Name
Manipulators(Viewport * viewport)
voidaddManipulator(std::shared_ptr< Core::Node > node)
voidclearManipulators()
booldrawManipulators(glm::vec2 windowPos, glm::vec2 windowSize)
booldrawViewAxes(glm::vec2 windowPos, glm::vec2 windowSize)

Public Types Documentation

enum ManipulatorType

EnumeratorValueDescription
UNKNOWN
UNIMPLEMENTED
TRANSLATE
ROTATE_X
ROTATE_Y
ROTATE_Z
ROTATE
SCALE
ORTHO
PERSPECTIVE
FRUSTUM
LOOKAT

Public Functions Documentation

function Manipulators

cpp
explicit Manipulators(
    Viewport * viewport
)
explicit Manipulators(
    Viewport * viewport
)

function addManipulator

cpp
void addManipulator(
    std::shared_ptr< Core::Node > node
)
void addManipulator(
    std::shared_ptr< Core::Node > node
)

function clearManipulators

cpp
void clearManipulators()
void clearManipulators()

function drawManipulators

cpp
bool drawManipulators(
    glm::vec2 windowPos,
    glm::vec2 windowSize
)
bool drawManipulators(
    glm::vec2 windowPos,
    glm::vec2 windowSize
)

Parameters:

  • windowPos
  • windowSize

Return: Whether manipulators have been interacted with.

function drawViewAxes

cpp
bool drawViewAxes(
    glm::vec2 windowPos,
    glm::vec2 windowSize
)
bool drawViewAxes(
    glm::vec2 windowPos,
    glm::vec2 windowSize
)

Updated on 2024-11-06 at 20:16:53 +0000