My Project: openb3dlib.mod/openb3d/src/pick.h Source File

My Project

pick.h
Go to the documentation of this file.
1 /*
2 * pick.h
3 * iminib3d
4 *
5 * Created by Simon Harrison.
6 * Copyright Si Design. All rights reserved.
7 *
8 */
9
10 #ifndef PICK_H
11 #define PICK_H
12
13 #include "entity.h"
14 #include "camera.h"
15 #include "mesh.h"
16 #include "surface.h"
17 #include "collision.h"
18 #include "tree.h"
19 #include "geom.h"
20 #include "project.h"
21 #include "terrain.h"
22
23 #include <list>
24 #include <iostream>
25 using namespace std;
26
27 class Pick{
28
29 public:
30
31 //EntityPickMode in TEntity
32
33 static const float EPSILON=0.0001;
34
35 static list<Entity*> ent_list; // list containing pickable entities
36
37 static float picked_x;
38 static float picked_y;
39 static float picked_z;
40 static float picked_nx;
41 static float picked_ny;
42 static float picked_nz;
43 static float picked_time;
44 static Entity* picked_ent;
45 static Surface* picked_surface;
46 static int picked_triangle;
47
48 Pick(){};
49
50 static Entity* CameraPick(Camera* cam,float vx,float vy);
51 static Entity* EntityPick(Entity* ent,float range);
52 static Entity* LinePick(float x,float y,float z,float dx,float dy,float dz,float radius=0.0);
53 static int EntityVisible(Entity* src_ent,Entity* dest_ent);
54 static float PickedX();
55 static float PickedY();
56 static float PickedZ();
57 static float PickedNX();
58 static float PickedNY();
59 static float PickedNZ();
60 static float PickedTime();
61 static Entity* PickedEntity();
62 static Surface* PickedSurface();
63 static int PickedTriangle();
64 static Entity* PickMain(float ax,float ay,float az,float bx,float by,float bz,float radius=0.0);
65
66 };
67
68 #endif
PickedY
float PickedY()
Definition: functions.cpp:1236
Pick::picked_x
static float picked_x
Definition: pick.h:37
entity.h
project.h
geom.h
Pick::picked_ent
static Entity * picked_ent
Definition: pick.h:44
Surface
Definition: surface.h:19
Pick::picked_triangle
static int picked_triangle
Definition: pick.h:46
EPSILON
const float EPSILON
Definition: geom.h:16
terrain.h
camera.h
Pick::picked_nx
static float picked_nx
Definition: pick.h:40
mesh.h
std
tree.h
Pick::picked_nz
static float picked_nz
Definition: pick.h:42
Pick::picked_z
static float picked_z
Definition: pick.h:39
Camera
Definition: camera.h:23
Pick::picked_ny
static float picked_ny
Definition: pick.h:41
LinePick
Entity * LinePick(float x, float y, float z, float dx, float dy, float dz, float radius)
Definition: functions.cpp:1013
PickedTriangle
int PickedTriangle()
Definition: functions.cpp:1222
Entity
Definition: entity.h:27
CameraPick
Entity * CameraPick(Camera *cam, float x, float y)
Definition: functions.cpp:260
collision.h
Pick::picked_y
static float picked_y
Definition: pick.h:38
PickedNX
float PickedNX()
Definition: functions.cpp:1186
PickedEntity
Entity * PickedEntity()
Definition: functions.cpp:1178
PickedZ
float PickedZ()
Definition: functions.cpp:1243
Pick
Definition: pick.h:27
EntityPick
Entity * EntityPick(Entity *ent, float range)
Definition: functions.cpp:731
surface.h
Pick::picked_surface
static Surface * picked_surface
Definition: pick.h:45
PickedX
float PickedX()
Definition: functions.cpp:1229
PickedSurface
Surface * PickedSurface()
Definition: functions.cpp:1207
PickedTime
float PickedTime()
Definition: functions.cpp:1215
Pick::ent_list
static list< Entity * > ent_list
Definition: pick.h:35
Pick::picked_time
static float picked_time
Definition: pick.h:43
PickMain
Entity * PickMain(float ax, float ay, float az, float bx, float by, float bz, float radius)
Definition: methods.cpp:326
PickedNY
float PickedNY()
Definition: functions.cpp:1193
Pick::Pick
Pick()
Definition: pick.h:48
PickedNZ
float PickedNZ()
Definition: functions.cpp:1200
EntityVisible
int EntityVisible(Entity *src_ent, Entity *dest_ent)
Definition: functions.cpp:788