~holger-seelig/cobweb.js/trunk

« back to all changes in this revision

Viewing changes to src/cobweb/Configuration/SupportedProfiles.js

  • Committer: Holger Seelig
  • Date: 2017-08-22 04:53:24 UTC
  • Revision ID: holger.seelig@yahoo.de-20170822045324-4of4xxgt79669gbt
Switched to npm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: JavaScript; coding: utf-8; tab-width: 3; indent-tabs-mode: tab; c-basic-offset: 3 -*-
 
2
 *******************************************************************************
 
3
 *
 
4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 
5
 *
 
6
 * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011.
 
7
 *
 
8
 * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
 
9
 *
 
10
 * The copyright notice above does not evidence any actual of intended
 
11
 * publication of such source code, and is an unpublished work by create3000.
 
12
 * This material contains CONFIDENTIAL INFORMATION that is the property of
 
13
 * create3000.
 
14
 *
 
15
 * No permission is granted to copy, distribute, or create derivative works from
 
16
 * the contents of this software, in whole or in part, without the prior written
 
17
 * permission of create3000.
 
18
 *
 
19
 * NON-MILITARY USE ONLY
 
20
 *
 
21
 * All create3000 software are effectively free software with a non-military use
 
22
 * restriction. It is free. Well commented source is provided. You may reuse the
 
23
 * source in any way you please with the exception anything that uses it must be
 
24
 * marked to indicate is contains 'non-military use only' components.
 
25
 *
 
26
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 
27
 *
 
28
 * Copyright 2015, 2016 Holger Seelig <holger.seelig@yahoo.de>.
 
29
 *
 
30
 * This file is part of the Cobweb Project.
 
31
 *
 
32
 * Cobweb is free software: you can redistribute it and/or modify it under the
 
33
 * terms of the GNU General Public License version 3 only, as published by the
 
34
 * Free Software Foundation.
 
35
 *
 
36
 * Cobweb is distributed in the hope that it will be useful, but WITHOUT ANY
 
37
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 
38
 * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
 
39
 * details (a copy is included in the LICENSE file that accompanied this code).
 
40
 *
 
41
 * You should have received a copy of the GNU General Public License version 3
 
42
 * along with Cobweb.  If not, see <http://www.gnu.org/licenses/gpl.html> for a
 
43
 * copy of the GPLv3 License.
 
44
 *
 
45
 * For Silvio, Joy and Adi.
 
46
 *
 
47
 ******************************************************************************/
 
