VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtElementDefinitionNew.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 #include <vector>
8 #include <vrvUtil/DtUnicode.h>
10 #include <vrvCore/vrvCore.h>
11 
12 namespace makVrv
13 {
14 
15  class DtVisualizerAttribute;
16  class DtVisualizerDefinition;
17  class DtElementDefinitionManager;
18 
23  {
24  public:
25 
28  const DtUnicode& name() const;
29 
31  int numberOfVisualizerDefinitionSets() const;
32 
35  DtVisualizerDefinitionSet& visualizerDefinitionSet(int modelSet);
36 
40  const DtVisualizerDefinitionSet& visualizerDefinitionSet(
41  int modelSet) const;
42 
45  DtElementDefinitionNew* findParent();
46 
49  const DtElementDefinitionNew* findParent() const;
50 
53  unsigned int numberOfChildren() const;
54 
57  DtElementDefinitionNew* findChild(unsigned int index);
58 
61  const DtElementDefinitionNew* findChild(unsigned int index) const;
62 
66  int findChildIndex(const DtElementDefinitionNew* child) const;
67 
72  DtVisualizerDefinition* findOrCreateLocalVisualizer(int modelSet,
73  int visualizerIndex);
74 
79  DtVisualizerAttribute* findOrCreateLocalAttribute(int modelSet,
80  int visualizerIndex,const std::string& attributeName);
81 
82  protected:
83 
87 
89  DtElementDefinitionNew(const DtUnicode& name);
90 
93 
96 
99  DtElementDefinitionNew* clone(const DtUnicode& name,
100  DtElementDefinitionNew* newParent) const;
101 
103  void setName(const DtUnicode& name);
104 
106  void addChild(DtElementDefinitionNew* child);
107 
109  void removeChild(DtElementDefinitionNew* child);
110 
111  protected:
112 
113  typedef std::vector<DtElementDefinitionNew*> DefinitionList;
114  typedef std::vector<DtVisualizerDefinitionSet*> DefinitionSetList;
115 
118 
121 
122  };
123 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)