AnimatLab  2
Test
VsSimulationWindowMgr.cpp
1 #include "StdAfx.h"
2 #include "VsMouseSpring.h"
3 #include "VsCameraManipulator.h"
4 #include "VsMovableItem.h"
5 #include "VsBody.h"
6 #include "VsJoint.h"
7 #include "VsRigidBody.h"
8 #include "VsStructure.h"
9 #include "VsLight.h"
10 #include "VsSimulator.h"
11 #include "VsOsgUserData.h"
12 #include "VsSimulationWindow.h"
13 #include "VsSimulationWindowMgr.h"
14 #include "VsDragger.h"
15 
16 namespace VortexAnimatSim
17 {
18  namespace Visualization
19  {
20 
21 VsSimulationWindowMgr::VsSimulationWindowMgr(void)
22 {
23 }
24 
25 VsSimulationWindowMgr::~VsSimulationWindowMgr(void)
26 {
27 }
28 
30 {
31  SimulationWindowMgr::Initialize();
32 
33  int iCount = m_aryWindows.GetSize();
34  for(int iIndex=0; iIndex<iCount; iIndex++)
35  m_aryWindows[iIndex]->Initialize();
36 }
37 
39 {
40  SetupCameras();
41 // m_osgViewer->realize();
42 //
43 // osgViewer::Viewer::Windows windows;
44 // m_osgViewer->getWindows(windows);
45 // osgViewer::GraphicsWindow *win = windows[0];
46 //
47 // if(win)
48 // win->setWindowName("Animat Simulator");
49 }
50 
51  }// end Visualization
52 }// end VortexAnimatSim
virtual void Initialize()
Initializes this object.
CStdPtrArray< SimulationWindow > m_aryWindows
Array of SimulationWindow objects.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
Declares the vortex Light class.
virtual void SetupCameras()
Sets up the cameras for each window.
Declares the vortex structure class.