Blender V2.61 - r43446
Public Types | Public Member Functions

KX_BlenderSceneConverter Class Reference

#include <KX_BlenderSceneConverter.h>

Inheritance diagram for KX_BlenderSceneConverter:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { LIB_LOAD_LOAD_ACTIONS = 1, LIB_LOAD_VERBOSE = 2 }

Public Member Functions

 KX_BlenderSceneConverter (Main *maggie, class KX_KetsjiEngine *engine)
virtual ~KX_BlenderSceneConverter ()
virtual void ConvertScene (class KX_Scene *destinationscene, class RAS_IRenderTools *rendertools, class RAS_ICanvas *canvas)
virtual void RemoveScene (class KX_Scene *scene)
void SetNewFileName (const STR_String &filename)
bool TryAndLoadNewFile ()
void SetAlwaysUseExpandFraming (bool to_what)
void RegisterGameObject (KX_GameObject *gameobject, struct Object *for_blenderobject)
void UnregisterGameObject (KX_GameObject *gameobject)
KX_GameObjectFindGameObject (struct Object *for_blenderobject)
void RegisterGameMesh (RAS_MeshObject *gamemesh, struct Mesh *for_blendermesh)
RAS_MeshObjectFindGameMesh (struct Mesh *for_blendermesh)
void RegisterPolyMaterial (RAS_IPolyMaterial *polymat)
void RegisterBlenderMaterial (BL_Material *mat)
void RegisterInterpolatorList (BL_InterpolatorList *actList, struct bAction *for_act)
BL_InterpolatorListFindInterpolatorList (struct bAction *for_act)
void RegisterGameActuator (SCA_IActuator *act, struct bActuator *for_actuator)
SCA_IActuatorFindGameActuator (struct bActuator *for_actuator)
void RegisterGameController (SCA_IController *cont, struct bController *for_controller)
SCA_IControllerFindGameController (struct bController *for_controller)
void RegisterWorldInfo (KX_WorldInfo *worldinfo)
virtual void ResetPhysicsObjectsAnimationIpo (bool clearIpo)
virtual void resetNoneDynamicObjectToIpo ()
 this is for reseting the position,rotation and scale of the gameobjet that is not dynamic
virtual void WritePhysicsObjectToAnimationIpo (int frameNumber)
 this generates ipo curves for position, rotation, allowing to use game physics in animation
virtual void TestHandlesPhysicsObjectToAnimationIpo ()
virtual void SetMaterials (bool val)
virtual bool GetMaterials ()
virtual void SetGLSLMaterials (bool val)
virtual bool GetGLSLMaterials ()
struct SceneGetBlenderSceneForName (const STR_String &name)
struct MainGetMainDynamicPath (const char *path)
vector< struct Main * > & GetMainDynamic ()
bool LinkBlendFileMemory (void *data, int length, const char *path, char *group, KX_Scene *scene_merge, char **err_str, short options)
bool LinkBlendFilePath (const char *path, char *group, KX_Scene *scene_merge, char **err_str, short options)
bool LinkBlendFile (struct BlendHandle *bpy_openlib, const char *path, char *group, KX_Scene *scene_merge, char **err_str, short options)
bool MergeScene (KX_Scene *to, KX_Scene *from)
RAS_MeshObjectConvertMeshSpecial (KX_Scene *kx_scene, Main *maggie, const char *name)
bool FreeBlendFile (struct Main *maggie)
bool FreeBlendFile (const char *path)
void PrintStats ()

Detailed Description

Definition at line 52 of file KX_BlenderSceneConverter.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
LIB_LOAD_LOAD_ACTIONS 
LIB_LOAD_VERBOSE 

Definition at line 179 of file KX_BlenderSceneConverter.h.


Constructor & Destructor Documentation

KX_BlenderSceneConverter::KX_BlenderSceneConverter ( Main maggie,
class KX_KetsjiEngine engine 
)

Definition at line 115 of file KX_BlenderSceneConverter.cpp.

References tag_main().

KX_BlenderSceneConverter::~KX_BlenderSceneConverter ( ) [virtual]

