23#ifndef VCL_BGFX_DRAWABLE_DRAWABLE_TRACKBALL_H
24#define VCL_BGFX_DRAWABLE_DRAWABLE_TRACKBALL_H
26#include <vclib/algorithms/core.h>
27#include <vclib/bgfx/buffers.h>
28#include <vclib/render/drawable/drawable_object.h>
29#include <vclib/space/core.h>
40 bool mIsDragging =
false;
81 std::shared_ptr<DrawableObject>
clone()
const&
override;
83 std::shared_ptr<DrawableObject>
clone() &&
override;
The DrawableObject class is the base class for all the objects that can be drawn in a 3D viewer.
Definition drawable_object.h:57
Definition drawable_trackball.h:33
std::shared_ptr< DrawableObject > clone() const &override
This member function is used to create a new copy of the DrawableObject. Each derived class must impl...
Definition drawable_trackball.cpp:184
bool isVisible() const override
This member function is used to check if the object is visible.
Definition drawable_trackball.cpp:194
void setVisibility(bool vis) override
This member function is used to set the visibility of the object.
Definition drawable_trackball.cpp:199
void updateDragging(bool isDragging)
Update the dragging status of the trackball.
Definition drawable_trackball.cpp:139
Box3d boundingBox() const override
This member function is used to find a good camera position to render object. It should return the th...
Definition drawable_trackball.cpp:179
void swap(DrawableTrackBall &other)
Swap the content of this object with another DrawableTrackBall object.
Definition drawable_trackball.cpp:124
void draw(const DrawObjectSettings &settings) const override
This member function must draw the object. It will be called at every frame.
Definition drawable_trackball.cpp:155
The IndexBuffer manages the lifetime of a bgfx::IndexBufferHandle.
Definition index_buffer.h:43
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:41
The VertexBuffer manages the lifetime of a bgfx::VertexBufferHandle.
Definition vertex_buffer.h:43