Visual Computing Library
Loading...
Searching...
No Matches
vcl::ViewerDrawerOpenGL2< DerivedRenderApp > Class Template Reference
Inheritance diagram for vcl::ViewerDrawerOpenGL2< DerivedRenderApp >:

Public Member Functions

 ViewerDrawerOpenGL2 (uint width=1024, uint height=768)
 
 ViewerDrawerOpenGL2 (const std::shared_ptr< DrawableObjectVector > &v, uint width=1024, uint height=768)
 
void onInit (uint viewId) override
 
void onDraw (uint viewId) override
 
void onDrawContent (uint) override
 
void onResize (unsigned int width, unsigned int height) override
 
void onMouseDoubleClick (MouseButton::Enum button, double x, double y, const KeyModifiers &modifiers) override
 
void toggleAxisVisibility () override
 
void toggleTrackBallVisibility () override
 
- Public Member Functions inherited from vcl::AbstractViewerDrawer< DerivedRenderApp >
 AbstractViewerDrawer (uint width=1024, uint height=768)
 
const DrawableObjectVectordrawableObjectVector () const
 
void setDrawableObjectVector (const std::shared_ptr< DrawableObjectVector > &v)
 
uint pushDrawableObject (const DrawableObject &obj)
 
uint pushDrawableObject (DrawableObject &&obj)
 
void fitScene ()
 
void onResize (unsigned int width, unsigned int height) override
 
void onKeyPress (Key::Enum key, const KeyModifiers &modifiers) override
 
void onKeyRelease (Key::Enum key, const KeyModifiers &modifiers) override
 
void onMouseMove (double x, double y, const KeyModifiers &modifiers) override
 
void onMousePress (MouseButton::Enum button, double x, double y, const KeyModifiers &modifiers) override
 
void onMouseRelease (MouseButton::Enum button, double x, double y, const KeyModifiers &modifiers) override
 
void onMouseScroll (double dx, double dy, const KeyModifiers &modifiers) override
 
- Public Member Functions inherited from vcl::DesktopTrackBall< float >
 DesktopTrackBall (uint width=1024, uint height=768)
 
bool isDragging () const
 
MotionType currentMotion () const
 
DirectionalLight< floatlight () const
 
const Camera< float > & camera () const
 
Matrix44< floatviewMatrix () const
 
Matrix44< floatlightGizmoMatrix () const
 
Matrix44< floatgizmoMatrix () const
 
Matrix44< floatprojectionMatrix () const
 
void resetTrackBall ()
 
void setTrackBall (const Point3< float > &center, float radius)
 
void focus (const Point3< float > &center)
 
void resizeViewer (uint w, uint h)
 
void setKeyModifiers (KeyModifiers keys)
 
void moveMouse (int x, int y)
 
void pressMouse (MouseButton::Enum button)
 
void releaseMouse (MouseButton::Enum button)
 
void scroll (float pixelDeltaX, float pixelDeltaY)
 
void keyPress (Key::Enum key)
 
void keyRelease (Key::Enum key)
 
- Public Member Functions inherited from vcl::EventDrawer< DerivedRenderApp >
 EventDrawer (uint, uint)
 
- Public Member Functions inherited from vcl::PlainDrawer< DerivedRenderApp >
 PlainDrawer (uint, uint)
 
virtual void onResize (uint width, uint height)
 
virtual void onPostDraw ()
 

Private Types

using ParentViewer = AbstractViewerDrawer< DerivedRenderApp >
 
using DTB = ParentViewer::DTB
 

Additional Inherited Members

- Public Types inherited from vcl::DesktopTrackBall< float >
using ScalarType = float
 
using MatrixType = vcl::Matrix44< float >
 
using TrackBallType = vcl::TrackBall< float >
 
- Static Public Attributes inherited from vcl::DesktopTrackBall< float >
static const Point3< floatUNIT_X
 
static const Point3< floatUNIT_Y
 
- Static Public Attributes inherited from vcl::EventDrawer< DerivedRenderApp >
static const bool CAN_BLOCK_EVENT_PROPAGATION = false
 
- Protected Types inherited from vcl::AbstractViewerDrawer< DerivedRenderApp >
using DTB = vcl::DesktopTrackBall< float >
 
- Protected Types inherited from vcl::PlainDrawer< DerivedRenderApp >
using DRT = DerivedRenderApp
 
- Protected Member Functions inherited from vcl::AbstractViewerDrawer< DerivedRenderApp >
void readRequest (MouseButton::Enum button, double x, double y, const KeyModifiers &modifiers, bool homogeneousNDC=true)
 
- Protected Member Functions inherited from vcl::PlainDrawer< DerivedRenderApp >
autoderived ()
 
const autoderived () const
 
- Protected Attributes inherited from vcl::AbstractViewerDrawer< DerivedRenderApp >
std::shared_ptr< DrawableObjectVectormDrawList
 

Member Function Documentation

◆ onDraw()

void vcl::ViewerDrawerOpenGL2< DerivedRenderApp >::onDraw ( uint  viewId)
inlineoverridevirtual

◆ onDrawContent()

void vcl::ViewerDrawerOpenGL2< DerivedRenderApp >::onDrawContent ( uint  )
inlineoverridevirtual

◆ onInit()

void vcl::ViewerDrawerOpenGL2< DerivedRenderApp >::onInit ( uint  viewId)
inlineoverridevirtual

◆ onMouseDoubleClick()

void vcl::ViewerDrawerOpenGL2< DerivedRenderApp >::onMouseDoubleClick ( MouseButton::Enum  button,
double  x,
double  y,
const KeyModifiers modifiers 
)
inlineoverridevirtual

◆ toggleAxisVisibility()

void vcl::ViewerDrawerOpenGL2< DerivedRenderApp >::toggleAxisVisibility ( )
inlineoverridevirtual

◆ toggleTrackBallVisibility()

void vcl::ViewerDrawerOpenGL2< DerivedRenderApp >::toggleTrackBallVisibility ( )
inlineoverridevirtual

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