VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSceneRoot.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 #include <vrvOsg/vrvOsg.h>
11 namespace makVrv
12 {
13  class DtChannel;
14 
20  {
21  public:
25  {
32  ChannelSpecific
33  };
34 
37  : myDomain(domain)
38  {}
39  DtSceneRoot(int modelSet)
40  : myDomain(ModelSetSpecific)
41  {
42  myParameter.modelSetId = modelSet;
43  }
44  DtSceneRoot(int modelSet, int visualizerType)
45  : myDomain(VisualizerTypeSpecific)
46  {
47  myParameter.modelSetId = modelSet;
48  myParameter.visualizerType = visualizerType;
49  }
50 
51  DtSceneRoot(int modelSet, DtChannel* channel)
52  : myDomain(ChannelSpecific)
53  {
54  myParameter.modelSetId = modelSet;
55  myParameter.channel = channel;
56  }
57 
58  bool operator==(const DtSceneRoot& rhs) const
59  {
60  if ( myDomain == ModelSetSpecific )
61  {
62  return myDomain == rhs.myDomain &&
63  myParameter.modelSetId == rhs.myParameter.modelSetId;
64  }
65  if ( myDomain == VisualizerTypeSpecific )
66  {
67  return myDomain == rhs.myDomain &&
68  myParameter.modelSetId == rhs.myParameter.modelSetId &&
69  myParameter.visualizerType == rhs.myParameter.visualizerType;
70  }
71  if ( myDomain == ChannelSpecific )
72  {
73  return myDomain == rhs.myDomain &&
74  myParameter.modelSetId == rhs.myParameter.modelSetId &&
75  myParameter.channel == rhs.myParameter.channel;
76  }
77  return myDomain == rhs.myDomain;
78  }
79 
82  struct
83  {
90  } myParameter;
91  };
92 
94  typedef std::vector<DtSceneRoot> DtSceneRootList;
95 
96 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)