iCub-main
bvhnodeeye.h
Go to the documentation of this file.
1 /*
2  * bvhnodeeye.h
3  */
4 
5 /*
6  * Copyright (C) 2009 RobotCub Consortium
7  * Author: Alessandro Scalzo alessandro.scalzo@iit.it
8  * CopyPolicy: Released under the terms of the GNU GPL v2.0.
9  *
10  * Based on:
11  *
12  * Qavimator
13  * Copyright (C) 2006 by Zi Ree *
14  * Zi Ree @ SecondLife *
15  * Released under the terms of the GNU GPL v2.0.
16  */
17 
18 #ifndef BVHNODEEYE_H
19 #define BVHNODEEYE_H
20 
21 #include "bvhnodeend.h"
22 
23 class BVHNodeEYE : public BVHNodeEND
24 {
25 public:
26 
27  BVHNodeEYE(const QString& name,int n,double a,double d,double alpha,double theta0,iCubMesh* mesh=0)
28  : BVHNodeEND(name,n,a,d,alpha,theta0,mesh){}
29 
30  virtual void drawJoint()
31  {
32  glColor4f(1.0,1.0,1.0,1.0);
33  gluSphere(cyl,20.32,16,16);
34  glTranslated(0.0,0.0,20.32);
35  glColor4f(0.0,0.0,0.0,1.0);
36  gluSphere(cyl,5.08,16,16);
37  }
38 };
39 
40 #endif
BVHNodeEYE(const QString &name, int n, double a, double d, double alpha, double theta0, iCubMesh *mesh=0)
Definition: bvhnodeeye.h:27
virtual void drawJoint()
Definition: bvhnodeeye.h:30
const QString & name() const
Definition: bvhnode.h:221
GLUquadricObj * cyl
Definition: bvhnode.h:281
Definition: mesh.h:54
int n