glVertex  5.5.2
Public Member Functions | Protected Member Functions | List of all members
lgl_PhysicalObjects< T > Class Template Referenceabstract

container class for multiple physical objects (base template) More...

#include <glvertex_object.h>

Inheritance diagram for lgl_PhysicalObjects< T >:
Inheritance graph
[legend]

Public Member Functions

 lgl_PhysicalObjects ()
 ctor
 
virtual iterator addObject (lgl_Object *obj)
 add physical object
 
iterator findNonStaticObject (vec3 center, double radius)
 find nearest non-static graphical object within search radius
 
virtual void removeObject (iterator it)
 remove physical object
 
virtual void deactivateObject (iterator it, bool yes=true)
 deactivate physical object
 
iterator begin ()
 begin iterator
 
iterator end ()
 end iterator
 
void setGroundPlane (vec3 o, vec3 n, double r=1.0)
 set ground plane More...
 
void setGravity (double g)
 set gravity
 
iterator findObject (lgl_Object *obj)
 find graphical object
 
iterator findObject (vec3 center, double radius)
 find nearest graphical object within search radius
 
void selectObject (iterator it)
 select graphical object
 
iterator getSelectedObject ()
 get selected graphical object
 
void renderObjects (double dt=0)
 render and update all objects
 
void renderObjects (vec3 eye, double dt=0)
 render and update all objects
 
virtual void drawObjects ()
 draw all objects without updating
 
virtual void drawObjects (vec3 eye)
 draw all objects with depth sorting
 
virtual void preupdateObjects (double dt)
 pre-update all objects
 

Protected Member Functions

virtual void updateObjects (double dt)
 update all objects
 

Detailed Description

template<typename T>
class lgl_PhysicalObjects< T >

container class for multiple physical objects (base template)

Member Function Documentation

◆ setGroundPlane()

template<typename T >
void lgl_PhysicalObjects< T >::setGroundPlane ( vec3  o,
vec3  n,
double  r = 1.0 
)
inline

set ground plane

  • parameters o and n are a point on the plane and the plane normal
  • a normal with zero norm is interpreted as missing ground plane

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