Member Function Documentation

RAS_MeshObject * KX_BlenderSceneConverter::ConvertMeshSpecial ( KX_Scene kx_scene,
Main maggie,
const char *  name 
)
void KX_BlenderSceneConverter::ConvertScene ( class KX_Scene destinationscene,
class RAS_IRenderTools rendertools,
class RAS_ICanvas canvas 
) [virtual]
SCA_IActuator * KX_BlenderSceneConverter::FindGameActuator ( struct bActuator for_actuator)

Definition at line 601 of file KX_BlenderSceneConverter.cpp.

References NULL.

Referenced by LinkControllerToActuators().

SCA_IController * KX_BlenderSceneConverter::FindGameController ( struct bController for_controller)

Definition at line 620 of file KX_BlenderSceneConverter.cpp.

References NULL.

Referenced by BL_ConvertSensors().

RAS_MeshObject * KX_BlenderSceneConverter::FindGameMesh ( struct Mesh for_blendermesh)

Definition at line 548 of file KX_BlenderSceneConverter.cpp.

References NULL.

Referenced by BL_ConvertMesh().

KX_GameObject * KX_BlenderSceneConverter::FindGameObject ( struct Object for_blenderobject)
BL_InterpolatorList * KX_BlenderSceneConverter::FindInterpolatorList ( struct bAction for_act)

Definition at line 582 of file KX_BlenderSceneConverter.cpp.

References NULL.

Referenced by GetAdtList().

bool KX_BlenderSceneConverter::FreeBlendFile ( const char *  path)

Definition at line 1362 of file KX_BlenderSceneConverter.cpp.

References FreeBlendFile(), and GetMainDynamicPath().

bool KX_BlenderSceneConverter::FreeBlendFile ( struct Main maggie)
Scene * KX_BlenderSceneConverter::GetBlenderSceneForName ( const STR_String name) [read, virtual]

