1 /*
2     Copyright (c) 2008-2009 NetAllied Systems GmbH
3 
4     This file is part of COLLADASaxFrameworkLoader.
5 
6     Licensed under the MIT Open Source License,
7     for details please see LICENSE file or the website
8     http://www.opensource.org/licenses/mit-license.php
9 */
10 
11 
12 #ifndef __COLLADASAXFWL_LIBRARYEFFECTSLOADER14_H__
13 #define __COLLADASAXFWL_LIBRARYEFFECTSLOADER14_H__
14 
15 
16 #include "COLLADASaxFWLPrerequisites.h"
17 #include "COLLADASaxFWLLibraryEffectsLoader.h"
18 #include "COLLADASaxFWLLibraryImagesLoader14.h"
19 
20 
21 namespace COLLADASaxFWL
22 {
23 
24 
25 class IFilePartLoader;
26 
27 
28 class LibraryEffectsLoader14 : public LibraryImagesLoader14
29 {
30 private:
31 LibraryEffectsLoader* mLoader;
32 
33 public:
LibraryEffectsLoader14(LibraryEffectsLoader * loader)34 LibraryEffectsLoader14(LibraryEffectsLoader* loader)
35  : LibraryImagesLoader14(static_cast<LibraryImagesLoader*>(loader)), mLoader(loader)
36 {}
37 
38 
39 virtual bool end__library_effects();
40 
41 virtual bool begin__effect( const COLLADASaxFWL14::effect__AttributeData& attributeData );
42 
43 virtual bool end__effect();
44 
45 virtual bool begin__profile_COMMON( const COLLADASaxFWL14::profile_COMMON__AttributeData& attributeData );
46 
47 virtual bool end__profile_COMMON();
48 
49 virtual bool begin__newparam____fx_newparam_common( const COLLADASaxFWL14::newparam____fx_newparam_common__AttributeData& attributeData );
50 
51 virtual bool begin__newparam____common_newparam_type( const COLLADASaxFWL14::newparam____common_newparam_type__AttributeData& attributeData );
52 
53 virtual bool end__newparam____common_newparam_type();
54 
55 virtual bool begin__newparam____cg_newparam( const COLLADASaxFWL14::newparam____cg_newparam__AttributeData& attributeData );
56 
57 virtual bool begin__surface____fx_surface_common( const COLLADASaxFWL14::surface____fx_surface_common__AttributeData& attributeData );
58 
59 virtual bool end__surface____fx_surface_common();
60 
61 virtual bool begin__init_from____fx_surface_init_from_common( const COLLADASaxFWL14::init_from____fx_surface_init_from_common__AttributeData& attributeData );
62 
63 virtual bool end__init_from____fx_surface_init_from_common();
64 
65 virtual bool data__init_from____fx_surface_init_from_common( const ParserChar* data, size_t length );
66 
67 virtual bool begin__sampler2D____fx_sampler2D_common();
68 
69 virtual bool end__sampler2D____fx_sampler2D_common();
70 
71 virtual bool begin__source____NCName();
72 
73 virtual bool end__source____NCName();
74 
75 virtual bool data__source____NCName( const ParserChar* data, size_t length );
76 
77 virtual bool begin__wrap_s____fx_sampler_wrap_common();
78 
79 virtual bool end__wrap_s____fx_sampler_wrap_common();
80 
81 virtual bool data__wrap_s____fx_sampler_wrap_common( const COLLADASaxFWL14::ENUM__fx_sampler_wrap_common value );
82 
83 virtual bool begin__wrap_t____fx_sampler_wrap_common();
84 
85 virtual bool end__wrap_t____fx_sampler_wrap_common();
86 
87 virtual bool data__wrap_t____fx_sampler_wrap_common( const COLLADASaxFWL14::ENUM__fx_sampler_wrap_common value );
88 
89 virtual bool begin__profile_COMMON__technique( const COLLADASaxFWL14::profile_COMMON__technique__AttributeData& attributeData );
90 
91 virtual bool end__profile_COMMON__technique();
92 
93 virtual bool begin__profile_COMMON__technique__constant();
94 
95 virtual bool end__profile_COMMON__technique__constant();
96 
97 virtual bool begin__lambert();
98 
99 virtual bool end__lambert();
100 
101 virtual bool begin__phong();
102 
103 virtual bool end__phong();
104 
105 virtual bool begin__emission();
106 
107 virtual bool end__emission();
108 
109 virtual bool begin__ambient____common_color_or_texture_type();
110 
111 virtual bool end__ambient____common_color_or_texture_type();
112 
113 virtual bool begin__diffuse();
114 
115 virtual bool end__diffuse();
116 
117 virtual bool begin__specular();
118 
119 virtual bool end__specular();
120 
121 virtual bool begin__shininess();
122 
123 virtual bool end__shininess();
124 
125 virtual bool begin__reflective();
126 
127 virtual bool end__reflective();
128 
129 virtual bool begin__reflectivity();
130 
131 virtual bool end__reflectivity();
132 
133 virtual bool begin__transparency();
134 
135 virtual bool end__transparency();
136 
137 virtual bool begin__index_of_refraction();
138 
139 virtual bool end__index_of_refraction();
140 
141 virtual bool begin__blinn();
142 
143 virtual bool end__blinn();
144 
145 virtual bool begin__transparent( const COLLADASaxFWL14::transparent__AttributeData& attributeData );
146 
147 virtual bool end__transparent();
148 
149 virtual bool begin__common_color_or_texture_type____color( const COLLADASaxFWL14::common_color_or_texture_type____color__AttributeData& attributeData );
150 
151 virtual bool end__common_color_or_texture_type____color();
152 
153 virtual bool data__common_color_or_texture_type____color( const float* data, size_t length );
154 
155 virtual bool begin__common_float_or_param_type____float( const COLLADASaxFWL14::common_float_or_param_type____float__AttributeData& attributeData );
156 
157 virtual bool end__common_float_or_param_type____float();
158 
159 virtual bool data__common_float_or_param_type____float( float value );
160 
161 virtual bool begin__texture( const COLLADASaxFWL14::texture__AttributeData& attributeData );
162 
163 virtual bool end__texture();
164 
165 virtual bool begin__technique( const COLLADASaxFWL14::technique__AttributeData& attributeData );
166 
167 virtual bool end__technique();
168 
169     virtual bool begin__minfilter();
170     virtual bool end__minfilter();
171     virtual bool data__minfilter( const COLLADASaxFWL14::ENUM__fx_sampler_filter_common value );
172 
173 private:
174 /** Disable default copy ctor. */
175 LibraryEffectsLoader14(const LibraryEffectsLoader14&);
176 /** Disable default assignment operator. */
177 const LibraryEffectsLoader14& operator=(const LibraryEffectsLoader14&);
178 };
179 }
180 #endif // __COLLADASAXFWL_LIBRARYEFFECTSLOADER14_H__
181