2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of MayaDataModel.
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
10
#ifndef __MayaDM_CONTAINER_H__
11
#define __MayaDM_CONTAINER_H__
12
#include "MayaDMTypes.h"
13
#include "MayaDMConnectables.h"
14
#include "MayaDMDependNode.h"
17
class Container : public DependNode
22
Container():DependNode(){}
23
Container(FILE* file,const std::string& name,const std::string& parent="",bool shared=false,bool create=true)
24
:DependNode(file, name, parent, "container", shared, create){}
25
virtual ~Container(){}
27
void setIsCollapsed(bool isc)
29
if(isc == false) return;
30
fprintf(mFile,"\tsetAttr \".isc\" %i;\n", isc);
32
void getHyperLayout()const
34
fprintf(mFile,"\"%s.hl\"",mName.c_str());
36
void getIsCollapsed()const
38
fprintf(mFile,"\"%s.isc\"",mName.c_str());
41
Container(FILE* file,const std::string& name,const std::string& parent,const std::string& nodeType,bool shared=false,bool create=true)
42
:DependNode(file, name, parent, nodeType, shared, create) {}
46
#endif//__MayaDM_CONTAINER_H__