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

Primitive Class Reference

Gestion des Primitive graphics (ajout de face, de cube, etc ...). More...

#include <primitive.h>

List of all members.

Public Member Functions

 Primitive ()
 ~Primitive ()
void Push ()
 Empile le node en cours.

void Pop ()
 Depile le node en cours.

FaceNodePeek ()
 Donne le node en cours.

FaceNodeGoTo (int childNumber)
FaceNodeGoTo (FaceNode *node)
FaceNodeGoToParent ()
void ViewDebug (FaceNode *node=NULL)
 Affiche dans une messageBox avec un resumée de l'arborecence logic.

BOOL Draw (BOOL isPicking)
BOOL Draw (FaceNode *node, BOOL isPicking)
FaceNodeFind (int idControl, int idFace, FaceNode *node=NULL)
void BeginContainer (int idControl, double xConstCenter, double xPercentCenter, double yConstCenter, double yPercentCenter, double xConstSize, double xPercentSize, double yConstSize, double yPercentSize)
void EndContainer ()
FaceNodeAddFace (char *name, int idControl, int idFace, BOOL view)
FaceNodeAddFace (char *name, int idControl, int idFace, BOOL view, double xConstCenter, double xPercentCenter, double yConstCenter, double yPercentCenter, double zConstCenter, double xConstSize, double xPercentSize, double yConstSize, double yPercentSize)
FaceNodeAddBox (char *name, int idControl, GLdouble depth, BOOL viewBack)
 ajoute une boite

FaceNodeAddBox (char *name, int idControl, GLdouble *depth, BOOL viewBack)
Point2D< double > GetLocalPos (FaceNode *faceNode, Point2D< double > absolutePos)
 Donne la position local etant donnée un faceNode et un point en absolue.

void GetCorners (FaceNode *faceNode, Point3D< double > *points)
void ComputeLayout (FaceNode *faceNode)
BOOL ReOrderForBlending (FaceNode *faceNode)
 experimental

void ReOrderForBlending ()

Public Attributes

MyTree< Facetree


Detailed Description

Gestion des Primitive graphics (ajout de face, de cube, etc ...).

Definition at line 35 of file primitive.h.


Constructor & Destructor Documentation

Primitive::Primitive  ) 
 

Definition at line 27 of file primitive.cpp.

Primitive::~Primitive  ) 
 

Definition at line 32 of file primitive.cpp.

References MyTree< Face >::SuprAll(), and tree.


Member Function Documentation

FaceNode * Primitive::AddBox char *  name,
int  idControl,
GLdouble *  depth,
BOOL  viewBack
 

Definition at line 311 of file primitive.cpp.

References AddBox(), and FaceNode.

FaceNode * Primitive::AddBox char *  name,
int  idControl,
GLdouble  depth,
BOOL  viewBack
 

ajoute une boite

Une boite est contenu dans une face non visible afin de pouvoir faire des rotation et translation libre Remarque, elle prend les dimentions de sa face englobante

// example d'utilisation primitive.AddFace("boite",1,0,0,0.5,0,0.5,0,50,0,50,FALSE); FaceNode *node = primitive.AddBox(1,2,50); node->childs[FACE_FRONT]->textures = ...

Definition at line 305 of file primitive.cpp.

References FaceNode.

Referenced by AddBox().

FaceNode * Primitive::AddFace char *  name,
int  idControl,
int  idFace,
BOOL  view,
double  xConstCenter,
double  xPercentCenter,
double  yConstCenter,
double  yPercentCenter,
double  zConstCenter,
double  xConstSize,
double  xPercentSize,
double  yConstSize,
double  yPercentSize
 

Definition at line 254 of file primitive.cpp.

References AddFace(), Face::ConfigDynamicLayout(), Face::ConfigStaticLayout(), MyTreeNode< T >::elem, FaceNode, and MyTreeNode< T >::parent.

FaceNode * Primitive::AddFace char *  name,
int  idControl,
int  idFace,
BOOL  view
 

Definition at line 247 of file primitive.cpp.

References MyTree< Face >::Add(), FaceNode, Face::Set(), and tree.

Referenced by AddFace(), BeginContainer(), Univers::Create(), Tip::Create(), Slider::Create(), MasterContainer::Create(), and Tutorial::FaceDemo::FaceDemo().

void Primitive::BeginContainer int  idControl,
double  xConstCenter,
double  xPercentCenter,
double  yConstCenter,
double  yPercentCenter,
double  xConstSize,
double  xPercentSize,
double  yConstSize,
double  yPercentSize
 

Definition at line 270 of file primitive.cpp.

References AddFace(), GoTo(), and Push().

void Primitive::ComputeLayout FaceNode faceNode  ) 
 

Definition at line 89 of file primitive.cpp.

References MyTreeNode< T >::elem, FaceNode, and MyTreeNode< T >::parent.

Referenced by TreeView::Draw(), and Slider::Refresh().

BOOL Primitive::Draw FaceNode node,
BOOL  isPicking
 

Definition at line 170 of file primitive.cpp.

References BOOL(), MyTreeNode< T >::childs, Face::ComputeLayout(), Draw(), Face::Draw(), MyTreeNode< T >::elem, FaceNode, MyListIterator< MyTreeNode * >::GetElem(), MyList< MyTreeNode * >::GetNbElem(), MyList< MyTreeNode * >::i, MyListIterator< MyTreeNode * >::More(), Face::MovingInside(), Face::ratioXY, Face::scale, Point3D< GLdouble >::x, and Point3D< GLdouble >::y.

