Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Picking Class Reference

Gestion du picking. More...

#include <picking.h>

List of all members.

Public Member Functions

 Picking ()
void operator= (Picking &scr)
BOOL Test ()
 test OpenGL du picking

BOOL FindContainer ()
 trouve le container

void SetMousePos (int x, int y)
 place les coordonnée de la souris

void SetDeltaWheel (int delta)
 place le delta wheel de la souris

void UpdateLast ()
 Mise a jour des derniers.

void ResetLast ()
void ResetCurrent ()
void OnMouseMove (int x, int y)
void OnMouseWheel (int delta)
void OnLButtonUp ()
void OnMButtonUp ()
void OnRButtonUp ()

Public Attributes

ControllastControlHover
 derniere control survolé utilisé

ControllastControlContainer
 dernier control container utilisé

int lastFaceHover
 derniere face survolé utilisé

int lastFaceContainer
 derniere face container utilisé

StateMouse mouse
StateMouse oldMouse
 infos / souris

ControlcontrolHover
 control survolé

ControlcontrolContainer
 control sélectioné

int faceHover
 face du control survolé

int faceContainer
 face du control sélectioné

double zDist
 distance z observateur <=> objet 3D

BOOL isMoving
 les coordonée on est changé depuis la derniere fois


Detailed Description

Gestion du picking.

Definition at line 35 of file picking.h.


Constructor & Destructor Documentation

Picking::Picking  ) 
 

Definition at line 28 of file picking.cpp.

References isMoving, ResetCurrent(), ResetLast(), and zDist.


Member Function Documentation

BOOL Picking::FindContainer  ) 
 

trouve le container

Trouve le container du "controlHover" et le place dans le "controlContainer"

Le critere est pour le moment la recherche du control dont le parent est l'Univers Ce qui ne marche pas si il y a un sous-container (example tabCtrl,UniverLocal etc ...)

Definition at line 283 of file picking.cpp.

References BOOL(), ce, MyTreeNode< T >::childs, controlContainer, controlHover, MyTreeNode< T >::elem, faceContainer, faceHover, Control::faceNode, FaceNode, Control::Find(), MyList< MyTreeNode * >::i, ControlEngine::masterContainer, MyTreeNode< T >::parent, and ControlEngine::univers.

Referenced by Test().

void Picking::OnLButtonUp  ) 
 

Definition at line 104 of file picking.cpp.

References controlHover, faceHover, EventMouse::left, StateMouse::leftBtn, EventControl::mouse, Control::onControl, and EventMouseButton::up.

Referenced by EventInertia::Stop().

void Picking::OnMButtonUp  ) 
 

Definition at line 110 of file picking.cpp.

References controlHover, faceHover, EventMouse::mid, StateMouse::midBtn, EventControl::mouse, Control::onControl, and EventMouseButton::up.

Referenced by EventInertia::Stop().

void Picking::OnMouseMove int  x,
int  y
 

Definition at line 91 of file picking.cpp.

References controlHover, faceHover, Control::OnMouseMove(), and SetMousePos().

Referenced by EventInertia::OnInertia().

void Picking::OnMouseWheel int  delta  ) 
 

Definition at line 98 of file picking.cpp.

References controlHover, faceHover, Control::OnMouseWheel(), and SetDeltaWheel().

void Picking::OnRButtonUp  ) 
 

Definition at line 116 of file picking.cpp.

References controlHover, faceHover, EventControl::mouse, Control::onControl, EventMouse::right, StateMouse::rightBtn, and EventMouseButton::up.

Referenced by EventInertia::Stop().

void Picking::operator= Picking scr  ) 
 

Definition at line 65 of file picking.cpp.

References controlContainer, controlHover, faceContainer, faceHover, isMoving, oldMouse, src, and zDist.

void Picking::ResetCurrent  ) 
 

Definition at line 48 of file picking.cpp.

References controlContainer, controlHover, faceContainer, and faceHover.

Referenced by TreeView::OnNextFrame(), and Picking().

void Picking::ResetLast  ) 
 

A utitiser si un control a ete suprimé et qu'il avais le focus

pb d'interblocage sinon ==> FaceOverOut

Definition at line 40 of file picking.cpp.

References lastControlContainer, lastControlHover, lastFaceContainer, and lastFaceHover.

Referenced by Picking().

void Picking::SetDeltaWheel int  delta  ) 
 

place le delta wheel de la souris

Definition at line 84 of file picking.cpp.

References StateMouse::wheelDelta, and StateMouse::wheelVal.

Referenced by OnMouseWheel(), and ControlEngine::Proc().

