VR-Vantage API Documentation
DtTreeModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtTreeModel.h,v $ $Revision: 1.17 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtTreeModel_H_
14 #define DtTreeModel_H_
15 
16 #include <vrvOsg/vrvOsg.h>
17 #include <vrvCore/DtModel.h>
19 #include <boost/signal.hpp>
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtTreeModelClassesCreator;
25 
29  {
30 
31  public:
32 
33  friend class DtTreeModelCreator;
35 
37  virtual ~DtTreeModel();
38 
40  virtual void setModelDefinition(const std::string& str);
41 
44  virtual std::string className() const;
45 
47  virtual void slot_modelInstanceCreated(DtModelInstance* instance);
48 
50  virtual void slot_modelInstanceToBeDestroyed(DtModelInstance* instance);
51 
53  boost::signal<void (const std::string&)> signal_treeModelInstanceToBeDestroyed;
54 
56  boost::signal<void (const std::string&)> signal_treeModelInstanceCreated;
57 
58  virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
59  int visualizerType );
60 
61  virtual void removeFromScene();
62 
64  virtual void setSolid(bool soild);
65 
66 
67  protected:
68 
71  DtTreeModel(DtDe& de, DtUniqueID id);
72 
73  protected:
74 
75  };
76 
80  {
81 
82  public:
83 
86  static DtTreeModelCreator& instance(DtDe& de);
87 
89  static void registerInstance(DtDe& de, DtTreeModelCreator* instance = 0);
90 
92  virtual DtTreeModel* create(DtDe& de, DtUniqueID id);
93 
94  };
95 }
96 
97 #endif
98 


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)