BOOL Primitive::Draw BOOL  isPicking  ) 
 

Definition at line 162 of file primitive.cpp.

References BOOL(), MyTreeNode< T >::elem, FaceNode, MyTree< Face >::GetRoot(), and tree.

Referenced by Draw(), and ControlEngine::DrawScene().

void Primitive::EndContainer  ) 
 

Definition at line 287 of file primitive.cpp.

References Pop().

FaceNode * Primitive::Find int  idControl,
int  idFace,
FaceNode node = NULL
 

Definition at line 233 of file primitive.cpp.

References MyTreeNode< T >::childs, MyTreeNode< T >::elem, FaceNode, MyListIterator< MyTreeNode * >::GetElem(), MyTree< Face >::GetRoot(), MyList< MyTreeNode * >::i, MyListIterator< MyTreeNode * >::More(), and tree.

Referenced by DebugStructProc().

void Primitive::GetCorners FaceNode faceNode,
Point3D< double > *  points
 

Definition at line 124 of file primitive.cpp.

References ControlEngine::ApplyScaleView(), ce, ControlEngine::depth, FaceNode, and points.

Referenced by Control::GetCorners(), and GetLocalPos().

Point2D< double > Primitive::GetLocalPos FaceNode faceNode,
Point2D< double >  absolutePos
 

Donne la position local etant donnée un faceNode et un point en absolue.

Definition at line 136 of file primitive.cpp.

References c, MyTreeNode< T >::elem, FaceNode, GetCorners(), Point2D< T >::GetRelativePtOnQuadrilatere(), p, and Point2D< T >::Set().

Referenced by Control::GetLocalPos().

FaceNode * Primitive::GoTo FaceNode node  ) 
 

Definition at line 52 of file primitive.cpp.

References FaceNode, MyTree< Face >::GoTo(), and tree.

FaceNode * Primitive::GoTo int  childNumber  ) 
 

Definition at line 47 of file primitive.cpp.

References FaceNode, MyTree< Face >::GoToChild(), and tree.

Referenced by TaskWindow::Add(), Tutorial::BaseDemo::BaseDemo(), BeginContainer(), Window::Create(), Title::Create(), TaskWindow::Create(), MsgBox::Create(), Calculator::Create(), Tutorial::Create(), Tutorial::LayoutDemo::CreateTreeButton(), TreeView::Draw(), Tutorial::LayoutDemo::LayoutDemo(), ResizingAndRotateControl::OnHover(), ControlEngine::Push(), and Tutorial::UniversDemo::SetFace().

FaceNode * Primitive::GoToParent  ) 
 

Definition at line 57 of file primitive.cpp.

References FaceNode, MyTree< Face >::GoToParent(), and tree.

Referenced by MsgBox::Create(), and Tutorial::LayoutDemo::CreateTreeButton().

FaceNode * Primitive::Peek  ) 
 

Donne le node en cours.

Definition at line 62 of file primitive.cpp.

References FaceNode, MyList< FaceNode * >::GetNbElem(), and MyStack< FaceNode * >::Peek().

void Primitive::Pop  ) 
 

Depile le node en cours.

Definition at line 42 of file primitive.cpp.

References MyTree< Face >::GoTo(), MyStack< FaceNode * >::Pop(), and tree.

Referenced by EndContainer(), ControlEngine::Pop(), and Tutorial::WindowDemo::WindowDemo().

void Primitive::Push  ) 
 

Empile le node en cours.

Definition at line 37 of file primitive.cpp.

References MyTree< Face >::GetCurrent(), MyStack< FaceNode * >::Push(), and tree.

Referenced by BeginContainer(), and ControlEngine::Push().

void Primitive::ReOrderForBlending  ) 
 

Definition at line 96 of file primitive.cpp.

References MyTree< Face >::GetRoot(), and tree.

Referenced by ReOrderForBlending().

BOOL Primitive::ReOrderForBlending FaceNode faceNode  ) 
 

experimental

Definition at line 102 of file primitive.cpp.

References MyListItem< T >::after, BOOL(), MyTreeNode< T >::childs, MyTreeNode< T >::elem, MyListItem< T >::elem, FaceNode, MyList< MyTreeNode * >::first, MyTreeNode< T >::MoveToLastChild(), and ReOrderForBlending().

void Primitive::ViewDebug FaceNode node = NULL  ) 
 

Affiche dans une messageBox avec un resumée de l'arborecence logic.

Definition at line 71 of file primitive.cpp.

References MyTreeNode< T >::childs, MyTreeNode< T >::elem, FaceNode, MyListIterator< MyTreeNode * >::GetElem(), MyTree< Face >::GetRoot(), MyList< MyTreeNode * >::i, level, MyListIterator< MyTreeNode * >::More(), and tree.

Referenced by Univers::OnKeyDown().


Member Data Documentation

MyTree<Face> Primitive::tree
 

Definition at line 43 of file primitive.h.

Referenced by AddFace(), DebugStructProc(), Draw(), Find(), GoTo(), GoToParent(), ValueEditors::MakeDebugControlStruct(), ValueEditors::MakeDebugFaceStruct(), Title::OnMax(), Pop(), Push(), ReOrderForBlending(), Control::SetParent(), ViewDebug(), and ~Primitive().


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