VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 }
double myLineWidth
Definition: DtOsgScribeBoxModel.h:112
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
This is a realization of DtScribeBoxModel.
Definition: DtOsgScribeBoxModel.h:41
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition: DtOsgSceneConnector.h:76
DtVector myPosition
Definition: DtOsgScribeBoxModel.h:113
This is the abstract interface for a model class that is used to create attachable line objects...
Definition: DtScribeBoxModel.h:25
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
DtOsgSceneConnector * mySceneConnector
Definition: DtOsgScribeBoxModel.h:110
Contains makVrv::DtUniqueID type.
osg::Vec4 myColor
Definition: DtOsgScribeBoxModel.h:111
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Distributed model for drawing shapes.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)