VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
visutwin::canvas::Picker Class Reference

#include <framework/graphics/picker.h>

Public Member Functions

std::vector< MeshInstance * > getSelection (int x, int y, int width=1, int height=1) const
MeshInstancegetSelectionSingle (int x, int y) const
std::optional< Vector3getWorldPoint (int x, int y) const
int height () const
 Picker (Engine *app, int width, int height, bool depth=false)
void prepare (CameraComponent *camera, Scene *scene, const std::vector< int > &layers={})
void resize (int width, int height)
int width () const

Detailed Description

Definition at line 21 of file picker.h.

Constructor & Destructor Documentation

◆ Picker()

visutwin::canvas::Picker::Picker ( Engine * app,
int width,
int height,
bool depth = false )

Definition at line 24 of file picker.cpp.

References height(), resize(), and width().

Member Function Documentation

◆ getSelection()

std::vector< MeshInstance * > visutwin::canvas::Picker::getSelection ( int x,
int y,
int width = 1,
int height = 1 ) const

Definition at line 118 of file picker.cpp.

References height(), and width().

Referenced by getSelectionSingle(), and getWorldPoint().

◆ getSelectionSingle()

MeshInstance * visutwin::canvas::Picker::getSelectionSingle ( int x,
int y ) const

Definition at line 157 of file picker.cpp.

References getSelection(), and getSelectionSingle().

Referenced by getSelectionSingle().

◆ getWorldPoint()

std::optional< Vector3 > visutwin::canvas::Picker::getWorldPoint ( int x,
int y ) const

Definition at line 163 of file picker.cpp.

References getSelection(), and getWorldPoint().

Referenced by getWorldPoint().

◆ height()

int visutwin::canvas::Picker::height ( ) const
inline

Definition at line 35 of file picker.h.

Referenced by getSelection(), Picker(), and resize().

◆ prepare()

◆ resize()

void visutwin::canvas::Picker::resize ( int width,
int height )

Definition at line 30 of file picker.cpp.

References height(), and width().

Referenced by Picker().

◆ width()

int visutwin::canvas::Picker::width ( ) const
inline

Definition at line 34 of file picker.h.

Referenced by getSelection(), Picker(), and resize().


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