MeshLib Documentation
Loading...
Searching...
No Matches
MR::Viewport::Parameters Struct Reference

#include <MRViewport.h>

Public Types

enum class  GlobalBasisScaleMode { Auto , Fixed }
 
enum class  RotationCenterMode { Static , DynamicStatic , Dynamic }
 

Public Member Functions

bool operator== (const Viewport::Parameters &other) const =default
 

Public Attributes

Color backgroundColor = Color( Vector3f{0.3f, 0.3f, 0.5f} )
 
Vector3f lightPosition {0.0f, 0.3f, 0.0f}
 
Quaternionf cameraTrackballAngle
 
Vector3f cameraTranslation
 
float cameraZoom {1.0f}
 
float cameraViewAngle {45.0f}
 
float cameraDnear {1.0f}
 
float cameraDfar {100.0f}
 
bool depthTest {true}
 
bool orthographic {true}
 
enum MR::Viewport::Parameters::GlobalBasisScaleMode Auto
 
float objectScale {1.0f}
 
Color borderColor
 
std::string label
 
Plane3f clippingPlane {Vector3f::plusX(), 0.0f}
 
enum MR::Viewport::Parameters::RotationCenterMode Dynamic
 
bool selectable {true}
 

Member Enumeration Documentation

◆ GlobalBasisScaleMode

Enumerator
Auto 
Fixed 

◆ RotationCenterMode

Enumerator
Static 
DynamicStatic 
Dynamic 

Member Function Documentation

◆ operator==()

bool MR::Viewport::Parameters::operator== ( const Viewport::Parameters & other) const
default

Member Data Documentation

◆ Auto

enum MR::Viewport::Parameters::GlobalBasisScaleMode MR::Viewport::Parameters::Auto

◆ backgroundColor

Color MR::Viewport::Parameters::backgroundColor = Color( Vector3f{0.3f, 0.3f, 0.5f} )

◆ borderColor

Color MR::Viewport::Parameters::borderColor

◆ cameraDfar

float MR::Viewport::Parameters::cameraDfar {100.0f}

◆ cameraDnear

float MR::Viewport::Parameters::cameraDnear {1.0f}

◆ cameraTrackballAngle

Quaternionf MR::Viewport::Parameters::cameraTrackballAngle

◆ cameraTranslation

Vector3f MR::Viewport::Parameters::cameraTranslation

◆ cameraViewAngle

float MR::Viewport::Parameters::cameraViewAngle {45.0f}

◆ cameraZoom

float MR::Viewport::Parameters::cameraZoom {1.0f}

◆ clippingPlane

Plane3f MR::Viewport::Parameters::clippingPlane {Vector3f::plusX(), 0.0f}

◆ depthTest

bool MR::Viewport::Parameters::depthTest {true}

◆ Dynamic

enum MR::Viewport::Parameters::RotationCenterMode MR::Viewport::Parameters::Dynamic

◆ label

std::string MR::Viewport::Parameters::label

◆ lightPosition

Vector3f MR::Viewport::Parameters::lightPosition {0.0f, 0.3f, 0.0f}

◆ objectScale

float MR::Viewport::Parameters::objectScale {1.0f}

◆ orthographic

bool MR::Viewport::Parameters::orthographic {true}

◆ selectable

bool MR::Viewport::Parameters::selectable {true}

The documentation for this struct was generated from the following file: