MULTIBODY SIMULATION SOFTWARE - API documentation

irr::ChIrrAppInterface Class Reference

#include <CHirrAppInterface.h>

Collaboration diagram for irr::ChIrrAppInterface:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ChIrrAppInterface (chrono::ChSystem *mysystem, const wchar_t *title, core::dimension2d< s32 > dimens=core::dimension2d< s32 >(640, 480), bool do_fullscreen=false, bool do_shadows=false)
 ~ChIrrAppInterface ()
IrrlichtDevice * GetDevice ()
IVideoDriver * GetVideoDriver ()
ISceneManager * GetSceneManager ()
IGUIEnvironment * GetIGUIEnvironment ()
chrono::ChSystemGetSystem ()
bool GetShowInfos ()
void SetShowInfos (bool val)
void SetUserEventReceiver (irr::IEventReceiver *mreceiver)
void DrawAll ()

Public Attributes

chrono::ChSharedPtr
< chrono::ChLinkSpring > * 
selectedspring
chrono::ChSharedBodyPtrselectedtruss
chrono::ChSharedBodyPtrselectedmover
chrono::ChVector selectedpoint
double selecteddist


Detailed Description

Class to add some GUI to Irrlicht+ChronoEngine applications. Such basic GUI can be used to monitor solver timings, to change physical system settings easily, and so on.

Constructor & Destructor Documentation

irr::ChIrrAppInterface::ChIrrAppInterface ( chrono::ChSystem mysystem,
const wchar_t *  title,
core::dimension2d< s32 >  dimens = core::dimension2d<s32>(640,480),
bool  do_fullscreen = false,
bool  do_shadows = false 
)

Create the IRRLICHT context (device, etc.).

irr::ChIrrAppInterface::~ChIrrAppInterface (  ) 

This safely delete every Irrlicht item (including the scene nodes, so also the encapsulated Chrono bodies will be deleted)


Member Function Documentation

void irr::ChIrrAppInterface::DrawAll (  ) 

Call this important function inside a cycle like while(ChirrAppInterface->GetDevice()->run()) {...} in order to get the redrawing of all 3D shapes and all the GUI elements


CHRONO::ENGINE
C++ library for multibody simulation, (C) Alessandro Tasora
This API documentation has been generated on 17 Jul 2009 by Doxygen