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

« back to all changes in this revision

Viewing changes to Externals/MayaDataModel/include/MayaDMNurbsDimShape.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_NURBSDIMSHAPE_H__
 
11
#define __MayaDM_NURBSDIMSHAPE_H__
 
12
#include "MayaDMTypes.h"
 
13
#include "MayaDMConnectables.h"
 
14
#include "MayaDMDimensionShape.h"
 
15
namespace MayaDM
 
16
{
 
17
class NurbsDimShape : public DimensionShape
 
18
{
 
19
public:
 
20
public:
 
21
 
 
22
        NurbsDimShape():DimensionShape(){}
 
23
        NurbsDimShape(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
 
24
                :DimensionShape(file, name, parent, "nurbsDimShape", shared, create){}
 
25
        virtual ~NurbsDimShape(){}
 
26
 
 
27
        void setUParamValue(double upv)
 
28
        {
 
29
                if(upv == 0.0) return;
 
30
                fprintf(mFile,"\tsetAttr \".upv\" %f;\n", upv);
 
31
        }
 
32
        void setVParamValue(double vpv)
 
33
        {
 
34
                if(vpv == 0.0) return;
 
35
                fprintf(mFile,"\tsetAttr \".vpv\" %f;\n", vpv);
 
36
        }
 
37
        void getUParamValue()const
 
38
        {
 
39
                fprintf(mFile,"\"%s.upv\"",mName.c_str());
 
40
        }
 
41
        void getVParamValue()const
 
42
        {
 
43
                fprintf(mFile,"\"%s.vpv\"",mName.c_str());
 
44
        }
 
45
        void getNurbsGeometry()const
 
46
        {
 
47
                fprintf(mFile,"\"%s.ng\"",mName.c_str());
 
48
        }
 
49
protected:
 
50
        NurbsDimShape(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
 
51
                :DimensionShape(file, name, parent, nodeType, shared, create) {}
 
52
 
 
53
};
 
54
}//namespace MayaDM
 
55
#endif//__MayaDM_NURBSDIMSHAPE_H__