Add rayman2 source files
This commit is contained in:
66
Rayman_X/cpa/public/TFA/CPAChanl.hpp
Normal file
66
Rayman_X/cpa/public/TFA/CPAChanl.hpp
Normal file
@@ -0,0 +1,66 @@
|
||||
/*=============================================================================
|
||||
*
|
||||
* Filename: CPAChanl.hpp
|
||||
* Version: 1.0
|
||||
* Date: 03/11/97
|
||||
* Author: Marc Trabucato
|
||||
*
|
||||
* Description: definition of CPA_Channel class (decendant of CPA_SaveObject)
|
||||
* that contains description of a channel
|
||||
*
|
||||
*===========================================================================*/
|
||||
|
||||
#if !defined( _CPACHANL_HPP_ )
|
||||
#define _CPACHANL_HPP_
|
||||
|
||||
#if defined( ACTIVE_EDITOR )
|
||||
|
||||
#include "ACP_Base.h"
|
||||
|
||||
/****************************************/
|
||||
#ifndef CPA_EXPORT
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif
|
||||
#endif
|
||||
/****************************************/
|
||||
|
||||
/*=============================================================================
|
||||
* Define : name of Family Type (for reachable constructor)
|
||||
=============================================================================*/
|
||||
#define C_szChannelTypeName "Channel"
|
||||
|
||||
/*=============================================================================
|
||||
* class CPA_Channel
|
||||
=============================================================================*/
|
||||
class CPA_Channel : public CPA_SaveObject
|
||||
{
|
||||
protected:
|
||||
long m_lChannelNumber;
|
||||
public:
|
||||
/* constructor*/
|
||||
CPA_Channel(CPA_EditorBase *_p_oEditor, CPA_Family *_p_oOwnerFamily, char *_szChannelName, long _lChannelNumber);
|
||||
~CPA_Channel();
|
||||
|
||||
long GetDataType ( void ) { return 0; }
|
||||
void* GetData ( void ) { return (void*)m_lChannelNumber; }
|
||||
|
||||
tdeMissingCriteria fn_eCheckUnicity ( const CString _csNewName ) { return fn_eCheckUnicityWithOwner( _csNewName ); }
|
||||
|
||||
void fn_vNotifySave (void) { ASSERT(0); }
|
||||
void fn_vNotifyUnSave (void) { ASSERT(0); }
|
||||
void fn_vNotifyRestore (void) { ASSERT(0); }
|
||||
void fn_vNotifyRename (void) { ASSERT(0); }
|
||||
|
||||
void fn_vUpdateReference (CPA_SaveObject *pReferencedObject) { ASSERT(0); }
|
||||
void fn_vUpdateSectionName (void) { ASSERT(0); }
|
||||
CString fn_csComputeReferencedSectionName (const CString csNewName);
|
||||
};
|
||||
|
||||
#endif /* ACTIVE_EDITOR */
|
||||
|
||||
#endif /* _CPACHANL_HPP_ */
|
347
Rayman_X/cpa/public/TFA/CPAFamil.hpp
Normal file
347
Rayman_X/cpa/public/TFA/CPAFamil.hpp
Normal file
@@ -0,0 +1,347 @@
|
||||
/*=============================================================================
|
||||
*
|
||||
* Filename: CPAFamil.hpp
|
||||
* Version: 1.0
|
||||
* Date: 30/12/96
|
||||
* Author: Marc Trabucato & Vincent Lhullier
|
||||
*
|
||||
* Description: definition of CPA_Family class (decendant of CPA_ReachableObject)
|
||||
* that contains description of a family (name, anims, actions )
|
||||
*
|
||||
*===========================================================================*/
|
||||
|
||||
#ifndef __CPAFAMIL_HPP__
|
||||
#define __CPAFAMIL_HPP__
|
||||
|
||||
#ifdef ACTIVE_EDITOR
|
||||
|
||||
#include "ACP_Base.h"
|
||||
#include "ITF.h"
|
||||
// Shaitan => optimisation lists in the level
|
||||
#include "DPT.h"
|
||||
// End Shaitan => optimisation lists in the level
|
||||
#define D_ZdxStuff_StructureDefine
|
||||
#define D_State_Define
|
||||
#include "incGAM.h"
|
||||
#undef D_ZdxStuff_StructureDefine
|
||||
#undef D_State_Define
|
||||
/*#include "GLI.h"*/
|
||||
|
||||
#include "TAC.h"
|
||||
#include "TAN.h"
|
||||
#include "TOT.h"
|
||||
|
||||
/****************************************/
|
||||
#ifndef CPA_EXPORT
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif
|
||||
#endif
|
||||
/****************************************/
|
||||
|
||||
/*=============================================================================
|
||||
* Define : name of Family Type (for reachable constructor)
|
||||
=============================================================================*/
|
||||
#define C_szFamilyTypeName "Family"
|
||||
|
||||
class CPA_Channel;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
CPA_Family *p_oFamily;
|
||||
char *szChannel;
|
||||
long lIndexOfChannel;
|
||||
CPA_Channel *p_oChannel;
|
||||
} tdstChannelInfoSearch;
|
||||
|
||||
/*=============================================================================
|
||||
* class CPA_Family
|
||||
=============================================================================*/
|
||||
class CPA_Family : public CPA_SaveObject,
|
||||
public CPA_EdMot<tdxHandleToFamilyList>
|
||||
{
|
||||
/* variables*/
|
||||
protected:
|
||||
CPA_Action *m_p_oInitialAction;
|
||||
CPA_BaseObject *m_p_oZDxBoundingVolume;
|
||||
char m_szBdVSectionName[SCR_CV_ui_Cfg_MaxLenName];
|
||||
BOOL m_bIsABaseFamily; /* When TRUE, the family is a base family : one can copy its states and actions*/
|
||||
public:
|
||||
CPA_EdList<CPA_State,tdxHandleToState,LST2_M_StaticAnchorTo(tdxHandleToState)*> m_oListOfStates;
|
||||
CPA_List<CPA_Action> m_oListOfActions; /* list of actions*/
|
||||
// Shaitan => state list in the level
|
||||
CPA_List<CPA_Action> m_oListOfUsedActions; /* list of actions used in the loaded level */
|
||||
// End Shaitan => state list in the level
|
||||
// Shaitan => module list in the level
|
||||
CPA_List<CPA_BaseObject> m_oListOfUsedPOs; /* list of POs used in the loaded level */
|
||||
CPA_List<EditorObjectTable> m_oListOfUsedObjectTables; /* list of object tables used in the loaded level */
|
||||
// End Shaitan => module list in the level
|
||||
CPA_List<CPA_Animation> m_oListOfAnimations; /* list of animations*/
|
||||
CPA_List<EditorObjectTable> m_oListOfObjectTables; /* list of object tables*/
|
||||
BOOL m_bUsedByCurrentLevel;
|
||||
CList<CString,CString> m_oListOfChannelsName;
|
||||
|
||||
// Shaitan => optimisation lists in the level
|
||||
BOOL m_bMustUpdateStateList; /* modification flag */
|
||||
BOOL m_bMustUpdatePOList; /* modification flag */
|
||||
// End Shaitan => optimisation list in the level
|
||||
|
||||
/* methods*/
|
||||
public:
|
||||
/* constructor*/
|
||||
CPA_Family(CPA_EditorBase *_p_oEditor, tdxHandleToFamilyList _hEngineFamily, char *_szFamilyName = NULL);
|
||||
~CPA_Family();
|
||||
|
||||
/* virtual methods overloaded*/
|
||||
/* CPA_BaseObject*/
|
||||
long GetDataType ( void ) { return 0; }
|
||||
void* GetData ( void ) { return (void*)GetStruct(); }
|
||||
static void Init ( void );
|
||||
static void InitStatic ( CPA_MainWorld *_p_oMainWorld );
|
||||
void mfn_vLoad ( void );
|
||||
static void mfn_vCallBackSave ( SCR_tdst_File_Description *_p_stFile, char *_p_szSectionName, void *_p_vData, SCR_tde_Ntfy_Action _eAction);
|
||||
static void mfn_vCallBackSaveEmptySection ( SCR_tdst_File_Description *_p_stFile, char *_p_szSectionName, void *_p_vData, SCR_tde_Ntfy_Action _eAction);
|
||||
static SCR_tde_Anl_ReturnValue
|
||||
mfn_CallbackLoadBaseFamilySection ( SCR_tdst_File_Description *_p_stFile, char *_p_szName,
|
||||
char *_ap_szParams[], SCR_tde_Anl_Action _eAction );
|
||||
/**/
|
||||
protected:
|
||||
void SetStruct ( tdxHandleToFamilyList _hFamily);
|
||||
void mfn_vFillChannelNamesList ( void );
|
||||
void mfn_vInitACZFile ( void );
|
||||
void mfn_vFillTPLList ( void );
|
||||
/**/
|
||||
public:
|
||||
|
||||
/**/
|
||||
void mfn_vSetInitialAction ( CPA_Action *_p_oAction ) { m_p_oInitialAction = _p_oAction; }
|
||||
CPA_Action *mfn_p_oGetInitialAction ( void ) { return m_p_oInitialAction; }
|
||||
/* add functions*/
|
||||
inline void mfn_vAddAnimation ( CPA_Animation *_p_oAnimation );
|
||||
inline void mfn_vAddAction ( CPA_Action *_p_oAction );
|
||||
inline void mfn_vAddState ( CPA_State *_p_oState, BOOL _bModifyEngine = TRUE );
|
||||
inline void mfn_vAddObjectTable ( EditorObjectTable *_p_oObjectTable);
|
||||
|
||||
void mfn_vSetOnLevel (BOOL _bOnLevel ) { m_bUsedByCurrentLevel = _bOnLevel; }
|
||||
|
||||
/* remove functions*/
|
||||
inline void mfn_vRemoveAction ( CPA_Action *_p_oAction );
|
||||
inline void mfn_vRemoveState ( CPA_State *_p_oState, BOOL _bModifyEngine = TRUE );
|
||||
|
||||
/* get functions*/
|
||||
CPA_Animation *mfn_p_oGetAnimation ( const CString _csAnimName ) ;
|
||||
CPA_Action *mfn_p_oGetAction ( const CString _csActionName ) ;
|
||||
CPA_State *mfn_p_oGetState ( const CString _csStateName );
|
||||
EditorObjectTable *mfn_p_oGetObjectTable ( const CString _csObjectTableName );
|
||||
inline tdxHandleToState mfn_p_stGetEngineState ( const CString _csStateName );
|
||||
|
||||
/* test functions*/
|
||||
BOOL mfn_bIsAnimationOfFamily ( CPA_Animation *_p_oAnimation ) { return ((BOOL)m_oListOfAnimations . Find ( _p_oAnimation )) ; }
|
||||
BOOL mfn_bIsActionOfFamily ( CPA_Action *_p_oAction ) { return ((BOOL)m_oListOfActions . Find ( _p_oAction )) ; }
|
||||
BOOL mfn_bIsStateOfFamily ( CPA_State *_p_oState ) { return ((BOOL)m_oListOfStates . Find ( _p_oState )) ; }
|
||||
BOOL mfn_bIsObjectTableOfFamily ( EditorObjectTable *_p_oObjTbl ) { return ((BOOL)m_oListOfObjectTables . Find ( _p_oObjTbl )) ; }
|
||||
BOOL mfn_bIsLoadedOnCurrentLevel( void ) { return m_bUsedByCurrentLevel; }
|
||||
BOOL mfn_bIsABaseFamily( void ) { return m_bIsABaseFamily; }
|
||||
|
||||
/* Bounding volume*/
|
||||
inline void mfn_vSetBoundingVolume ( CPA_BaseObject *_p_oZdx);
|
||||
CPA_BaseObject *mfn_p_oGetBoundingVolume( void ) { return m_p_oZDxBoundingVolume; }
|
||||
|
||||
// Shaitan => optimisation lists in the level
|
||||
inline void mfn_vSetModifiedStateList (void);
|
||||
inline void mfn_vSetModifiedPOList (void);
|
||||
|
||||
inline BOOL mfn_bMustUpdateStateList (void);
|
||||
inline BOOL mfn_bMustUpdatePOList (void);
|
||||
// End Shaitan => optimisation list in the level
|
||||
|
||||
};
|
||||
|
||||
/*=============================================================================
|
||||
* Macros to add an action, an anim or a transition anim to a family
|
||||
=============================================================================*/
|
||||
#define M_AddActionToFamily( p_oFamily , p_oAction ) p_oFamily -> mfn_vAddAction( p_oAction )
|
||||
#define M_AddAnimationToFamily( p_oFamily , p_oAnimation ) p_oFamily -> mfn_vAddAnimation( p_oAnimation )
|
||||
#define M_AddStateToFamily( p_oFamily , p_oState ) p_oFamily -> mfn_vAddState( p_oState )
|
||||
#define M_AddObjectTableToFamily( p_oFamily, p_oObjectTable ) p_oFamily -> mfn_vAddObjectTable( p_oObjectTable )
|
||||
|
||||
|
||||
/*=============================================================================
|
||||
* inline functions implementation
|
||||
=============================================================================*/
|
||||
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
/* Description : add an animation to family*/
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
inline void CPA_Family::mfn_vAddAnimation( CPA_Animation *_p_oAnimation )
|
||||
{
|
||||
m_oListOfAnimations . AddTail( _p_oAnimation );
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
/* Description : add an action to family*/
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
inline void CPA_Family::mfn_vAddAction( CPA_Action *_p_oAction )
|
||||
{
|
||||
ASSERT( !m_oListOfActions . Find ( _p_oAction ) );
|
||||
m_oListOfActions . AddTail( _p_oAction );
|
||||
|
||||
if( m_p_oInitialAction == NULL )
|
||||
{
|
||||
m_p_oInitialAction = _p_oAction;
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
/* Description : add a state to family*/
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
inline void CPA_Family::mfn_vAddState( CPA_State *_p_oState, BOOL _bModifyEngine /*=TRUE*/ )
|
||||
{
|
||||
ASSERT( ! m_oListOfStates . Find ( _p_oState ) );
|
||||
m_oListOfStates . AddTail( _p_oState, _bModifyEngine );
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
/* Description : add an objecttable to family*/
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
inline void CPA_Family::mfn_vAddObjectTable(EditorObjectTable *_p_oObjectTable)
|
||||
{
|
||||
ASSERT( !m_oListOfObjectTables . Find ( _p_oObjectTable ) );
|
||||
m_oListOfObjectTables . AddTail( _p_oObjectTable );
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
/* Description : remove action from family*/
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
inline void CPA_Family::mfn_vRemoveAction( CPA_Action *_p_oAction )
|
||||
{
|
||||
POSITION stPos = m_oListOfActions . Find ( _p_oAction );
|
||||
|
||||
if( stPos )
|
||||
{
|
||||
m_oListOfActions . RemoveAt ( stPos );
|
||||
if( ( m_p_oInitialAction == _p_oAction ) && ( m_oListOfActions . GetCount() > 0 ) )
|
||||
{
|
||||
m_p_oInitialAction = m_oListOfActions . GetHeadElement();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
/* Description : remove state from family (editor and engine)*/
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
inline void CPA_Family::mfn_vRemoveState( CPA_State *_p_oState, BOOL _bModifyEngine /*=TRUE*/ )
|
||||
{
|
||||
POSITION stPos = m_oListOfStates . Find ( _p_oState );
|
||||
|
||||
if( stPos )
|
||||
{
|
||||
m_oListOfStates . RemoveAt ( stPos, _bModifyEngine );
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
/* Description : return engine state of given name*/
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
inline tdxHandleToState CPA_Family::mfn_p_stGetEngineState( CString _csStateName )
|
||||
{
|
||||
tdxHandleToState hState;
|
||||
int iIndex;
|
||||
|
||||
LST2_M_StaticForEachElementOf( & GetStruct() -> hForStateArray, hState, iIndex)
|
||||
{
|
||||
if( !_csStateName.CompareNoCase(hState -> szStateName) )
|
||||
return hState;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
/* Description : update Bounding Volume*/
|
||||
/* ----------------------------------------------------------------------------*/
|
||||
inline void CPA_Family::mfn_vSetBoundingVolume( CPA_BaseObject *_p_oZdx)
|
||||
{
|
||||
GEO_tdxHandleToBoundingSphere hFamilyBoundingSphere;
|
||||
|
||||
m_p_oZDxBoundingVolume = _p_oZdx;
|
||||
|
||||
hFamilyBoundingSphere = fn_vGetBoundingVolumeOfFamily(GetStruct());
|
||||
|
||||
if( m_p_oZDxBoundingVolume )
|
||||
{
|
||||
fn_vSetGeometricSphereOfFamily(GetStruct(),(ACP_tdxHandleOfObject)m_p_oZDxBoundingVolume->GetData());
|
||||
GEO_fn_vUpdateBoundingSphere((ACP_tdxHandleOfObject)m_p_oZDxBoundingVolume->GetData(), hFamilyBoundingSphere);
|
||||
}
|
||||
else
|
||||
fn_vSetGeometricSphereOfFamily(GetStruct(),(ACP_tdxHandleOfObject)NULL);
|
||||
|
||||
fn_vNotifySave();
|
||||
}
|
||||
|
||||
// Shaitan => optimisation lists in the level
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Description : set modification flags
|
||||
*---------------------------------------------------------------------------*/
|
||||
inline void CPA_Family::mfn_vSetModifiedStateList (void)
|
||||
{
|
||||
m_bMustUpdateStateList = TRUE;
|
||||
m_bMustUpdatePOList = TRUE;
|
||||
}
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Description : set modification flags
|
||||
*---------------------------------------------------------------------------*/
|
||||
inline void CPA_Family::mfn_vSetModifiedPOList (void)
|
||||
{
|
||||
m_bMustUpdatePOList = TRUE;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Description : test modification flag
|
||||
*---------------------------------------------------------------------------*/
|
||||
inline BOOL CPA_Family::mfn_bMustUpdateStateList (void)
|
||||
{
|
||||
char szSectionName[SCR_CV_ui_Cfg_MaxLenName];
|
||||
|
||||
// if flag is not set, no need to go further
|
||||
if (!m_bMustUpdateStateList)
|
||||
return FALSE;
|
||||
|
||||
// check if the family is optimized
|
||||
sprintf(szSectionName,"%s\\%s\\Families\\%s\\%s.stl^%s",
|
||||
fn_szGetLevelsDataPath(),
|
||||
fn_p_szGetLevelName(),
|
||||
GetName(),
|
||||
GetName(),
|
||||
C_SectionCreateListOfState);
|
||||
return (SCR_fn_c_RdL0_IsSectionExists(szSectionName));
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Description : test modification flag
|
||||
*---------------------------------------------------------------------------*/
|
||||
inline BOOL CPA_Family::mfn_bMustUpdatePOList (void)
|
||||
{
|
||||
char szSectionName[SCR_CV_ui_Cfg_MaxLenName];
|
||||
|
||||
// if flag is not set, no need to go further
|
||||
if (!m_bMustUpdatePOList)
|
||||
return FALSE;
|
||||
|
||||
// check if the family is optimized
|
||||
sprintf(szSectionName,"%s\\%s\\Families\\%s\\%s.otl^%s",
|
||||
fn_szGetLevelsDataPath(),
|
||||
fn_p_szGetLevelName(),
|
||||
GetName(),
|
||||
GetName(),
|
||||
C_SectionCreateListOfPOs);
|
||||
return (SCR_fn_c_RdL0_IsSectionExists(szSectionName));
|
||||
}
|
||||
// End Shaitan => optimisation list in the level
|
||||
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
|
||||
#endif /* __CPAFAMIL_HPP__*/
|
133
Rayman_X/cpa/public/TFA/CPATstPt.hpp
Normal file
133
Rayman_X/cpa/public/TFA/CPATstPt.hpp
Normal file
@@ -0,0 +1,133 @@
|
||||
/*=============================================================================
|
||||
*
|
||||
* Filename: CPATstPt.hpp
|
||||
* Version: 2.0 (VSS5)
|
||||
* Date: 28/07/97
|
||||
* Author: Marc Trabucato
|
||||
*
|
||||
* Description: description of CPA_TestPoint class
|
||||
*
|
||||
*===========================================================================*/
|
||||
|
||||
#ifndef __CPATSTPT_HPP__
|
||||
#define __CPATSTPT_HPP__
|
||||
|
||||
/******************************************/
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif
|
||||
/******************************************/
|
||||
|
||||
#ifdef ACTIVE_EDITOR
|
||||
|
||||
#include "ITF.h"
|
||||
/*3dos*/
|
||||
|
||||
class ZDx_Object;
|
||||
class CPA_TestPointsList;
|
||||
|
||||
/*=============================================================================
|
||||
* class CPA_TestPointNode:
|
||||
=============================================================================*/
|
||||
class CPA_TestPointNode : public CPA_EdElement<CPA_TestPointNode,tdxHandleToTestPointNode,LST2_M_StaticAnchorTo(tdxHandleToTestPointNode)*>
|
||||
{
|
||||
protected:
|
||||
ZDx_Object *m_p_oZdxObject;
|
||||
CPA_TestPointsList *m_p_oOwnerList;
|
||||
public:
|
||||
/* to create a new Point or use an existing engine TestPointNode*/
|
||||
CPA_TestPointNode( CPA_TestPointsList *_p_oList, tdxHandleToTestPointNode _hTestPointNode = NULL );
|
||||
~CPA_TestPointNode(void);
|
||||
|
||||
void SetZdxObject ( ZDx_Object *_p_oObject ) { m_p_oZdxObject = _p_oObject; }
|
||||
void SetOwnerList ( CPA_TestPointsList *_p_oList ) { m_p_oOwnerList = _p_oList; }
|
||||
void SetPosition ( MTH3D_tdstVector *_p_stVector ) { fn_vSetTestPointNodePosition( GetStruct(), _p_stVector ); }
|
||||
/* ANNECY AV CLEAN_MEC {*/
|
||||
/* void SetKindOfPoint ( DNM_tdeKindOfPoint _eKindOfPoint ) { fn_vSetTestPointNodeIdentifier( GetStruct(), _eKindOfPoint ); }*/
|
||||
/* END ANNECY AV }*/
|
||||
|
||||
ZDx_Object *mfn_p_oGetZdxObject ( void ) { return m_p_oZdxObject; }
|
||||
CPA_TestPointsList *mfn_p_oGetList ( void ) { return m_p_oOwnerList; }
|
||||
void mfn_vGetPosition ( MTH3D_tdstVector *_p_stVector ) { MTH3D_M_vCopyVector( _p_stVector, fn_p_stGetTestPointNodePosition( GetStruct() ) ); }
|
||||
/* ANNECY AV CLEAN_MEC {*/
|
||||
/* DNM_tdeKindOfPoint mfn_eGetKindOfPoint ( void ) { return fn_eGetTestPointNodeIdentifier( GetStruct() ); }*/
|
||||
/* END ANNECY AV }*/
|
||||
|
||||
static void Init();
|
||||
};
|
||||
|
||||
/*=============================================================================
|
||||
* class CPA_TestPointsList:
|
||||
=============================================================================*/
|
||||
class CPA_TestPointsList : public CPA_SaveObject,
|
||||
public CPA_EdMot<tdxHandleToTestPointsList>
|
||||
{
|
||||
public:
|
||||
CPA_EdList<CPA_TestPointNode,tdxHandleToTestPointNode,LST2_M_StaticAnchorTo(tdxHandleToTestPointNode)*> m_oListOfTestPoints;
|
||||
public:
|
||||
/* to create a new TestPointsList or to use an existing engine TestPointsList*/
|
||||
CPA_TestPointsList(CPA_EditorBase *_p_oDLL, CPA_BaseObject *_p_oOwnerFamily, tdxHandleToTestPointsList _hTestPointsList = NULL,
|
||||
CString _csListName = "");
|
||||
~CPA_TestPointsList(void);
|
||||
|
||||
/* overloaded functions*/
|
||||
long GetDataType ( void ) { return 0; }
|
||||
void* GetData ( void ) { return (void*)GetStruct(); }
|
||||
|
||||
tdeMissingCriteria fn_eCheckUnicity ( const CString _csNewName ) { return fn_eCheckUnicityWithOwner( _csNewName ); }
|
||||
|
||||
/* new functions*/
|
||||
static void Init();
|
||||
static void fn_vCallBackSave ( SCR_tdst_File_Description *_p_stFile, char *_p_szSectionName, void *_p_vData, SCR_tde_Ntfy_Action _eAction);
|
||||
|
||||
/* access functions*/
|
||||
/* ANNECY AV CLEAN_MEC {*/
|
||||
/* inline CPA_TestPointNode *mfn_p_oGetNodeByKind ( DNM_tdeKindOfPoint _eKindOfPoint );*/
|
||||
/* inline CString GetKindOfPointName ( DNM_tdeKindOfPoint _eKindOfPoint );*/
|
||||
/* END ANNECY AV }*/
|
||||
protected:
|
||||
inline void SetStruct(tdxHandleToTestPointsList _hEngineList);
|
||||
};
|
||||
|
||||
/*=============================================================================
|
||||
* class CPA_TestPointsList: inline implementation
|
||||
=============================================================================*/
|
||||
inline void CPA_TestPointsList::SetStruct(tdxHandleToTestPointsList _hEngineList)
|
||||
{
|
||||
CPA_EdMot<tdxHandleToTestPointsList>::SetStruct( _hEngineList );
|
||||
m_oListOfTestPoints . SetEngineAnchor( GetStruct() ? & GetStruct() -> hForTestPointArray : NULL );
|
||||
}
|
||||
|
||||
/* ANNECY AV CLEAN_MEC {*/
|
||||
/*
|
||||
inline CPA_TestPointNode *CPA_TestPointsList::mfn_p_oGetNodeByKind( DNM_tdeKindOfPoint _eKindOfPoint )
|
||||
{
|
||||
POSITION xPos = m_oListOfTestPoints . GetHeadPosition();
|
||||
while( xPos )
|
||||
{
|
||||
CPA_TestPointNode *p_oNode = m_oListOfTestPoints . GetNext( xPos );
|
||||
if( p_oNode -> mfn_eGetKindOfPoint() == _eKindOfPoint )
|
||||
return p_oNode;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
inline CString CPA_TestPointsList::GetKindOfPointName(DNM_tdeKindOfPoint _eKindOfPoint)
|
||||
{
|
||||
switch (_eKindOfPoint)
|
||||
{
|
||||
case DNM_Point_Head : return "Head";
|
||||
case DNM_Point_Clavicle : return "Clavicle";
|
||||
case DNM_Point_Sternum : return "Sternum";
|
||||
case DNM_Point_Coccyx : return "Coccyx";
|
||||
case DNM_Point_Patella : return "Patella";
|
||||
case DNM_Point_Feet : return "Feet";
|
||||
default : ASSERT (0);
|
||||
return "";
|
||||
}
|
||||
}
|
||||
*/
|
||||
/* END ANNECY AV }*/
|
||||
|
||||
#endif /* ACTIVE_EDITOR*/
|
||||
#endif /* __CPATSTPT_HPP__*/
|
19
Rayman_X/cpa/public/TFA/TFAQuery.h
Normal file
19
Rayman_X/cpa/public/TFA/TFAQuery.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef __TFAQUERY_H__
|
||||
#define __TFAQUERY_H__
|
||||
|
||||
/*----------------------------------------------------------*/
|
||||
/* CONSTANTS for Query Action*/
|
||||
/*----------------------------------------------------------*/
|
||||
#define C_uiSaveFamilies 1
|
||||
#define C_uiLoadAFamily 2
|
||||
#define C_uiGetUnLoadedFamiliesList 3
|
||||
#define C_uiGetChannel 4
|
||||
#define C_uiUpdateFamiliesTFA 7
|
||||
#define C_uiSetCompleteLoadModeTFA 8
|
||||
|
||||
/*----------------------------------------------------------*/
|
||||
/* CONSTANTS for Query Action*/
|
||||
/*----------------------------------------------------------*/
|
||||
#define C_uiGetCompleteLoadMode 10
|
||||
|
||||
#endif /*__TFAQUERY_H__*/
|
Reference in New Issue
Block a user