GCOP  1.0
mbsview.h
Go to the documentation of this file.
00001 #ifndef GCOP_MBSVIEW_H
00002 #define GCOP_MBSVIEW_H
00003 
00004 #include "mbs.h"
00005 #include "systemview.h"
00006 #include "GL/glut.h"
00007 #include <assert.h>
00008 #include <stdlib.h>
00009 #include <string.h>
00010 #include <iostream>
00011 //#include "viewer.h"
00012 #include "geom3dview.h"
00013 
00014 
00015 namespace gcop {
00016 
00017 #include "utils.h"
00018 
00019   using namespace Eigen;
00020   
00021   class MbsView : public SystemView<MbsState, VectorXd> {
00022   public:
00023     
00029     MbsView(const Mbs &sys,
00030             vector<MbsState> *xs = 0,
00031             vector<VectorXd> *us = 0);
00032     
00033     virtual ~MbsView();
00034     
00035     
00036     virtual void Render(const MbsState *x,
00037                         const VectorXd *u = 0);
00038     
00039     void Render(const vector<MbsState> *xs,
00040                 const vector<VectorXd> *us = 0,
00041                 bool rs = true,
00042                 int is = -1, int ie = -1,
00043                 int dis = 1, int dit = 1,
00044                 bool dl = false);
00045     
00046     const Mbs &sys;
00047     GLUquadricObj *qobj;
00048     double dirSize;
00049     
00050     vector<Geom3dView*> geomViews;  
00051   };
00052 }
00053 
00054 
00055 
00056 #endif