Loading [MathJax]/extensions/tex2jax.js
iCub-main
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
a
b
c
d
e
h
i
j
l
m
n
p
r
s
t
w
z
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
a
b
c
e
g
i
l
n
p
r
s
t
u
Enumerator
a
b
c
d
e
f
g
i
l
m
p
r
s
t
u
Properties
Related Symbols
a
b
c
g
i
l
o
q
r
s
t
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
x
y
z
Typedefs
Enumerations
Enumerator
_
a
c
d
e
g
j
m
n
p
s
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
icub-main
src
tools
iCubGui
src
bvhnodeend.h
Go to the documentation of this file.
1
/*
2
* bvhnodeend.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 BVHNODEEND_H
19
#define BVHNODEEND_H
20
21
#include "
bvhnodedh.h
"
22
23
class
BVHNodeEND
:
public
BVHNodeDH
24
{
25
public
:
26
27
BVHNodeEND
(
const
QString&
name
,
int
n
,
double
a,
double
d,
double
alpha,
double
theta0,
iCubMesh
* mesh=0)
28
:
BVHNodeDH
(
name
,
n
,a,d,alpha,theta0,mesh){}
27
BVHNodeEND
(
const
QString&
name
,
int
n
,
double
a,
double
d,
double
alpha,
double
theta0,
iCubMesh
* mesh=0) {
…
}
29
30
virtual
void
drawJoint
(){}
31
32
virtual
void
draw
(
double
* encoders,
BVHNode
* pSelected)
33
{
34
glPushMatrix();
35
36
glRotated(
dTheta0
+encoders[
nEnc
],0.0,0.0,1.0);
37
glTranslated(
dA
,0.0,
dD
);
38
39
glColor4f(0.5,0.5,0.5,1.0);
40
glLineWidth(3.0);
41
glBegin(GL_LINES);
42
glVertex3d(0.0,0.0,0.0);
43
glVertex3d(-
dA
,0.0,-
dD
);
44
glEnd();
45
46
glRotated(
dAlpha
,1.0,0.0,0.0);
47
48
if
(
pMesh
)
49
{
50
glColor4f(0.9,0.8,0.7,1.0);
51
pMesh
->
Draw
();
52
}
53
54
drawArrows
();
55
56
drawJoint
();
57
58
glPopMatrix();
59
}
32
virtual
void
draw
(
double
* encoders,
BVHNode
* pSelected) {
…
}
60
};
23
class
BVHNodeEND
:
public
BVHNodeDH
{
…
};
61
62
#endif
bvhnodedh.h
BVHNodeDH
Definition
bvhnodedh.h:24
BVHNodeDH::dAlpha
double dAlpha
Definition
bvhnodedh.h:105
BVHNodeDH::dTheta0
double dTheta0
Definition
bvhnodedh.h:105
BVHNodeDH::dD
double dD
Definition
bvhnodedh.h:105
BVHNodeDH::dA
double dA
Definition
bvhnodedh.h:105
BVHNodeEND
Definition
bvhnodeend.h:24
BVHNodeEND::drawJoint
virtual void drawJoint()
Definition
bvhnodeend.h:30
BVHNodeEND::draw
virtual void draw(double *encoders, BVHNode *pSelected)
Definition
bvhnodeend.h:32
BVHNodeEND::BVHNodeEND
BVHNodeEND(const QString &name, int n, double a, double d, double alpha, double theta0, iCubMesh *mesh=0)
Definition
bvhnodeend.h:27
BVHNode
Definition
bvhnode.h:192
BVHNode::pMesh
iCubMesh * pMesh
Definition
bvhnode.h:286
BVHNode::nEnc
int nEnc
Definition
bvhnode.h:285
BVHNode::name
const QString & name() const
Definition
bvhnode.h:221
BVHNode::drawArrows
void drawArrows()
Definition
bvhnode.h:265
iCubMesh
Definition
mesh.h:54
iCubMesh::Draw
void Draw()
Definition
mesh.h:187
n
int n
Definition
debugFunctions.cpp:58
Generated on Wed Apr 9 2025 08:53:53 for iCub-main by
1.9.8