VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgScribeBoxModel.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2011 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 /*****************************************************************************
6  * $RCSfile: DtOsgScribeBoxModel.h,v $ $Revision: 1.13 $ $State: Exp $
7  *****************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvOsg/vrvOsg.h>
16 
18 #include <vrvCore/DtUniqueID.h>
19 
20 #include <matrix/vlVector.h>
21 #include <matrix/vlTaitBryan.h>
22 
23 #include <osg/MatrixTransform>
24 
25 namespace osg
26 {
27  class Group;
28 }
29 
30 namespace makVrv
31 {
32 
33  class DtDe;
34  class DtOsgSceneConnector;
35 
42  : public DtScribeBoxModel
43  {
44  public:
45 
48 
50  virtual ~DtOsgScribeBoxModel();
51 
52  //@name Distributed Interface
54 
56  virtual void setColor( float r, float g, float b, float alpha );
57 
59  virtual void getColor( float& r, float& g, float& b, float& alpha);
60 
62  virtual void setLineWidth( double lineWidth );
63 
65  virtual double lineWidth() const;
66 
68  virtual void setVisible( bool visible );
69 
71  virtual void setPosition( int vtx, const DtVector& position );
72 
74  virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
75 
76  virtual void setIsSupportModel(bool isSupport);
77 
79 
81  virtual void setOccluded( bool );
82 
86  virtual void setLineSmoothing(bool);
87 
88  //@name Local Interface
90 
91  virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
92  int visualizerType );
93  virtual void addToSceneAsProp( const DtUniqueID& sceneObjectId );
94  virtual void removeFromScene();
95 
97 
100  virtual void setModelScalingEnabled( bool b );
101 
103  virtual void setLocalModelScalingEnabled( bool enabled );
104 
106  virtual void setLocalModelScalingAmount( float localScale );
107 
108  protected:
109 
111  osg::Vec4 myColor;
112  double myLineWidth;
114  };
115 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)