Find the specified scene by name, or the first scene if nothing matches (shouldn't happen).

Implements KX_ISceneConverter.

Definition at line 209 of file KX_BlenderSceneConverter.cpp.

References BLI_findstring(), ListBase::first, main(), STR_String::ReadPtr(), and Main::scene.

bool KX_BlenderSceneConverter::GetGLSLMaterials ( ) [virtual]

Implements KX_ISceneConverter.

Definition at line 482 of file KX_BlenderSceneConverter.cpp.

Referenced by BL_ConvertMesh(), and gamelight_from_blamp().

vector< Main * > & KX_BlenderSceneConverter::GetMainDynamic ( )

Definition at line 920 of file KX_BlenderSceneConverter.cpp.

Referenced by LinkBlendFile().

Main * KX_BlenderSceneConverter::GetMainDynamicPath ( const char *  path) [read]

Definition at line 925 of file KX_BlenderSceneConverter.cpp.

References BLI_path_cmp, and NULL.

Referenced by FreeBlendFile(), and LinkBlendFile().

bool KX_BlenderSceneConverter::GetMaterials ( ) [virtual]

Implements KX_ISceneConverter.

Definition at line 477 of file KX_BlenderSceneConverter.cpp.

Referenced by BL_ConvertMesh().

bool KX_BlenderSceneConverter::LinkBlendFile ( struct BlendHandle bpy_openlib,
const char *  path,
char *  group,
KX_Scene scene_merge,
char **  err_str,
short  options 
)
bool KX_BlenderSceneConverter::LinkBlendFileMemory ( void *  data,
int  length,
const char *  path,
char *  group,
KX_Scene scene_merge,
char **  err_str,
short  options 
)

Definition at line 934 of file KX_BlenderSceneConverter.cpp.

References BLO_blendhandle_from_memory(), and LinkBlendFile().

bool KX_BlenderSceneConverter::LinkBlendFilePath ( const char *  path,
char *  group,
KX_Scene scene_merge,
char **  err_str,
short  options 
)

Definition at line 942 of file KX_BlenderSceneConverter.cpp.

References BLO_blendhandle_from_file(), LinkBlendFile(), and NULL.

bool KX_BlenderSceneConverter::MergeScene ( KX_Scene to,
KX_Scene from 
)
void KX_BlenderSceneConverter::PrintStats ( ) [inline]
void KX_BlenderSceneConverter::RegisterBlenderMaterial ( BL_Material mat)

Definition at line 487 of file KX_BlenderSceneConverter.cpp.

Referenced by BL_ConvertMesh().

void KX_BlenderSceneConverter::RegisterGameActuator ( SCA_IActuator act,
struct bActuator for_actuator 
)

Definition at line 592 of file KX_BlenderSceneConverter.cpp.

References CTR_Map< Key, Value >::insert().

Referenced by BL_ConvertActuators().

void KX_BlenderSceneConverter::RegisterGameController ( SCA_IController cont,
struct bController for_controller 
)

Definition at line 611 of file KX_BlenderSceneConverter.cpp.

References CTR_Map< Key, Value >::insert().

Referenced by BL_ConvertControllers().

void KX_BlenderSceneConverter::RegisterGameMesh ( RAS_MeshObject gamemesh,
struct Mesh for_blendermesh 
)

Definition at line 536 of file KX_BlenderSceneConverter.cpp.

References CTR_Map< Key, Value >::insert().

Referenced by BL_ConvertMesh().

void KX_BlenderSceneConverter::RegisterGameObject ( KX_GameObject gameobject,
struct Object for_blenderobject 
)
void KX_BlenderSceneConverter::RegisterInterpolatorList ( BL_InterpolatorList actList,
struct bAction for_act 
)

Definition at line 573 of file KX_BlenderSceneConverter.cpp.

References CTR_Map< Key, Value >::insert().

Referenced by GetAdtList().

void KX_BlenderSceneConverter::RegisterPolyMaterial ( RAS_IPolyMaterial polymat)

Definition at line 566 of file KX_BlenderSceneConverter.cpp.

Referenced by BL_ConvertMesh().

void KX_BlenderSceneConverter::RegisterWorldInfo ( KX_WorldInfo worldinfo)

Definition at line 630 of file KX_BlenderSceneConverter.cpp.

Referenced by BL_ConvertBlenderObjects().

void KX_BlenderSceneConverter::RemoveScene ( class KX_Scene scene) [virtual]

Implements KX_ISceneConverter.

Definition at line 401 of file KX_BlenderSceneConverter.cpp.

References i, and size().

Referenced by FreeBlendFile().

void KX_BlenderSceneConverter::resetNoneDynamicObjectToIpo ( ) [virtual]
void KX_BlenderSceneConverter::ResetPhysicsObjectsAnimationIpo ( bool  clearIpo) [virtual]
void KX_BlenderSceneConverter::SetAlwaysUseExpandFraming ( bool  to_what) [virtual]

Implements KX_ISceneConverter.

Definition at line 494 of file KX_BlenderSceneConverter.cpp.

void KX_BlenderSceneConverter::SetGLSLMaterials ( bool  val) [virtual]

Implements KX_ISceneConverter.

Definition at line 471 of file KX_BlenderSceneConverter.cpp.

References simple_enum_gen::val.

void KX_BlenderSceneConverter::SetMaterials ( bool  val) [virtual]

Implements KX_ISceneConverter.

Definition at line 465 of file KX_BlenderSceneConverter.cpp.

References simple_enum_gen::val.

void KX_BlenderSceneConverter::SetNewFileName ( const STR_String filename) [virtual]

Implements KX_ISceneConverter.

Definition at line 184 of file KX_BlenderSceneConverter.cpp.

void KX_BlenderSceneConverter::TestHandlesPhysicsObjectToAnimationIpo ( ) [virtual]
bool KX_BlenderSceneConverter::TryAndLoadNewFile ( ) [virtual]

Implements KX_ISceneConverter.

Definition at line 191 of file KX_BlenderSceneConverter.cpp.

void KX_BlenderSceneConverter::UnregisterGameObject ( KX_GameObject gameobject)
void KX_BlenderSceneConverter::WritePhysicsObjectToAnimationIpo ( int  frameNumber) [virtual]

The documentation for this class was generated from the following files: