Skip to content

UI::ViewportWindow::ViewportSpace

Helper struct containing various information about the current scene view space. More...

#include "GUI/Elements/Windows/ViewportWindow.h"

Public Functions

Name
voidresetReferenceSpace()

Public Attributes

Name
Core::CameraCoordSystemcoordinateSystem
boolcustomSource
std::stringlabel
ImVec4labelCol
glm::mat4m_referenceSpace
glm::mat4m_referenceSpaceInv
WPtr< Workspace::Sequence >sourceNode
boolstandard
booltracking
floattrackingMatrixProgress <br>0..1 progress through the current matrix (can be != transform progress)
Core::TransformSpacetrackingSpace
floattrackingSpaceParam <br>0..1 indicating progress through current space
const std::stringworldSpaceLabel

Detailed Description

cpp
struct UI::ViewportWindow::ViewportSpace;
struct UI::ViewportWindow::ViewportSpace;

Helper struct containing various information about the current scene view space.

Has information about current reference space, current tracking status and coordinate system.

Public Functions Documentation

function resetReferenceSpace

cpp
inline void resetReferenceSpace()
inline void resetReferenceSpace()

Public Attributes Documentation

variable coordinateSystem

cpp
Core::CameraCoordSystem coordinateSystem;
Core::CameraCoordSystem coordinateSystem;

variable customSource

cpp
bool customSource = false;
bool customSource = false;

variable label

cpp
std::string label {worldSpaceLabel};
std::string label {worldSpaceLabel};

variable labelCol

cpp
ImVec4 labelCol = ImVec4(1, 1, 1, 1);
ImVec4 labelCol = ImVec4(1, 1, 1, 1);

variable m_referenceSpace

cpp
glm::mat4 m_referenceSpace {1.f};
glm::mat4 m_referenceSpace {1.f};

variable m_referenceSpaceInv

cpp
glm::mat4 m_referenceSpaceInv {1.f};
glm::mat4 m_referenceSpaceInv {1.f};

variable sourceNode

cpp
WPtr< Workspace::Sequence > sourceNode;
WPtr< Workspace::Sequence > sourceNode;

variable standard

cpp
bool standard = true;
bool standard = true;

variable tracking

cpp
bool tracking = false;
bool tracking = false;

variable trackingMatrixProgress

cpp
float trackingMatrixProgress = 0.f;
float trackingMatrixProgress = 0.f;

0..1 progress through the current matrix (can be != transform progress)

variable trackingSpace

cpp
Core::TransformSpace trackingSpace {Core::TransformSpace::Model};
Core::TransformSpace trackingSpace {Core::TransformSpace::Model};

variable trackingSpaceParam

cpp
float trackingSpaceParam = 0.f;
float trackingSpaceParam = 0.f;

0..1 indicating progress through current space

variable worldSpaceLabel

cpp
const std::string worldSpaceLabel = _t("World space");
const std::string worldSpaceLabel = _t("World space");

Updated on 2025-05-31 at 12:55:31 +0000