#include <3dsmodel.h>
Collaboration diagram for M3DScene:

Public Member Functions | |
| void | addMaterial (M3DMaterial *) |
| void | addModel (M3DModel *) |
| M3DColor | getBackgroundColor () const |
| M3DMaterial * | getMaterial (uint32) const |
| uint32 | getMaterialCount () const |
| M3DModel * | getModel (uint32) const |
| uint32 | getModelCount () const |
| M3DScene () | |
| void | setBackgroundColor (M3DColor) |
| ~M3DScene () | |
Private Attributes | |
| M3DColor | backgroundColor |
| std::vector< M3DMaterial * > | materials |
| std::vector< M3DModel * > | models |
|
|
Definition at line 244 of file 3dsmodel.cpp. 00245 {
00246 }
|
|
|
Definition at line 248 of file 3dsmodel.cpp. References materials, and models. 00249 {
00250 unsigned int i;
00251 for (i = 0; i < models.size(); i++)
00252 if (models[i] != NULL)
00253 delete models[i];
00254 for (i = 0; i < materials.size(); i++)
00255 if (materials[i] != NULL)
00256 delete materials[i];
00257 }
|
|
|
Definition at line 290 of file 3dsmodel.cpp. References materials. Referenced by processSceneChunk().
|
|
|
Definition at line 272 of file 3dsmodel.cpp. References models. Referenced by processSceneChunk().
|
|
|
Definition at line 295 of file 3dsmodel.cpp. References backgroundColor. 00296 {
00297 return backgroundColor;
00298 }
|
|
|
Definition at line 277 of file 3dsmodel.cpp. References materials. 00278 {
00279 if (n < materials.size())
00280 return materials[n];
00281 else
00282 return NULL;
00283 }
|
|
|
Definition at line 285 of file 3dsmodel.cpp. References materials. 00286 {
00287 return materials.size();
00288 }
|
|
|
Definition at line 259 of file 3dsmodel.cpp. References models.
|
|
|
Definition at line 267 of file 3dsmodel.cpp. References models. 00268 {
00269 return models.size();
00270 }
|
|
|
Definition at line 300 of file 3dsmodel.cpp. References backgroundColor. Referenced by processSceneChunk(). 00301 {
00302 backgroundColor = color;
00303 }
|
|
|
Definition at line 136 of file 3dsmodel.h. Referenced by getBackgroundColor(), and setBackgroundColor(). |
|
|
Definition at line 135 of file 3dsmodel.h. Referenced by addMaterial(), getMaterial(), getMaterialCount(), and ~M3DScene(). |
|
|
Definition at line 134 of file 3dsmodel.h. Referenced by addModel(), getModel(), getModelCount(), and ~M3DScene(). |
1.4.1