void Picking::SetMousePos int  x,
int  y
 

place les coordonnée de la souris

Definition at line 77 of file picking.cpp.

References isMoving, oldMouse, StateMouse::pos, and Point2D< int >::Set().

Referenced by OnMouseMove(), and ControlEngine::Proc().

BOOL Picking::Test  ) 
 

test OpenGL du picking

Definition at line 158 of file picking.cpp.

References MyString::AddFormat(), BOOL(), bufferSelect, ce, MyTreeNode< T >::childs, controlHover, ControlEngine::DrawScene(), ControlEngine::dyWin, MyTreeNode< T >::elem, ControlEngine::enablePicking, faceHover, Control::faceNode, Control::Find(), FindContainer(), MyString::Format(), MyList< MyTreeNode * >::GetNbElem(), GLuint(), Screen::hWnd, MyList< MyTreeNode * >::i, IDC_STATIC_PICKING_FULL, IDC_STATIC_PICKING_SELECTED, IDC_STATIC_PICKING_SELECTED_TITLE, MAX_BUFFER_SELECT, ControlEngine::monitor, Face::name, Control::name, StateMouse::pos, ControlEngine::screenConfig, MyDebug::SendEvent(), ControlEngine::SetPerspective(), ControlEngine::univers, UpdateLast(), ControlEngine::viewPort, Point2D< int >::x, Point2D< int >::y, and zDist.

Referenced by ControlEngine::Draw().

void Picking::UpdateLast  ) 
 

Mise a jour des derniers.

Definition at line 57 of file picking.cpp.

References controlContainer, controlHover, faceContainer, faceHover, lastControlContainer, lastControlHover, lastFaceContainer, and lastFaceHover.

Referenced by Test().


Member Data Documentation

Control* Picking::controlContainer
 

control sélectioné

Definition at line 48 of file picking.h.

Referenced by FindContainer(), operator=(), ControlEngine::Proc(), ResetCurrent(), and UpdateLast().

Control* Picking::controlHover
 

control survolé

Definition at line 47 of file picking.h.

Referenced by FindContainer(), TreeView::OnClick(), OnLButtonUp(), OnMButtonUp(), OnMouseMove(), OnMouseWheel(), OnRButtonUp(), operator=(), ControlEngine::Proc(), ResetCurrent(), Test(), and UpdateLast().

int Picking::faceContainer
 

face du control sélectioné

Definition at line 50 of file picking.h.

Referenced by FindContainer(), operator=(), ControlEngine::Proc(), ResetCurrent(), and UpdateLast().

int Picking::faceHover
 

face du control survolé

Definition at line 49 of file picking.h.

Referenced by FindContainer(), OnLButtonUp(), OnMButtonUp(), OnMouseMove(), OnMouseWheel(), OnRButtonUp(), operator=(), ControlEngine::Proc(), ResetCurrent(), Test(), and UpdateLast().

BOOL Picking::isMoving
 

les coordonée on est changé depuis la derniere fois

Definition at line 52 of file picking.h.

Referenced by operator=(), Picking(), ControlEngine::Proc(), and SetMousePos().

Control* Picking::lastControlContainer
 

dernier control container utilisé

Definition at line 43 of file picking.h.

Referenced by ResetLast(), and UpdateLast().

Control* Picking::lastControlHover
 

derniere control survolé utilisé

Definition at line 42 of file picking.h.

Referenced by ResetLast(), and UpdateLast().

int Picking::lastFaceContainer
 

derniere face container utilisé

Definition at line 45 of file picking.h.

Referenced by ResetLast(), and UpdateLast().

int Picking::lastFaceHover
 

derniere face survolé utilisé

Definition at line 44 of file picking.h.

Referenced by ResetLast(), and UpdateLast().

StateMouse Picking::mouse
 

Definition at line 46 of file picking.h.

Referenced by ControlEngine::DrawCursors(), ControlEngine::DrawLight(), Control::OnMouseMove(), ControlEngine::Proc(), and EventInertia::Start().

StateMouse Picking::oldMouse
 

infos / souris

Definition at line 46 of file picking.h.

Referenced by Control::OnMouseMove(), operator=(), and SetMousePos().

double Picking::zDist
 

distance z observateur <=> objet 3D

Definition at line 51 of file picking.h.

Referenced by operator=(), Picking(), Control::ScreenMove(), Control::ScreenMoveTo(), and Test().


The documentation for this class was generated from the following files:
Generated on Fri Aug 20 19:21:30 2004 for 3d Controls by doxygen 1.3.6