segment.h 646 Bytes
Newer Older
pitiot's avatar
develop    
pitiot committed
1
2
3
4
#ifndef _Segment_H_
#define _Segment_H_

#include "env_map.h"
pitiot's avatar
pitiot committed
5
class ArticulatedObject;
pitiot's avatar
develop    
pitiot committed
6
7
8
9
class Segment
{
public:
	Segment(const VEC3 point1, const VEC3 point2,
pitiot's avatar
pitiot committed
10
             ArticulatedObject * Needle =NULL,unsigned int indexP1=0,unsigned int indexP2=0, unsigned int ind=0,float rouge=0,float green =0, float blue=1.0f) :
pitiot's avatar
develop    
pitiot committed
11
		 p1(point1), p2(point2),
pitiot's avatar
pitiot committed
12
        nid(Needle),indexPart1(indexP1),indexPart2(indexP2), index(ind),r(rouge),g(green),b(blue)
pitiot's avatar
develop    
pitiot committed
13
14
15
16
17
	{
	}

	VEC3 p1 ;
	VEC3 p2 ;
pitiot's avatar
pitiot committed
18
// colors
pitiot's avatar
develop    
pitiot committed
19

pitiot's avatar
pitiot committed
20
21
22
    ArticulatedObject * nid ;
    unsigned int indexPart1;
    unsigned int indexPart2;
pitiot's avatar
develop    
pitiot committed
23
	unsigned int index ;
pitiot's avatar
pitiot committed
24
25
26
    float r;
    float g;
    float b;
pitiot's avatar
develop    
pitiot committed
27
28
29
30

} ;

#endif