Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
Scene Class Reference

#include <Scene.h>

Public Member Functions

 Scene (QOpenGLFunctions_4_5_Core *glFuncs)
 
 ~Scene ()=default
 
void draw (const std::optional< std::vector< ObjectSnapshot > > &snapshots, const std::unordered_set< uint32_t > &hoverIDs, const std::unordered_set< uint32_t > &selectIDs)
 
void addDrawable (IDrawable *drawable)
 
void removeDrawable (IDrawable *drawable)
 
uint32_t allocateObjectID ()
 
void freeObjectID (uint32_t objID)
 
CameragetCamera ()
 

Detailed Description

Definition at line 11 of file Scene.h.

Constructor & Destructor Documentation

◆ Scene()

Scene::Scene ( QOpenGLFunctions_4_5_Core *  glFuncs)

Definition at line 72 of file Scene.cpp.

Here is the call graph for this function:

◆ ~Scene()

Scene::~Scene ( )
default

Member Function Documentation

◆ addDrawable()

void Scene::addDrawable ( IDrawable drawable)

Definition at line 194 of file Scene.cpp.

Here is the caller graph for this function:

◆ allocateObjectID()

uint32_t Scene::allocateObjectID ( )

Definition at line 78 of file Scene.cpp.

◆ draw()

void Scene::draw ( const std::optional< std::vector< ObjectSnapshot > > &  snapshots,
const std::unordered_set< uint32_t > &  hoverIDs,
const std::unordered_set< uint32_t > &  selectIDs 
)

Definition at line 91 of file Scene.cpp.

Here is the call graph for this function:

◆ freeObjectID()

void Scene::freeObjectID ( uint32_t  objID)

Definition at line 87 of file Scene.cpp.

Here is the caller graph for this function:

◆ getCamera()

Camera * Scene::getCamera ( )

Definition at line 190 of file Scene.cpp.

Here is the caller graph for this function:

◆ removeDrawable()

void Scene::removeDrawable ( IDrawable drawable)

Definition at line 204 of file Scene.cpp.

Here is the caller graph for this function:

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