Moka controlers
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
controler-views.hh
Go to the documentation of this file.
1 /*
2  * lib-controler : Un contrôleur générique de scène 3D.
3  * Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC
4  * http://www.sic.sp2mi.univ-poitiers.fr/
5  * Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS,
6  * guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/
7  *
8  * This file is part of lib-controler
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 //******************************************************************************
25 // Ce fichier est une partie de "controler.hh".
26 //******************************************************************************
27 public:
28 virtual void viewUpdate(TViewId AViewId);
29 void viewInit (TViewId AViewId);
30 void viewDraw (TViewId AViewId);
31 
32 TViewId viewCreate (TView AViewType);
33 TViewId viewCreateShare(TView AViewType, TViewId AView);
34 void viewDestroy (TViewId AViewId);
35 
36 void viewAddPrecompile (TViewId AViewId, TPrecompile APrecompileType);
37 void viewRemovePrecompile (TViewId AViewId, TPrecompile APrecompileType);
38 void viewAddOrRemovePrecompile(TViewId AViewId, TPrecompile APrecompileType);
39 
40 bool viewIsEnabledPrecompile(TViewId AViewId, TPrecompile APrecom);
41 void viewEnablePrecompile (TViewId AViewId, TPrecompile APrecom);
42 void viewDisablePrecompile (TViewId AViewId, TPrecompile APrecom);
43 void viewTogglePrecompile (TViewId AViewId, TPrecompile APrecom);
44 
47 
50 
52 void viewGroup(TViewId AViewId1, TViewId AViewId2);
53 
55 void viewGroupAll(TViewId AViewId);
56 
59 void viewUngroup(TViewId AViewId);
60 
62 void viewUngroupAll();
63 
65 void viewGroupPrecompiles(TViewId AViewId1, TViewId AViewId2);
66 
68 void viewGroupAllPrecompiles(TViewId AViewId);
69 
71 void viewUngroupPrecompiles(TViewId AViewId);
72 
75 
78 void viewGroupPrecompile(TViewId AViewId1, TViewId AViewId2,
79  TPrecompile APrecompileType);
80 
82 void viewUngroupPrecompile(TViewId AViewId, TPrecompile APrecompileType);
83 
86 void viewGroupParameter(TViewId AViewId1, TViewId AViewId2,
87  TParameter AParameterType);
88 
90 void viewGroupAllParameter(TViewId AViewId, TParameter AParameterType);
91 
93 void viewUngroupParameter(TViewId AViewId, TParameter AParameterType);
94 
96 void viewUngroupAllParameter(TParameter AParameterType);
97 
98 void viewEnable (TViewId AViewId);
99 void viewDisable (TViewId AViewId);
100 bool viewIsEnabled(TViewId AViewId);
101 
102 protected:
103 std::vector<CViewPrecompile *> FViews;
105 //******************************************************************************