VR-Forces 4.5 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 
33  bool isEqual(const DtElementDefinitionNew&) const;
34 
36  int numberOfVisualizerDefinitionSets() const;
37 
40  DtVisualizerDefinitionSet& visualizerDefinitionSet(int modelSet);
41 
45  const DtVisualizerDefinitionSet& visualizerDefinitionSet(
46  int modelSet) const;
47 
50  DtElementDefinitionNew* findParent();
51 
54  const DtElementDefinitionNew* findParent() const;
55 
58  unsigned int numberOfChildren() const;
59 
62  DtElementDefinitionNew* findChild(unsigned int index);
63 
66  const DtElementDefinitionNew* findChild(unsigned int index) const;
67 
71  int findChildIndex(const DtElementDefinitionNew* child) const;
72 
77  DtVisualizerDefinition* findOrCreateLocalVisualizer(int modelSet,
78  int visualizerIndex);
79 
84  DtVisualizerAttribute* findOrCreateLocalAttribute(int modelSet,
85  int visualizerIndex,const std::string& attributeName);
86 
88  bool isHier() const;
89 
91  void setIsHier(bool isHier);
92 
94  DtElementDefinitionNew* clone() const;
95 
96  protected:
97 
101 
103  DtElementDefinitionNew(const DtUnicode& name);
104 
107 
110 
113  DtElementDefinitionNew* clone(const DtUnicode& name,
114  DtElementDefinitionNew* newParent) const;
115 
117  void setName(const DtUnicode& name);
118 
120  void addChild(DtElementDefinitionNew* child);
121 
123  void removeChild(DtElementDefinitionNew* child);
124 
125  protected:
126 
127  typedef std::vector<DtElementDefinitionNew*> DefinitionList;
128  typedef std::vector<DtVisualizerDefinitionSet*> DefinitionSetList;
129 
132  bool myIsHier;
133 
136 
137  };
138 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)