#include <control.h>
Inheritance diagram for Control:
Public Member Functions | |
Control () | |
~Control () | |
void | SetParent () |
Utilisé uu Create du control, fait la config du parent. | |
BOOL | Delete () |
void | DeleteFaces () |
void | DeleteSub () |
void | operator= (Control &src) |
virtual void | Create () |
void | ToString (MyString &str) |
Pour le debugage. | |
void | SetBlending (BOOL enable) |
Active/desactive le blending sur toute les faces. | |
void | SetAlphaBlending (float alpha) |
Positionne la valeur alpha du blending le blending sur toute les faces. | |
void | SetLines (Color color, float size) |
void | OverIn (Control *oldControl, int face) |
On rentre sur le control. | |
void | OverOut (Control *newControl, int face) |
On part du control. | |
void | FaceOverIn (int oldFace) |
On rentre sur un face du control courent. | |
void | FaceOverOut (int newFace) |
On part d'un face du control courent. | |
BOOL | ScreenMove (double x, double y, double z) |
Fait un deplacement de {x,y,z} pixel excran suivant le focus du picking. | |
BOOL | ScreenMoveTo (double x, double y, double z) |
positionne au pixel ecran: {x,y,z} suivant le focus du picking | |
BOOL | Move (double x, double y, double z) |
deplacement | |
BOOL | MoveTo (double x, double y, double z) |
positionne | |
BOOL | Size (double x, double y) |
place un taille | |
BOOL | ReSize (double dx, double dy) |
resize | |
BOOL | Rotate (double x, double y, double z) |
Delta-rotation. | |
BOOL | RotateQuaternion (double x, double y, double z) |
Delta-rotation par rapport a un point de vu fix de l'Univers. | |
BOOL | RotateTo (double x, double y, double z) |
Assignation d'un rotation. | |
BOOL | XDockLeft (double margeX, double sizeX, BOOL isCenter=FALSE) |
BOOL | XDockRight (double margeX, double sizeX, BOOL isCenter=FALSE) |
BOOL | XDockCenter (double sizeX) |
BOOL | XDockCenter (double margeLeft, double margeRight) |
BOOL | YDockTop (double margeY, double sizeY, BOOL isCenter=FALSE) |
BOOL | YDockBottom (double margeY, double sizeY, BOOL isCenter=FALSE) |
BOOL | YDockCenter (double sizeY) |
BOOL | YDockCenter (double margeTop, double margeBottom) |
BOOL | ChangeDirection () |
int | OnMouseWheel (StateMouse *mouse, int face) |
int | OnMouseMove (StateMouse *mouse, int face) |
Si la souris bouge. | |
int | OnLButtonDown (StateMouse *mouse, int face) |
Un simple click. | |
int | OnMButtonDown (StateMouse *mouse, int face) |
int | OnRButtonDown (StateMouse *mouse, int face) |
int | OnLButtonUp (StateMouse *mouse, int face) |
int | OnMButtonUp (StateMouse *mouse, int face) |
int | OnRButtonUp (StateMouse *mouse, int face) |
int | OnLButtonDouble (StateMouse *mouse, int face) |
int | OnMButtonDouble (StateMouse *mouse, int face) |
int | OnRButtonDouble (StateMouse *mouse, int face) |
int | OnKeyUp (StateKey *key, int face) |
int | OnKeyDown (StateKey *key, int face) |
int | OnKeyDouble (StateKey *key, int face) |
int | OnClick (StateMouse *mouse, int face) |
void | GetCorners (int face, Point3D< double > *points) |
Point2D< double > | GetLocalPos (int face, Point2D< double > absolutePos) |
Static Public Member Functions | |
Control * | Find (int _idControl) |
Recherche un id de control dans toute les instances possibles. | |
Public Attributes | |
int | id |
FaceNode * | faceNode |
graphics | |
MyString | name |
BOOL | isEnable |
BOOL | isView |
int | sleepedDelay |
temp avant envois du message sleeper | |
Control * | parent |
control parent | |
int | parentFace |
face du control parent | |
EventControl | onControl |
Static Public Attributes | |
MyList< Control * > | controls |
list de toute les instances de control | |
int | nextId = 2 |
Inertia | inertia |
Timer | timerAutoWheel |
cronos des lancement des autoWheel | |
Timer | timerSleeped |
cronos pour savoir si on est sleeped | |
BOOL | leftDown |
le boutton a t'il ete appuyé sur ce focus (gestion de mouse.left.click) | |
BOOL | midDown |
le boutton a t'il ete appuyé sur ce focus (gestion de mouse.mid.click) | |
BOOL | rightDown |
le boutton a t'il ete appuyé sur ce focus (gestion de mouse.right.click) |
Tout control a les message suivant par defaut
Definition at line 231 of file control.h.
|
Definition at line 28 of file control.cpp. References controls, faceNode, MyList< Control * >::i, isView, leftDown, midDown, name, nextId, parentFace, rightDown, and sleepedDelay. |
|
Definition at line 44 of file control.cpp. References Delete(). |
|
Definition at line 339 of file control.cpp. References BOOL(), DOCK_INIT, Face::position, Rotate(), Face::size, Point2D< LayoutDouble >::x, Point3D< LayoutDouble >::x, Point2D< LayoutDouble >::y, and Point3D< LayoutDouble >::y. |
|
Reimplemented in Tutorial, Button, Calculator, Container, MasterContainer, MsgBox, TaskWindow, TextBox, Tip, Title, TrackButton, TreeView, Univers, and Window. |
|
Definition at line 74 of file control.cpp. References BOOL(), controls, DeleteFaces(), MyListIterator< Control * >::GoTo(), MyList< Control * >::i, and MyListIterator< Control * >::Supr(). Referenced by Window::OnClose(), MsgBox::OnClose(), Tutorial::LayoutDemo::OnEnd(), Calculator::OnKey(), and ~Control(). |
|
Definition at line 87 of file control.cpp. References faceNode. Referenced by Delete(). |
|
Detruit tout les controls contenu mais pas le control de base Definition at line 111 of file control.cpp. References faceNode. Referenced by TreeView::OnNextFrame(), and TreeDirectory::Reset(). |
|
On rentre sur un face du control courent.
Definition at line 464 of file control.cpp. References Debug1Param, EventControl::faceOver, EventFaceOver::in, and onControl. |
|
On part d'un face du control courent. Si newFace==-1 ==> on sort du control Definition at line 475 of file control.cpp. References Debug1Param, EventControl::faceOver, onControl, and EventFaceOver::out. |
|
Recherche un id de control dans toute les instances possibles.
Definition at line 373 of file control.cpp. References controls, MyListIterator< T >::GetElem(), id, and MyListIterator< T >::More(). Referenced by DebugStructProc(), Picking::FindContainer(), ValueEditors::MakeDebugControlStruct(), TaskWindow::Restore(), and Picking::Test(). |
|
Definition at line 607 of file control.cpp. References ce, MyTreeNode< T >::childs, faceNode, Primitive::GetCorners(), MyList< MyTreeNode * >::i, points, and ControlEngine::primitive. Referenced by Tutorial::BaseDemo::OnWinMove(). |
|
Definition at line 612 of file control.cpp. References ce, MyTreeNode< T >::childs, faceNode, Primitive::GetLocalPos(), MyList< MyTreeNode * >::i, and ControlEngine::primitive. Referenced by ResizingAndRotateControl::OnHover(), Slider::OnMouseMove(), and Tutorial::BaseDemo::OnWinMove(). |
|
deplacement
Definition at line 210 of file control.cpp. References BOOL(), MyTreeNode< T >::elem, and faceNode. Referenced by Tutorial::BaseDemo::BaseDemo(), TaskWindow::Create(), Slider::Create(), Univers::ExitQuestion(), Univers::OnMouseMove(), TrackButton::OnMouseMove(), Title::OnMouseMove(), Univers::OnMouseWheel(), Title::OnMouseWheel(), Univers::OnRefresh(), Title::OnRefresh(), and ScreenMove(). |
|
positionne
Definition at line 202 of file control.cpp. References BOOL(), MyTreeNode< T >::elem, and faceNode. Referenced by Tutorial::BaseDemo::BaseDemo(), ScreenMoveTo(), and Tutorial::UniversDemo::SetFace(). |
|
Reimplemented in Title. Definition at line 505 of file control.cpp. References EventMouseButton::click, DebugMouse2, EventMouse::left, EventControl::mouse, and onControl. Referenced by OnLButtonUp(). |
|
Definition at line 599 of file control.cpp. References DebugKey2, EventKey::doubleClick, EventControl::key, and onControl. Referenced by ControlEngine::Proc(). |
|
Reimplemented in Title, and Univers. Definition at line 593 of file control.cpp. References DebugKey2, EventKey::down, EventControl::key, and onControl. Referenced by ControlEngine::Proc(). |
|
Reimplemented in Title, and Univers. Definition at line 587 of file control.cpp. References DebugKey2, EventControl::key, onControl, and EventKey::up. Referenced by ControlEngine::Proc(). |
|
Definition at line 567 of file control.cpp. References DebugMouse2, EventMouseButton::doubleClick, EventMouse::left, EventControl::mouse, and onControl. Referenced by ControlEngine::Proc(). |
|
Un simple click.
Reimplemented in TextBox, Title, and Univers. Definition at line 484 of file control.cpp. References DebugMouse2, EventMouseButton::down, EventMouse::left, leftDown, EventControl::mouse, and onControl. Referenced by ControlEngine::Proc(). |
|
Reimplemented in TextBox, and Univers. Definition at line 530 of file control.cpp. References DebugMouse2, EventMouse::left, leftDown, EventControl::mouse, OnClick(), onControl, res, and EventMouseButton::up. Referenced by ControlEngine::Proc(). |
|
Definition at line 573 of file control.cpp. References DebugMouse2, EventMouseButton::doubleClick, EventMouse::mid, EventControl::mouse, and onControl. Referenced by ControlEngine::Proc(). |
|
Reimplemented in Title, and Univers. Definition at line 491 of file control.cpp. References DebugMouse2, EventMouseButton::down, EventMouse::mid, midDown, EventControl::mouse, and onControl. Referenced by ControlEngine::Proc(). |
|
Reimplemented in Univers. Definition at line 542 of file control.cpp. References EventMouseButton::click, DebugMouse2, Timer::isRuning, EventMouse::mid, midDown, EventControl::mouse, onControl, res, Timer::StopAndUnBind(), timerAutoWheel, and EventMouseButton::up. Referenced by ControlEngine::Proc(). |
|
Si la souris bouge.
Definition at line 420 of file control.cpp. References Inertia::Add(), BindTimer, ce, ControlEngine::enableInertia, StateMouse::GetDelta(), inertia, EventControl::mouse, Picking::mouse, EventMouse::move, Picking::oldMouse, onControl, Timer::onTimer, ControlEngine::pickingCursor, StateMouse::pos, sleepedDelay, timerSleeped, Point2D< int >::x, and Point2D< int >::y. Referenced by Picking::OnMouseMove(), and ControlEngine::Proc(). |
|
Reimplemented in Title, Univers, and Window. Definition at line 397 of file control.cpp. References BindTimer, DebugMouse2, StateMouse::midBtn, EventControl::mouse, onControl, timerAutoWheel, and EventMouse::wheel. Referenced by Picking::OnMouseWheel(), and ControlEngine::Proc(). |
|
Definition at line 579 of file control.cpp. References DebugMouse2, EventMouseButton::doubleClick, EventControl::mouse, onControl, and EventMouse::right. Referenced by ControlEngine::Proc(). |
|
Definition at line 498 of file control.cpp. References DebugMouse2, EventMouseButton::down, EventControl::mouse, onControl, EventMouse::right, and rightDown. Referenced by ControlEngine::Proc(). |
|
Definition at line 555 of file control.cpp. References EventMouseButton::click, DebugMouse2, EventControl::mouse, onControl, res, EventMouse::right, rightDown, and EventMouseButton::up. Referenced by ControlEngine::Proc(). |
|
Definition at line 60 of file control.cpp. References faceNode, isView, name, onControl, parentFace, sleepedDelay, and src. |
|
On rentre sur le control.
Definition at line 440 of file control.cpp. References Debug2Param, EventOver::in, leftDown, midDown, name, onControl, EventControl::over, and rightDown. Referenced by ControlEngine::Proc(). |
|
On part du control.
Definition at line 452 of file control.cpp. References Debug2Param, leftDown, midDown, name, onControl, EventOver::out, EventControl::over, and rightDown. |
|
resize
Definition at line 218 of file control.cpp. References BOOL(), MyTreeNode< T >::elem, and faceNode. Referenced by TrackButton::OnMouseMove(). |
|
Delta-rotation.
Definition at line 245 of file control.cpp. References BOOL(), MyTreeNode< T >::elem, and faceNode. Referenced by ChangeDirection(), TaskWindow::Create(), Slider::Create(), TrackButton::OnClickBottom(), TrackButton::OnClickLeft(), TrackButton::OnClickLeftBottom(), TrackButton::OnClickLeftTop(), TrackButton::OnClickRight(), TrackButton::OnClickRightBottom(), TrackButton::OnClickRightTop(), TrackButton::OnClickTop(), and Demo::OnTimer(). |
|
Delta-rotation par rapport a un point de vu fix de l'Univers.
Definition at line 236 of file control.cpp. References BOOL(), MyTreeNode< T >::elem, faceNode, and Point3D< T >::QuaternionRotate(). Referenced by Univers::OnKeyDown(), Title::OnKeyDown(), Univers::OnMouseMove(), Title::OnMouseMove(), and Tutorial::UniversDemo::OnTimer(). |
|
Assignation d'un rotation.
Definition at line 254 of file control.cpp. References BOOL(), MyTreeNode< T >::elem, and faceNode. Referenced by Tutorial::BaseDemo::BaseDemo(), Title::OnKeyUp(), Title::OnMax(), Tutorial::UniversDemo::SetFace(), and Tutorial::WindowDemo::WindowDemo(). |
|
Fait un deplacement de {x,y,z} pixel excran suivant le focus du picking.
Definition at line 184 of file control.cpp. References BOOL(), ce, ControlEngine::ComputeRealZ(), Move(), ControlEngine::pickingCursor, ControlEngine::pickingInertia, ControlEngine::usingInertia, and Picking::zDist. |
|
positionne au pixel ecran: {x,y,z} suivant le focus du picking
Definition at line 195 of file control.cpp. References BOOL(), ce, ControlEngine::ComputeRealZ(), MoveTo(), ControlEngine::pickingCursor, and Picking::zDist. |
|
Positionne la valeur alpha du blending le blending sur toute les faces.
Definition at line 155 of file control.cpp. References alpha, Face::blending, MyTreeNode< T >::childs, MyTreeNode< T >::elem, faceNode, MyListIterator< MyTreeNode * >::GetElem(), MyList< MyTreeNode * >::i, Face::material, MyListIterator< MyTreeNode * >::More(), and Material::SetAlpha(). Referenced by TrackButton::Create(), Title::Create(), and Demo::Demo(). |
|
Active/desactive le blending sur toute les faces.
Definition at line 144 of file control.cpp. References MyTreeNode< T >::childs, MyTreeNode< T >::elem, faceNode, MyListIterator< MyTreeNode * >::GetElem(), MyList< MyTreeNode * >::i, and MyListIterator< MyTreeNode * >::More(). Referenced by Tutorial::LayoutDemo::ConfigTreeButton(), Slider::Create(), and Tutorial::UniversDemo::SetFace(). |
|
Definition at line 169 of file control.cpp. References MyTreeNode< T >::childs, MyTreeNode< T >::elem, faceNode, MyListIterator< MyTreeNode * >::GetElem(), MyList< MyTreeNode * >::i, Face::line, Face::lineMaterial, MyListIterator< MyTreeNode * >::More(), and Material::SetDS(). |
|
Utilisé uu Create du control, fait la config du parent.
Definition at line 50 of file control.cpp. References ce, MyTreeNode< T >::elem, faceNode, FaceNode, MyTree< Face >::GetCurrent(), parentFace, ControlEngine::Peek(), ControlEngine::primitive, and Primitive::tree. Referenced by Window::Create(), Univers::Create(), TrackButton::Create(), Title::Create(), Tip::Create(), TextBox::Create(), Slider::Create(), MasterContainer::Create(), Container::Create(), and Button::Create(). |
|
place un taille
Definition at line 227 of file control.cpp. References BOOL(), MyTreeNode< T >::elem, and faceNode. Referenced by Tutorial::BaseDemo::BaseDemo(), TaskWindow::Create(), and MsgBox::Create(). |
|
Pour le debugage.
Reimplemented in Button, Container, MasterContainer, Slider, TextBox, Tip, Title, TrackButton, Univers, and Window. Definition at line 365 of file control.cpp. References MyString::AddFormat(), isView, and name. |
|
Definition at line 321 of file control.cpp. |
|
|
Definition at line 294 of file control.cpp. References BOOL(), and DOCK_INIT. Referenced by Tutorial::ApplicationDemo::ApplicationDemo(), Title::Create(), TaskWindow::Create(), Slider::Create(), Calculator::Create(), ControlEngine::DrawFPS(), Tutorial::LayoutDemo::LayoutDemo(), ResizingAndRotateControl::OnHover(), TaskWindow::Refresh(), Slider::Refresh(), Tutorial::UniversDemo::SetFace(), and Tutorial::WindowDemo::WindowDemo(). |
|
Definition at line 303 of file control.cpp. References BOOL(), and DOCK_INIT. Referenced by Tutorial::ApplicationDemo::ApplicationDemo(), Title::Create(), Slider::Create(), Tutorial::Create(), Tutorial::LayoutDemo::LayoutDemo(), ResizingAndRotateControl::OnHover(), Univers::OnKeyUp(), Tutorial::UniversDemo::SetFace(), and Tutorial::WindowDemo::WindowDemo(). |
|
Definition at line 285 of file control.cpp. References BOOL(), and DOCK_INIT. Referenced by Tutorial::ApplicationDemo::ApplicationDemo(), Tutorial::BaseDemo::BaseDemo(), TaskWindow::Create(), Tutorial::Create(), Tutorial::LayoutDemo::LayoutDemo(), ResizingAndRotateControl::OnHover(), Tutorial::UniversDemo::SetFace(), and Tutorial::WindowDemo::WindowDemo(). |
|
Definition at line 353 of file control.cpp. |
|
|
Definition at line 276 of file control.cpp. References BOOL(), and DOCK_INIT. Referenced by Tutorial::ApplicationDemo::ApplicationDemo(), MsgBox::Create(), Calculator::Create(), Tutorial::Create(), ControlEngine::DrawFPS(), Tutorial::FaceDemo::FaceDemo(), Tutorial::LayoutDemo::LayoutDemo(), ResizingAndRotateControl::OnHover(), TaskWindow::Refresh(), Tutorial::UniversDemo::SetFace(), and Tutorial::WindowDemo::WindowDemo(). |
|
list de toute les instances de control
Definition at line 29 of file control_instance.h. |
|
|
Definition at line 246 of file control.h. Referenced by Slider::Create(), Tutorial::FaceDemo::FaceDemo(), Find(), ValueEditors::MakeElemControlStruct(), and Tutorial::UniversDemo::UniversDemo(). |
|
Definition at line 31 of file control_instance.h. Referenced by OnMouseMove(). |
|
Definition at line 249 of file control.h. Referenced by ValueEditors::MakeElemControlStruct(). |
|
Definition at line 250 of file control.h. Referenced by Control(), ValueEditors::MakeElemControlStruct(), operator=(), and ToString(). |
|
le boutton a t'il ete appuyé sur ce focus (gestion de mouse.left.click)
Definition at line 34 of file control_instance.h. Referenced by Control(), OnLButtonDown(), OnLButtonUp(), OverIn(), and OverOut(). |
|
le boutton a t'il ete appuyé sur ce focus (gestion de mouse.mid.click)
Definition at line 36 of file control_instance.h. Referenced by Control(), OnMButtonDown(), OnMButtonUp(), OverIn(), and OverOut(). |
|
Definition at line 248 of file control.h. Referenced by ValueEditors::MakeDebugControlStruct(), ValueEditors::MakeElemControlStruct(), MsgBox::MsgBox(), Univers::OnOverIn(), Title::OnOverIn(), TextBox::OnOverIn(), Button::OnOverIn(), Univers::OnOverOut(), TrackButton::OnOverOut(), Title::OnOverOut(), Button::OnOverOut(), OverIn(), OverOut(), Picking::Test(), and Title::Title(). |
|
Definition at line 30 of file control_instance.h. Referenced by Control(). |
|
|
control parent
Definition at line 252 of file control.h. Referenced by ValueEditors::MakeElemControlStruct(). |
|
face du control parent
Definition at line 253 of file control.h. Referenced by Control(), ValueEditors::MakeElemControlStruct(), operator=(), and SetParent(). |
|
le boutton a t'il ete appuyé sur ce focus (gestion de mouse.right.click)
Definition at line 35 of file control_instance.h. Referenced by Control(), OnRButtonDown(), OnRButtonUp(), OverIn(), and OverOut(). |
|
temp avant envois du message sleeper
Definition at line 251 of file control.h. Referenced by Control(), ValueEditors::MakeElemControlStruct(), OnMouseMove(), and operator=(). |
|
cronos des lancement des autoWheel
Definition at line 32 of file control_instance.h. Referenced by OnMButtonUp(), and OnMouseWheel(). |
|
cronos pour savoir si on est sleeped
Definition at line 33 of file control_instance.h. Referenced by OnMouseMove(). |