x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
domSkin.h - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\DarkPuzzle\libs\bullet_sdk\Extras\COLLADA_DOM\include\1.4\dom\domSkin.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 __domSkin_h__ #define __domSkin_h__ #include
#include
#include
#include
#include
#include
/** * The skin element contains vertex and primitive information sufficient to * describe blend-weight skinning. */ class domSkin : public daeElement { public: COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::SKIN; } public: class domBind_shape_matrix; typedef daeSmartRef
domBind_shape_matrixRef; typedef daeTArray
domBind_shape_matrix_Array; /** * This provides extra information about the position and orientation of the * base mesh before binding. If bind_shape_matrix is not specified then an * identity matrix may be used as the bind_shape_matrix. The bind_shape_matrix * element may occur zero or one times. */ class domBind_shape_matrix : public daeElement { public: COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::BIND_SHAPE_MATRIX; } protected: // Value /** * The domFloat4x4 value of the text data of this element. */ domFloat4x4 _value; public: //Accessors and Mutators /** * Gets the _value array. * @return Returns a domFloat4x4 reference of the _value array. */ domFloat4x4 &getValue() { return _value; } /** * Gets the _value array. * @return Returns a constant domFloat4x4 reference of the _value array. */ const domFloat4x4 &getValue() const { return _value; } /** * Sets the _value array. * @param val The new value for the _value array. */ void setValue( const domFloat4x4 &val ) { _value = val; } protected: /** * Constructor */ domBind_shape_matrix() : _value() {} /** * Destructor */ virtual ~domBind_shape_matrix() {} /** * Copy Constructor */ domBind_shape_matrix( const domBind_shape_matrix &cpy ) : daeElement() { (void)cpy; } /** * Overloaded assignment operator */ virtual domBind_shape_matrix &operator=( const domBind_shape_matrix &cpy ) { (void)cpy; return *this; } public: // STATIC METHODS /** * Creates an instance of this class and returns a daeElementRef referencing it. * @param bytes The size allocated for this instance. * @return a daeElementRef referencing an instance of this object. */ static DLLSPEC daeElementRef create(daeInt bytes); /** * Creates a daeMetaElement object that describes this element in the meta object reflection framework. * If a daeMetaElement already exists it will return that instead of creating a new one. * @return A daeMetaElement describing this COLLADA element. */ static DLLSPEC daeMetaElement* registerElement(); public: // STATIC MEMBERS /** * The daeMetaElement that describes this element in the meta object reflection framework. */ static DLLSPEC daeMetaElement* _Meta; }; class domJoints; typedef daeSmartRef
domJointsRef; typedef daeTArray
domJoints_Array; /** * The joints element associates joint, or skeleton, nodes with attribute * data. In COLLADA, this is specified by the inverse bind matrix of each * joint (influence) in the skeleton. */ class domJoints : public daeElement { public: COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::JOINTS; } protected: // Elements /** * The input element must occur at least twice. These inputs are local inputs. * @see domInput */ domInputLocal_Array elemInput_array; /** * The extra element may appear any number of times. @see domExtra */ domExtra_Array elemExtra_array; public: //Accessors and Mutators /** * Gets the input element array. * @return Returns a reference to the array of input elements. */ domInputLocal_Array &getInput_array() { return elemInput_array; } /** * Gets the input element array. * @return Returns a constant reference to the array of input elements. */ const domInputLocal_Array &getInput_array() const { return elemInput_array; } /** * Gets the extra element array. * @return Returns a reference to the array of extra elements. */ domExtra_Array &getExtra_array() { return elemExtra_array; } /** * Gets the extra element array. * @return Returns a constant reference to the array of extra elements. */ const domExtra_Array &getExtra_array() const { return elemExtra_array; } protected: /** * Constructor */ domJoints() : elemInput_array(), elemExtra_array() {} /** * Destructor */ virtual ~domJoints() {} /** * Copy Constructor */ domJoints( const domJoints &cpy ) : daeElement() { (void)cpy; } /** * Overloaded assignment operator */ virtual domJoints &operator=( const domJoints &cpy ) { (void)cpy; return *this; } public: // STATIC METHODS /** * Creates an instance of this class and returns a daeElementRef referencing it. * @param bytes The size allocated for this instance. * @return a daeElementRef referencing an instance of this object. */ static DLLSPEC daeElementRef create(daeInt bytes); /** * Creates a daeMetaElement object that describes this element in the meta object reflection framework. * If a daeMetaElement already exists it will return that instead of creating a new one. * @return A daeMetaElement describing this COLLADA element. */ static DLLSPEC daeMetaElement* registerElement(); public: // STATIC MEMBERS /** * The daeMetaElement that describes this element in the meta object reflection framework. */ static DLLSPEC daeMetaElement* _Meta; }; class domVertex_weights; typedef daeSmartRef
domVertex_weightsRef; typedef daeTArray
domVertex_weights_Array; /** * The vertex_weights element associates a set of joint-weight pairs with * each vertex in the base mesh. */ class domVertex_weights : public daeElement { public: COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VERTEX_WEIGHTS; } public: class domVcount; typedef daeSmartRef
domVcountRef; typedef daeTArray
domVcount_Array; /** * The vcount element contains a list of integers describing the number of * influences for each vertex. The vcount element may occur once. */ class domVcount : public daeElement { public: COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::VCOUNT; } protected: // Value /** * The domListOfUInts value of the text data of this element. */ domListOfUInts _value; public: //Accessors and Mutators /** * Gets the _value array. * @return Returns a domListOfUInts reference of the _value array. */ domListOfUInts &getValue() { return _value; } /** * Gets the _value array. * @return Returns a constant domListOfUInts reference of the _value array. */ const domListOfUInts &getValue() const { return _value; } /** * Sets the _value array. * @param val The new value for the _value array. */ void setValue( const domListOfUInts &val ) { _value = val; } protected: /** * Constructor */ domVcount() : _value() {} /** * Destructor */ virtual ~domVcount() {} /** * Copy Constructor */ domVcount( const domVcount &cpy ) : daeElement() { (void)cpy; } /** * Overloaded assignment operator */ virtual domVcount &operator=( const domVcount &cpy ) { (void)cpy; return *this; } public: // STATIC METHODS /** * Creates an instance of this class and returns a daeElementRef referencing it. * @param bytes The size allocated for this instance. * @return a daeElementRef referencing an instance of this object. */ static DLLSPEC daeElementRef create(daeInt bytes); /** * Creates a daeMetaElement object that describes this element in the meta object reflection framework. * If a daeMetaElement already exists it will return that instead of creating a new one. * @return A daeMetaElement describing this COLLADA element. */ static DLLSPEC daeMetaElement* registerElement(); public: // STATIC MEMBERS /** * The daeMetaElement that describes this element in the meta object reflection framework. */ static DLLSPEC daeMetaElement* _Meta; }; class domV; typedef daeSmartRef
domVRef; typedef daeTArray
domV_Array; /** * The v element describes which bones and attributes are associated with * each vertex. An index of –1 into the array of joints refers to the * bind shape. Weights should be normalized before use. The v element must * occur zero or one times. */ class domV : public daeElement { public: COLLADA_TYPE::TypeEnum getElementType() const { return COLLADA_TYPE::V; } protected: // Value /** * The domListOfInts value of the text data of this element. */ domListOfInts _value; public: //Accessors and Mutators /** * Gets the _value array. * @return Returns a domListOfInts reference of the _value array. */ domListOfInts &getValue() { return _value; } /** * Gets the _value array. * @return Returns a constant domListOfInts reference of the _value array. */ const domListOfInts &getValue() const { return _value; } /** * Sets the _value array. * @param val The new value for the _value array. */ void setValue( const domListOfInts &val ) { _value = val; } protected: /** * Constructor */ domV() : _value() {} /** * Destructor */ virtual ~domV() {} /** * Copy Constructor */ domV( const domV &cpy ) : daeElement() { (void)cpy; } /** * Overloaded assignment operator */ virtual domV &operator=( const domV &cpy ) { (void)cpy; return *this; } public: // STATIC METHODS /** * Creates an instance of this class and returns a daeElementRef referencing it. * @param bytes The size allocated for this instance. * @return a daeElementRef referencing an instance of this object. */ static DLLSPEC daeElementRef create(daeInt bytes); /** * Creates a daeMetaElement object that describes this element in the meta object reflection framework. * If a daeMetaElement already exists it will return that instead of creating a new one. * @return A daeMetaElement describing this COLLADA element. */ static DLLSPEC daeMetaElement* registerElement(); public: // STATIC MEMBERS /** * The daeMetaElement that describes this element in the meta object reflection framework. */ static DLLSPEC daeMetaElement* _Meta; }; protected: // Attribute /** * The count attribute describes the number of vertices in the base mesh. * Required element. */ domUint attrCount; protected: // Elements /** * The input element must occur at least twice. @see domInput */ domInputLocalOffset_Array elemInput_array; /** * The vcount element contains a list of integers describing the number of * influences for each vertex. The vcount element may occur once. @see domVcount */ domVcountRef elemVcount; /** * The v element describes which bones and attributes are associated with * each vertex. An index of –1 into the array of joints refers to the * bind shape. Weights should be normalized before use. The v element must * occur zero or one times. @see domV */ domVRef elemV; /** * The extra element may appear any number of times. @see domExtra */ domExtra_Array elemExtra_array; public: //Accessors and Mutators /** * Gets the count attribute. * @return Returns a domUint of the count attribute. */ domUint getCount() const { return attrCount; } /** * Sets the count attribute. * @param atCount The new value for the count attribute. */ void setCount( domUint atCount ) { attrCount = atCount; _validAttributeArray[0] = true; } /** * Gets the input element array. * @return Returns a reference to the array of input elements. */ domInputLocalOffset_Array &getInput_array() { return elemInput_array; } /** * Gets the input element array. * @return Returns a constant reference to the array of input elements. */ const domInputLocalOffset_Array &getInput_array() const { return elemInput_array; } /** * Gets the vcount element. * @return a daeSmartRef to the vcount element. */ const domVcountRef getVcount() const { return elemVcount; } /** * Gets the v element. * @return a daeSmartRef to the v element. */ const domVRef getV() const { return elemV; } /** * Gets the extra element array. * @return Returns a reference to the array of extra elements. */ domExtra_Array &getExtra_array() { return elemExtra_array; } /** * Gets the extra element array. * @return Returns a constant reference to the array of extra elements. */ const domExtra_Array &getExtra_array() const { return elemExtra_array; } protected: /** * Constructor */ domVertex_weights() : attrCount(), elemInput_array(), elemVcount(), elemV(), elemExtra_array() {} /** * Destructor */ virtual ~domVertex_weights() {} /** * Copy Constructor */ domVertex_weights( const domVertex_weights &cpy ) : daeElement() { (void)cpy; } /** * Overloaded assignment operator */ virtual domVertex_weights &operator=( const domVertex_weights &cpy ) { (void)cpy; return *this; } public: // STATIC METHODS /** * Creates an instance of this class and returns a daeElementRef referencing it. * @param bytes The size allocated for this instance. * @return a daeElementRef referencing an instance of this object. */ static DLLSPEC daeElementRef create(daeInt bytes); /** * Creates a daeMetaElement object that describes this element in the meta object reflection framework. * If a daeMetaElement already exists it will return that instead of creating a new one. * @return A daeMetaElement describing this COLLADA element. */ static DLLSPEC daeMetaElement* registerElement(); public: // STATIC MEMBERS /** * The daeMetaElement that describes this element in the meta object reflection framework. */ static DLLSPEC daeMetaElement* _Meta; }; protected: // Attribute /** * The source attribute contains a URI reference to the base mesh, (a static * mesh or a morphed mesh). This also provides the bind-shape of the skinned * mesh. Required attribute. */ xsAnyURI attrSource; protected: // Elements /** * This provides extra information about the position and orientation of the * base mesh before binding. If bind_shape_matrix is not specified then an * identity matrix may be used as the bind_shape_matrix. The bind_shape_matrix * element may occur zero or one times. @see domBind_shape_matrix */ domBind_shape_matrixRef elemBind_shape_matrix; /** * The skin element must contain at least three source elements. @see domSource */ domSource_Array elemSource_array; /** * The joints element associates joint, or skeleton, nodes with attribute * data. In COLLADA, this is specified by the inverse bind matrix of each * joint (influence) in the skeleton. @see domJoints */ domJointsRef elemJoints; /** * The vertex_weights element associates a set of joint-weight pairs with * each vertex in the base mesh. @see domVertex_weights */ domVertex_weightsRef elemVertex_weights; /** * The extra element may appear any number of times. @see domExtra */ domExtra_Array elemExtra_array; public: //Accessors and Mutators /** * Gets the source attribute. * @return Returns a xsAnyURI reference of the source attribute. */ xsAnyURI &getSource() { return attrSource; } /** * Gets the source attribute. * @return Returns a constant xsAnyURI reference of the source attribute. */ const xsAnyURI &getSource() const { return attrSource; } /** * Sets the source attribute. * @param atSource The new value for the source attribute. */ void setSource( const xsAnyURI &atSource ) { attrSource = atSource; _validAttributeArray[0] = true; } /** * Gets the bind_shape_matrix element. * @return a daeSmartRef to the bind_shape_matrix element. */ const domBind_shape_matrixRef getBind_shape_matrix() const { return elemBind_shape_matrix; } /** * Gets the source element array. * @return Returns a reference to the array of source elements. */ domSource_Array &getSource_array() { return elemSource_array; } /** * Gets the source element array. * @return Returns a constant reference to the array of source elements. */ const domSource_Array &getSource_array() const { return elemSource_array; } /** * Gets the joints element. * @return a daeSmartRef to the joints element. */ const domJointsRef getJoints() const { return elemJoints; } /** * Gets the vertex_weights element. * @return a daeSmartRef to the vertex_weights element. */ const domVertex_weightsRef getVertex_weights() const { return elemVertex_weights; } /** * Gets the extra element array. * @return Returns a reference to the array of extra elements. */ domExtra_Array &getExtra_array() { return elemExtra_array; } /** * Gets the extra element array. * @return Returns a constant reference to the array of extra elements. */ const domExtra_Array &getExtra_array() const { return elemExtra_array; } protected: /** * Constructor */ domSkin() : attrSource(), elemBind_shape_matrix(), elemSource_array(), elemJoints(), elemVertex_weights(), elemExtra_array() {} /** * Destructor */ virtual ~domSkin() {} /** * Copy Constructor */ domSkin( const domSkin &cpy ) : daeElement() { (void)cpy; } /** * Overloaded assignment operator */ virtual domSkin &operator=( const domSkin &cpy ) { (void)cpy; return *this; } public: // STATIC METHODS /** * Creates an instance of this class and returns a daeElementRef referencing it. * @param bytes The size allocated for this instance. * @return a daeElementRef referencing an instance of this object. */ static DLLSPEC daeElementRef create(daeInt bytes); /** * Creates a daeMetaElement object that describes this element in the meta object reflection framework. * If a daeMetaElement already exists it will return that instead of creating a new one. * @return A daeMetaElement describing this COLLADA element. */ static DLLSPEC daeMetaElement* registerElement(); public: // STATIC MEMBERS /** * The daeMetaElement that describes this element in the meta object reflection framework. */ static DLLSPEC daeMetaElement* _Meta; }; #endif
domSkin.h
网页地址
文件地址
上一页
159/174
下一页
下载
( 19 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.