VR-Forces 4.3 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 
55  virtual void setColor( float r, float g, float b, float alpha );
56  virtual void setLineWidth( double lineWidth );
57 
58  virtual void setVisible( bool visible );
59  virtual void setPosition( int vtx, const DtVector& position );
60  virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
61 
62  virtual void setSolid( bool solid );
63 
65 
67  virtual void setOccluded( bool );
68 
72  virtual void setLineSmoothing(bool);
73 
74  //@name Local Interface
76 
77  virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
78  int visualizerType );
79  virtual void addToSceneAsProp( const DtUniqueID& sceneObjectId );
80  virtual void removeFromScene();
81 
83 
86  virtual void setModelScalingEnabled( bool b );
87 
89  virtual void setLocalModelScalingEnabled( bool enabled );
90 
92  virtual void setLocalModelScalingAmount( float localScale );
93 
94  protected:
95 
97  osg::Vec4 myColor;
98  double myLineWidth;
99 
100  };
101 
102 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)