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

Univers Class Reference

L'univers est le conteneur 3D general (le desktop en 3D). More...

#include <univers.h>

Inheritance diagram for Univers:

Control List of all members.

Public Member Functions

 Univers ()
 ~Univers ()
virtual void Create ()
void ToString (MyString &str)
 Pour le debugage.

void ExitQuestion ()
void HomePosition ()
int OnKeyDown (StateKey *key, int face)
int OnKeyUp (StateKey *key, int face)
int OnMouseMove (StateMouse *mouse, int deltaX, int deltaY, int face)
int OnMouseWheel (StateMouse *mouse, int face)
int OnLButtonDown (StateMouse *mouse, int face)
 Un simple click.

int OnLButtonUp (StateMouse *mouse, int face)
int OnMButtonDown (StateMouse *mouse, int face)
int OnMButtonUp (StateMouse *mouse, int face)
int OnRefresh (Timer *)
 A chaque rafraichisement graphique, verifie s'il y a des deplacements rapides.

int OnOverIn (Control *, int)
int OnOverOut (Control *, int)
int OnExit ()

Public Attributes

BOOL isOnMenu
 est on dans le menu F11 ?

BOOL isMenuUsing
 y a t'il eut un element du menu utilisée ?

StateMouse oldMouse

Detailed Description

L'univers est le conteneur 3D general (le desktop en 3D).

Definition at line 32 of file univers.h.


Constructor & Destructor Documentation

Univers::Univers  ) 
 

Definition at line 33 of file univers.cpp.

References EventMouseButton::down, EventKey::down, EventOver::in, isMenuUsing, isOnMenu, EventControl::key, EventMouse::left, EventMouse::mid, EventControl::mouse, EventMouse::move, EventOver::out, EventControl::over, EventMouseButton::up, EventKey::up, and EventMouse::wheel.

Univers::~Univers  ) 
 

Definition at line 54 of file univers.cpp.

References ce, Timer::onTimer, and ControlEngine::timerRefresh.


Member Function Documentation

void Univers::Create  )  [virtual]
 

Reimplemented from Control.

Definition at line 61 of file univers.cpp.

References Primitive::AddFace(), ce, ControlEngine::primitive, and Control::SetParent().

Referenced by ControlEngine::ControlEngine().

void Univers::ExitQuestion  ) 
 

Definition at line 158 of file univers.cpp.

References MsgBox::btnCancel, MsgBox::btnOk, ce, EventButton::click, MsgBox::Create(), ControlEngine::masterContainer, Control::Move(), Button::onButton, OnExit(), ControlEngine::Pop(), ControlEngine::Push(), Button::SetText(), TextBox::SetText(), MsgBox::txtInfo, Control::XDockCenter(), and Control::YDockCenter().

Referenced by Tutorial::OnEnd(), and OnKeyUp().

void Univers::HomePosition  ) 
 

Definition at line 252 of file univers.cpp.

References MyTreeNode< T >::elem.

Referenced by Tutorial::Demo::Demo(), and OnKeyUp().

int Univers::OnExit  ) 
 

Definition at line 173 of file univers.cpp.

References ce, Debug0Param, Timer::onTimer, and ControlEngine::timerRefresh.

Referenced by ExitQuestion().

int Univers::OnKeyDown StateKey key,
int  face
 

Reimplemented from Control.

Definition at line 69 of file univers.cpp.

References PolygonMode::back, BOOL(), ce, StateKey::code, DebugKey2, DebugStructProc(), Region::enable, ControlEngine::enableAntiAliasing, ControlEngine::enableBackGround, ControlEngine::enableFPS, Screen::enableFullScreen, ControlEngine::enableLightView, ControlEngine::enablePicking, ControlEngine::enableRepere, Screen::enableTitle, fill, PolygonMode::front, StateKey::GetState(), ControlEngine::hInst, IDD_DEBUG_STRUCT, isMenuUsing, isOnMenu, point, ControlEngine::polygonMode, PolygonModeType, ControlEngine::primitive, Screen::region, Control::RotateQuaternion(), ControlEngine::screenMain, Screen::Update(), PolygonMode::Use(), and Primitive::ViewDebug().

