VR-Forces 5.0.1 Developer's Guide
 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 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 #include <vrvCore/DtUniqueID.h>
16 
17 #include <matrix/vlVector.h>
18 #include <matrix/vlTaitBryan.h>
19 
20 #include <osg/MatrixTransform>
21 
22 namespace osg
23 {
24  class Group;
25 }
26 
27 namespace makVrv
28 {
29 
30  class DtDe;
31  class DtOsgSceneConnector;
32 
39  : public DtScribeBoxModel
40  {
41  public:
42 
45 
47  virtual ~DtOsgScribeBoxModel();
48 
49  //@name Distributed Interface
51 
53  virtual void setColor( float r, float g, float b, float alpha );
54 
56  virtual void getColor( float& r, float& g, float& b, float& alpha);
57 
59  virtual void setLineWidth( double lineWidth );
60 
62  virtual double lineWidth() const;
63 
65  virtual void setVisible( bool visible );
66 
68  virtual void setPosition( int vtx, const DtVector& position );
69 
71  virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
72 
73  virtual void setIsSupportModel(bool isSupport);
74 
76 
78  virtual void setOccluded( bool );
79 
83  virtual void setLineSmoothing(bool);
84 
85  //@name Local Interface
87 
88  virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
89  int visualizerType );
90  virtual void addToSceneAsProp( const DtUniqueID& sceneObjectId );
91  virtual void removeFromScene();
92 
94 
97  virtual void setModelScalingEnabled( bool b );
98 
100  virtual void setLocalModelScalingEnabled( bool enabled );
101 
103  virtual void setLocalModelScalingAmount( float localScale );
104 
105  protected:
106 
108  osg::Vec4 myColor;
109  double myLineWidth;
111  };
112 }
double myLineWidth
Definition: DtOsgScribeBoxModel.h:109
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
This is a realization of DtScribeBoxModel. It is a model class that is used to create bounding scribe...
Definition: DtOsgScribeBoxModel.h:38
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:110
This is the abstract interface for a model class that is used to create attachable line objects...
Definition: DtScribeBoxModel.h:22
DtOsgSceneConnector * mySceneConnector
Definition: DtOsgScribeBoxModel.h:107
Contains makVrv::DtUniqueID type.
osg::Vec4 myColor
Definition: DtOsgScribeBoxModel.h:108
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
Distributed model for drawing shapes.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)