VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgSimpleModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 #include <vrvCore/DtModel.h>
14 #include <vrvCore/DtUniqueID.h>
15 #include <matrix/vlVector.h>
16 #include <matrix/vlTaitBryan.h>
17 
18 #include <osg/MatrixTransform>
20 namespace osg
21 {
22  class Group;
23 }
24 
25 namespace makVrv
26 {
27  class DtDe;
28  class DtOsgSceneConnector;
29 
36  {
37  public:
39 
40  virtual ~DtOsgSimpleModel();
41 
42  //@name Distributed Interface
44 
46  virtual void setModelDefinition(const std::string& str);
47  virtual void setVisible(bool visible);
48  virtual void setPosition(int vtx, const DtVector& position);
49  virtual void setOrientation(int vtx, const DtTaitBryan& orientation);
51 
52  //@name Local Interface
54  virtual void addToScene(const DtUniqueID& sceneObjectId, int modelSet,
55  int visualizerType);
56 
57  // Add to scene as a prop ( no modelset / visualizer type specified )
58  virtual void addToSceneAsProp(const DtUniqueID& sceneObjectId);
59  virtual void removeFromScene();
60 
64  virtual void setIsSupportModel(bool isSupport);
65 
67  virtual void getBoundingBoxComponents(DtVector& minimum, DtVector& maximum);
69 
71  virtual void setElementId(DtUniqueID id);
72 
74  virtual void enableColorBlending(bool b);
75 
77  virtual void setBlendColor(float r, float g, float b, float a);
78 
79  virtual void slot_atcModeEnableChanged(bool state);
80 
81  protected:
87  {
88  public:
89  virtual ~BoundingBoxCache();
92  };
93 
96  std::string myModelDefinition;
101  DtTaitBryan mySetOrientation;
102  DtVector myBoundMin, myBoundMax;
104 
105  };
106 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)