VR-Vantage API Documentation
DtModelClasses.hpp
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
7 
8 #ifndef DtModelClasses_H_
9 #define DtModelClasses_H_
10 
11 #include <vrvCore/vrvCore.h>
12 
13 #include <vrvCore/DtAgent.h>
14 #include <vrvCore/DtModelAgent.hpp>
15 
16 namespace makVrv
17 {
18 
21 {
22 public:
25 
27  virtual ~DtModelAgentImplementation();
28  //Set the model definition to be used to create the model instance.
29  virtual void setModelDefinition(const std::string& definitionName);
30 
31  //Save the model contents to a file.
32  virtual void saveModelToFile(const std::string& filename);
33 
35  virtual void setVisible(bool isVisible);
36 
37 
38  virtual void setContributesToBound(bool trueOrFalse);
39 
40 
41  virtual void enableColorBlending(bool b);
42 
43 
44  virtual void setBlendColor(float r,float g,float b,float a);
45 
46 
47  virtual void setColor(float r,float g,float b,float a);
48 
49 
50 protected:
51  virtual DtModel* findObjectAsDtModel();
52 
53 };
54 
55 }
56 
58 #include <vrvCore/DtModel.h>
59 
60 namespace makVrv
61 {
62 
65 {
66 public:
68  DtModelClassDefinition(const std::string& className = "DtModel");
69 
71  virtual ~DtModelClassDefinition();
72 
75  {
83  end_FunctionIds
84  };
85 
86 };
87 
88 }
89 #include <vrvCore/DtAgentCreator.h>
90 #include <vrvCore/DtAgentFactory.h>
91 
92 namespace makVrv
93 {
94 
95 class DtModelClassDefinition;
96 
99 {
100 public:
101 
104 
106  virtual ~DtModelClassesCreator();
107 
108  static makVrv::DtAgentCreator* create();
109 
111  virtual makVrv::DtAgent* createAgent(makVrv::DtAgentManagerInterface& sceneInterface);
112 
115 
116 protected:
118 
119  static bool theRegisteredFlag;
121 };
122 
123 }
124 
125 #endif
126 


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