VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgOverlayRectangleModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 #include <vrvCore/DtUniqueID.h>
16 
17 #include <osg/Vec3>
18 
19 #include <matrix/vlDcm.h>
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtCoordinateSystem;
25 
29  {
30  public:
33 
35  virtual ~DtOsgOverlayRectangleModel();
36 
37  //@name Distributed Interface
39 
41  virtual void setColor(float r,float g,float b,float a);
42 
44  virtual void setPosition( int vtx, const DtVector& position );
45 
47  virtual void setPoint(int vtx, const DtVector& position);
48 
50  virtual void set2dOffset(int index, float x, float y);
51 
53  virtual void setOrientation( const DtTaitBryan& orientation );
54  virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
55 
58  virtual void set3dDirection2dLength(int index, float x, float y, float z,
59  float len);
60 
62  virtual void setTexturePath(const std::string& texturePath);
63 
65  virtual void setNumTextureTiles(double numTiles);
66 
68  virtual void setSolid(bool solid);
69 
73  virtual void setIsSupportModel(bool isSupport);
74 
77  virtual void setGroup( int );
78 
80  virtual void setPickable(bool enabled);
81 
83  virtual void setStipplePattern(unsigned int stipplePattern);
84 
86  virtual void setWidth(float width);
87 
89  virtual void setEventWidth(float width);
90 
92  virtual void setEventsEnabled(bool);
93 
95  virtual void setDimensions(double width, double length, double altitudeOffset);
96 
98  virtual void resetSpatial();
99 
102  virtual void setOrigin(const DtVector&);
103 
105  virtual int pointCount() const;
106 
108  virtual DtVector point(int) const;
109 
111  virtual const std::vector<DtVector>& points() const;
112 
114 
115  //@name Local Interface
117 
119  virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet,
120  int visualizerType );
121 
123  virtual void removeFromScene();
124 
126  virtual void setModelDefinition( const std::string& str );
128 
130  virtual DtVector rotateToDatabase(const DtVector& pos, const DtVector& origin);
131 
133  virtual void setInsideColor( float r, float g, float b, float a );
134 
136  virtual void setOutsideColor( float r, float g, float b, float a );
137 
139  virtual void setSolidFillCenter(bool);
140 
144  virtual void setUseDynamicOrigin(bool);
145 
147  virtual void setFillPattern(const std::vector<unsigned int>&);
148 
151  virtual void setOutline(bool);
152 
154  virtual const DtVector& origin() const;
155 
156  protected:
158  virtual void update();
159 
161  virtual void needsUpdate();
162 
164  virtual void slot_coordinateSystemChanged();
165 
166 
167  protected:
172 
174  int myGroup;
176 
178 
181  DtCoordinateSystem* myCoordinateSystem = nullptr;
182  };
183 }
bool myNeedsUpdate
Definition: DtOsgOverlayRectangleModel.h:175
int myGroup
Definition: DtOsgOverlayRectangleModel.h:174
DtUniqueID myParentId
Definition: DtOsgOverlayRectangleModel.h:168
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
voidpf uLong int origin
Definition: ioapi.h:42
Distributed model for drawing rectangles on the overlay layer.
Definition: DtOverlayRectangleModel.h:19
DtVector myDimensions
Definition: DtOsgOverlayRectangleModel.h:170
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
DtSignalConnectionManager myConnections
Definition: DtOsgOverlayRectangleModel.h:177
The DtCoordinateSystem is used to manage the current coordinate system of the scene.
Definition: DtCoordinateSystem.h:40
bool myUseDynamicOrigin
Definition: DtOsgOverlayRectangleModel.h:173
OSG implementation of overlay polygon model.
Definition: DtOsgOverlayRectangleModel.h:28
Base class to provide boost signal/slot management.
DtVector myOrigin
Definition: DtOsgOverlayRectangleModel.h:171
Contains makVrv::DtUniqueID type.
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
DtDcm myOrientationDcm
Definition: DtOsgOverlayRectangleModel.h:169
Contains DtOverlayRectangleModel declaration.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)