~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to Externals/MayaDataModel/include/MayaDMGeometryVarGroup.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2008-2009 NetAllied Systems GmbH
 
3
 
 
4
    This file is part of MayaDataModel.
 
5
 
 
6
    Licensed under the MIT Open Source License,
 
7
    for details please see LICENSE file or the website
 
8
    http://www.opensource.org/licenses/mit-license.php
 
9
*/
 
10
#ifndef __MayaDM_GEOMETRYVARGROUP_H__
 
11
#define __MayaDM_GEOMETRYVARGROUP_H__
 
12
#include "MayaDMTypes.h"
 
13
#include "MayaDMConnectables.h"
 
14
#include "MayaDMBaseGeometryVarGroup.h"
 
15
namespace MayaDM
 
16
{
 
17
class GeometryVarGroup : public BaseGeometryVarGroup
 
18
{
 
19
public:
 
20
public:
 
21
 
 
22
        GeometryVarGroup():BaseGeometryVarGroup(){}
 
23
        GeometryVarGroup(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
 
24
                :BaseGeometryVarGroup(file, name, parent, "geometryVarGroup", shared, create){}
 
25
        virtual ~GeometryVarGroup(){}
 
26
 
 
27
        void getCreate(size_t cr_i)const
 
28
        {
 
29
                fprintf(mFile,"\"%s.cr[%i]\"",mName.c_str(),cr_i);
 
30
        }
 
31
        void getCreate()const
 
32
        {
 
33
 
 
34
                fprintf(mFile,"\"%s.cr\"",mName.c_str());
 
35
        }
 
36
        void getLocal(size_t l_i)const
 
37
        {
 
38
                fprintf(mFile,"\"%s.l[%i]\"",mName.c_str(),l_i);
 
39
        }
 
40
        void getLocal()const
 
41
        {
 
42
 
 
43
                fprintf(mFile,"\"%s.l\"",mName.c_str());
 
44
        }
 
45
protected:
 
46
        GeometryVarGroup(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
 
47
                :BaseGeometryVarGroup(file, name, parent, nodeType, shared, create) {}
 
48
 
 
49
};
 
50
}//namespace MayaDM
 
51
#endif//__MayaDM_GEOMETRYVARGROUP_H__