48
 
 
49
 
 
50
define ([
 
51
        "jquery",
 
52
        "cobweb/Configuration/ProfileInfo",
 
53
        "cobweb/Configuration/ProfileInfoArray",
 
54
        "cobweb/Configuration/ComponentInfoArray",
 
55
        "cobweb/Browser/Networking/urls",
 
56
],
 
57
function ($,
 
58
          ProfileInfo,
 
59
          ProfileInfoArray,
 
60
          ComponentInfoArray,
 
61
          urls)
 
62
{
 
63
"use strict";
 
64
 
 
65
        return function (browser)
 
66
        {
 
67
                function add (title, name, components)
 
68
                {
 
69
                        supportedProfiles .add (name, new ProfileInfo (name, title, urls .povider, new ComponentInfoArray (browser, components)));
 
70
                }
 
71
 
 
72
                var
 
73
                        supportedComponents = browser .supportedComponents,
 
74
                        supportedProfiles   = new ProfileInfoArray ();
 
75
 
 
76
                add ("Computer-Aided Design (CAD) interchange", "CADInterchange", [
 
77
                        supportedComponents ["Core"],
 
78
                        supportedComponents ["Networking"],
 
79
                        supportedComponents ["Grouping"],
 
80
                        supportedComponents ["Rendering"],
 
81
                        supportedComponents ["Shape"],
 
82
                        supportedComponents ["Lighting"],
 
83
                        supportedComponents ["Texturing"],
 
84
                        supportedComponents ["Navigation"],
 
85
                        supportedComponents ["Shaders"],
 
86
                        supportedComponents ["CADGeometry"],
 
87
                ]);
 
88
        
 
89
                add ("Core", "Core", [
 
90
                        supportedComponents ["Core"],
 
91
                ]);
 
92
        
 
93
                add ("Full", "Full", [
 
94
                        supportedComponents ["Core"],
 
95
                        supportedComponents ["Time"],
 
96
                        supportedComponents ["Networking"],
 
97
                        supportedComponents ["Grouping"],
 
98
                        supportedComponents ["Rendering"],
 
99
                        supportedComponents ["Shape"],
 
100
                        supportedComponents ["Geometry3D"],
 
101
                        supportedComponents ["Geometry2D"],
 
102
                        supportedComponents ["Text"],
 
103
                        supportedComponents ["Sound"],
 
104
                        supportedComponents ["Lighting"],
 
105
                        supportedComponents ["Texturing"],
 
106
                        supportedComponents ["Interpolation"],
 
107
                        supportedComponents ["PointingDeviceSensor"],
 
108
                        supportedComponents ["KeyDeviceSensor"],
 
109
                        supportedComponents ["EnvironmentalSensor"],
 
110
                        supportedComponents ["Navigation"],
 
111
                        supportedComponents ["EnvironmentalEffects"],
 
112
                        supportedComponents ["Geospatial"],
 
113
                        supportedComponents ["H-Anim"],
 
114
                        supportedComponents ["NURBS"],
 
115
                        supportedComponents ["DIS"],
 
116
                        supportedComponents ["Scripting"],
 
117
                        supportedComponents ["EventUtilities"],
 
118
                        supportedComponents ["Shaders"],
 
119
                        supportedComponents ["CADGeometry"],
 
120
                        supportedComponents ["Texturing3D"],
 
121
                        supportedComponents ["CubeMapTexturing"],
 
122
                        supportedComponents ["Layering"],
 
123
                        supportedComponents ["Layout"],
 
124
                        supportedComponents ["RigidBodyPhysics"],
 
125
                        supportedComponents ["Picking"],
 
126
                        supportedComponents ["Followers"],
 
127
                        supportedComponents ["ParticleSystems"], /*,
 
128
                        supportedComponents ["VolumeRendering"], */
 
129
                ]);
 
130
        
 
131
                add ("Immersive", "Immersive", [
 
132
                        supportedComponents ["Core"],
 
133
                        supportedComponents ["Time"],
 
134
                        supportedComponents ["Networking"],
 
135
                        supportedComponents ["Grouping"],
 
136
                        supportedComponents ["Rendering"],
 
137
                        supportedComponents ["Shape"],
 
138
                        supportedComponents ["Geometry3D"],
 
139
                        supportedComponents ["Geometry2D"],
 
140
                        supportedComponents ["Text"],
 
141
                        supportedComponents ["Sound"],
 
142
                        supportedComponents ["Lighting"],
 
143
                        supportedComponents ["Texturing"],
 
144
                        supportedComponents ["Interpolation"],
 
145
                        supportedComponents ["PointingDeviceSensor"],
 
146
                        supportedComponents ["KeyDeviceSensor"],
 
147
                        supportedComponents ["EnvironmentalSensor"],
 
148
                        supportedComponents ["Navigation"],
 
149
                        supportedComponents ["EnvironmentalEffects"],
 
150
                        supportedComponents ["Scripting"],
 
151
                        supportedComponents ["EventUtilities"],
 
152
                ]);
 
153
        
 
154
                add ("Interactive", "Interactive", [
 
155
                        supportedComponents ["Core"],
 
156
                        supportedComponents ["Time"],
 
157
                        supportedComponents ["Networking"],
 
158
                        supportedComponents ["Grouping"],
 
159
                        supportedComponents ["Rendering"],
 
160
                        supportedComponents ["Shape"],
 
161
                        supportedComponents ["Geometry3D"],
 
162
                        supportedComponents ["Lighting"],
 
163
                        supportedComponents ["Texturing"],
 
164
                        supportedComponents ["Interpolation"],
 
165
                        supportedComponents ["PointingDeviceSensor"],
 
166
                        supportedComponents ["KeyDeviceSensor"],
 
167
                        supportedComponents ["EnvironmentalSensor"],
 
168
                        supportedComponents ["Navigation"],
 
169
                        supportedComponents ["EnvironmentalEffects"],
 
170
                        supportedComponents ["EventUtilities"],
 
171
                ]);
 
172
        
 
173
                add ("Interchange", "Interchange", [
 
174
                        supportedComponents ["Core"],
 
175
                        supportedComponents ["Time"],
 
176
                        supportedComponents ["Networking"],
 
177
                        supportedComponents ["Grouping"],
 
178
                        supportedComponents ["Rendering"],
 
179
                        supportedComponents ["Shape"],
 
180
                        supportedComponents ["Geometry3D"],
 
181
                        supportedComponents ["Lighting"],
 
182
                        supportedComponents ["Texturing"],
 
183
                        supportedComponents ["Interpolation"],
 
184
                        supportedComponents ["Navigation"],
 
185
                        supportedComponents ["EnvironmentalEffects"],
 
186
                ]);
 
187
        
 
188
        //      add ("Medical interchange", "MedicalInterchange", [
 
189
        //              supportedComponents ["Core"],
 
190
        //              supportedComponents ["Time"],
 
191
        //              supportedComponents ["Networking"],
 
192
        //              supportedComponents ["Grouping"],
 
193
        //              supportedComponents ["Rendering"],
 
194
        //              supportedComponents ["Shape"],
 
195
        //              supportedComponents ["Geometry3D"],
 
196
        //              supportedComponents ["Geometry2D"],
 
197
        //              supportedComponents ["Text"],
 
198
        //              supportedComponents ["Lighting"],
 
199
        //              supportedComponents ["Texturing"],
 
200
        //              supportedComponents ["Interpolation"],
 
201
        //              supportedComponents ["Navigation"],
 
202
        //              supportedComponents ["EnvironmentalEffects"],
 
203
        //              supportedComponents ["EventUtilities"],
 
204
        //              supportedComponents ["Texturing3D"],
 
205
        //              supportedComponents ["VolumeRendering"],
 
206
        //      ]);
 
207
        
 
208
                add ("MPEG-4 interactive", "MPEG-4", [
 
209
                        supportedComponents ["Core"],
 
210
                        supportedComponents ["Time"],
 
211
                        supportedComponents ["Networking"],
 
212
                        supportedComponents ["Grouping"],
 
213
                        supportedComponents ["Rendering"],
 
214
                        supportedComponents ["Shape"],
 
215
                        supportedComponents ["Geometry3D"],
 
216
                        supportedComponents ["Lighting"],
 
217
                        supportedComponents ["Texturing"],
 
218
                        supportedComponents ["Interpolation"],
 
219
                        supportedComponents ["PointingDeviceSensor"],
 
220
                        supportedComponents ["EnvironmentalSensor"],
 
221
                        supportedComponents ["Navigation"],
 
222
                        supportedComponents ["EnvironmentalEffects"],
 
223
                ]);
 
224
        
 
225
                Object .preventExtensions (supportedProfiles);
 
226
                Object .freeze (supportedProfiles);
 
227
                Object .seal (supportedProfiles);
 
228
        
 
229
                return supportedProfiles;
 
230
        };
 
231
});
 
 
b'\\ No newline at end of file'