x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
daeIntegrationObject.h - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\DarkPuzzle\libs\bullet_sdk\Extras\COLLADA_DOM\include\dae\daeIntegrationObject.h
旋转
特效
属性
历史版本
/* * Copyright 2006 Sony Computer Entertainment Inc. * * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this * file except in compliance with the License. You may obtain a copy of the License at: * http://research.scea.com/scea_shared_source_license.html * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or * implied. See the License for the specific language governing permissions and limitations under the * License. */ #ifndef __DAE_INTEGRATION_OBJECT_H__ #define __DAE_INTEGRATION_OBJECT_H__ #include
class daeIntegrationObject; typedef daeSmartRef
daeIntegrationObjectRef; /** * The @c daeIntegrationObject class provides methods to translate COLLADA * objects to and from application objects. */ class daeIntegrationObject : public daeElement { public: /** * Constructor. */ DLLSPEC daeIntegrationObject() { _element = NULL; _object = NULL; _from_state = int_uninitialized; _to_state = int_uninitialized; } /** * Destructor. */ virtual DLLSPEC ~daeIntegrationObject() {} public: /** A pointer to the element associated with this integration object. */ daeElement *_element; /** A pointer at which to store the user object associated with this element. */ void* _object; /** An enum describing the state of the conversion from COLLADA. */ IntegrationState _from_state; /** An enum describing the state of the conversion to COLLADA. */ IntegrationState _to_state; public: /** * Sets the element associated with this integration object. * @param element A daeSmartRef to the element for this integration object. */ void setElement(daeElementRef element) { _element = element; } /** * Gets the element associated with this integration object. * @return The element associated with this integration object. */ daeElementRef getElement() { return _element; } /** * Sets the user object associated with this integration object. * @param object A void * to the user object to be associated with this integration object. */ void setObject(void* object) { _object = object; } /** * Gets the user object associated with this integration object. * @return The user object associated with this integration object. */ void* getObject() { return _object; } public: // Do not implement these by default virtual daeElementRef lookupElement(daeString s) { (void)s; return NULL;} virtual daeIntegrationObjectRef lookup(daeString s) { (void)s; return NULL;} protected: /** * Defines the code to create the application-specific data structure associated with the DOM class * for this integration template. This method sets up the integration object for the DOM class. * @param element A daeSmartRef to the element to convert into the user's structure. */ virtual DLLSPEC void createFrom(daeElementRef element) = 0; /** * Defines the code to convert the COLLADA Object Model data structure into your application-specific * data structure. */ virtual DLLSPEC void fromCOLLADA() = 0; /** * Defines any postprocessing code that must execute after the basic conversion. */ virtual DLLSPEC void fromCOLLADAPostProcess() = 0; /** * Defines code to create the COLLADA Object Model data structure associated with the DOM class for * this template. * @param userData A pointer to the application-specific data structure to convert to the DOM structure. */ virtual DLLSPEC void createTo(void *userData) = 0; /** * Defines the code to convert your application's data structures back into COLLADA Object Model data * structures. */ virtual DLLSPEC void toCOLLADA() = 0; /** * Defines any postprocessing code that must execute after the basic conversion. */ virtual DLLSPEC void toCOLLADAPostProcess() = 0; public: /** * Defines the code to create the application-specific data structure associated with the DOM class * for this integration template. This method sets up the integration object for the DOM class. This * method checks and updates the conversion state stored in _from_state and converts only if * necessary. * @param element A daeSmartRef to the element to convert into the user's structure. */ void createFromChecked(daeElementRef element) { if ( _from_state >= int_created ) { return; } createFrom(element); _from_state = int_created; }; /** * Defines the code to convert the COLLADA Object Model data structure into your application-specific * data structure. This method checks and updates the conversion state stored in _from_state and * converts only if necessary. */ void fromCOLLADAChecked() { if ( _from_state >= int_converted ) { return; } fromCOLLADA(); _from_state = int_converted; }; /** * Defines any postprocessing code that must execute after the basic conversion. This method * checks and updates the conversion state stored in _from_state and converts only if necessary. */ void fromCOLLADAPostProcessChecked() { if ( _from_state >= int_finished) { return; } fromCOLLADAPostProcess(); _from_state = int_finished; }; /** * Defines code to create the COLLADA Object Model data structure associated with the DOM class for * this template. This method checks and updates the conversion state stored in _to_state and * converts only if necessary. * @param userData A pointer to the application-specific data structure to convert to the DOM structure. */ void createToChecked(void *userData) { if ( _to_state >= int_created ) { return; } createTo(userData); _to_state = int_created; }; /** * Defines the code to convert your application's data structures back into COLLADA Object Model data * structures. This method checks and updates the conversion state stored in _to_state and * converts only if necessary. */ void toCOLLADAChecked() { if ( _to_state >= int_converted ) { return; } toCOLLADA(); _to_state = int_converted; }; /** * Defines any postprocessing code that must execute after the basic conversion. This method * checks and updates the conversion state stored in _to_state and converts only if necessary. */ void toCOLLADAPostProcessChecked() { if ( _to_state >= int_finished) { return; } toCOLLADAPostProcess(); _to_state = int_finished; }; }; #endif
daeIntegrationObject.h
网页地址
文件地址
上一页
14/33
下一页
下载
( 6 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.