int Univers::OnKeyUp StateKey key,
int  face
 

Reimplemented from Control.

Definition at line 188 of file univers.cpp.

References align_begin, align_center, ce, StateKey::code, Tip::Create(), DebugKey2, ExitQuestion(), HomePosition(), isMenuUsing, isOnMenu, ControlEngine::masterContainer, ControlEngine::Pop(), ControlEngine::Push(), ControlEngine::ScreenShot(), Text3D::SetAlign(), ssBlending, ssDepth, ssLuminance, ssRGB, Tip::text, Control::XDockRight(), and Control::YDockCenter().

int Univers::OnLButtonDown StateMouse mouse,
int  face
 

Un simple click.

Reimplemented from Control.

Definition at line 278 of file univers.cpp.

References Cursor::ApplyTypes(), ce, ControlEngine::cursor, and DebugMouse2.

int Univers::OnLButtonUp StateMouse mouse,
int  face
 

Reimplemented from Control.

Definition at line 286 of file univers.cpp.

References Cursor::ApplyTypes(), ce, ControlEngine::cursor, Cursor::curType, DebugMouse2, and Cursor::leftType.

int Univers::OnMButtonDown StateMouse mouse,
int  face
 

Reimplemented from Control.

Definition at line 294 of file univers.cpp.

References Cursor::ApplyTypes(), ce, ControlEngine::cursor, cursorNoChange, cursorRepere, and DebugMouse2.

int Univers::OnMButtonUp StateMouse mouse,
int  face
 

Reimplemented from Control.

Definition at line 308 of file univers.cpp.

References Cursor::ApplyTypes(), ce, ControlEngine::cursor, cursorRepere, Cursor::curType, DebugMouse2, and Cursor::midType.

int Univers::OnMouseMove StateMouse mouse,
int  deltaX,
int  deltaY,
int  face
 

Definition at line 258 of file univers.cpp.

References StateMouse::GetNbButtonPush(), StateMouse::leftBtn, StateMouse::midBtn, Control::Move(), and Control::RotateQuaternion().

int Univers::OnMouseWheel StateMouse mouse,
int  face
 

Reimplemented from Control.

Definition at line 271 of file univers.cpp.

References DebugMouse2, Control::Move(), and StateMouse::wheelDelta.

int Univers::OnOverIn Control ,
int 
 

Definition at line 337 of file univers.cpp.

References Cursor::ApplyTypes(), ce, ControlEngine::cursor, cursorNothing, cursorRepere, Debug2Param, Control::name, Timer::onTimer, and ControlEngine::timerRefresh.

int Univers::OnOverOut Control ,
int 
 

Definition at line 345 of file univers.cpp.

References ce, Debug2Param, Control::name, Timer::onTimer, and ControlEngine::timerRefresh.

int Univers::OnRefresh Timer  ) 
 

A chaque rafraichisement graphique, verifie s'il y a des deplacements rapides.

Definition at line 319 of file univers.cpp.

References Timer::GetDeltaTime(), StateKey::GetState(), and Control::Move().

void Univers::ToString MyString str  ) 
 

Pour le debugage.

Reimplemented from Control.

Definition at line 354 of file univers.cpp.

References MyString::AddFormat().


Member Data Documentation

BOOL Univers::isMenuUsing
 

y a t'il eut un element du menu utilisée ?

Definition at line 42 of file univers.h.

Referenced by OnKeyDown(), OnKeyUp(), and Univers().

BOOL Univers::isOnMenu
 

est on dans le menu F11 ?

Definition at line 41 of file univers.h.

Referenced by OnKeyDown(), OnKeyUp(), and Univers().

StateMouse Univers::oldMouse
 

Definition at line 43 of file univers.h.


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