VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgWindowLineGroup.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <vrvCore/DtUniqueID.h>
16 
17 #include <vrvUtil/signalslib.h>
18 
19 namespace makVrv
20 {
21  class DtDe;
22  class DtOsgWindowLineGroupInstance;
28  {
29  public:
32 
34  virtual ~DtOsgWindowLineGroup();
35 
36 
39  virtual void setLineCount( unsigned int count );
40 
42  virtual void addLine( float lineWidth, unsigned int stipplePattern, float xVertex0, float yVertex0, float xVertex1, float yVertex1 );
43 
49  virtual void updateLine( unsigned int index, float lineWidth, unsigned int stipplePattern, float xVertex0, float yVertex0, float xVertex1, float yVertex1 );
50 
52  virtual void setVisible( bool isVisible );
53 
55  virtual void setColor( float r, float g, float b, float a );
56 
59  virtual void setGroup( int groupId );
60 
65  virtual void setChannelOverlay( const std::string& displayName,
66  const std::string& windowName, const std::string& channelName ) override;
67  protected:
69  virtual void update();
70 
72  virtual void needsUpdate();
73  protected:
76 
77  boost::signalslib::connection mySignalPostUpdateConnection;
78  };
79 }
Contains makVrv::DtWindowLineGroup class.
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
This class updates vertices for each line added via addLine. They are stored in a vector of LineStruc...
Definition: DtOsgWindowLineGroupInstance.h:34
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
boost::signalslib::connection mySignalPostUpdateConnection
Definition: DtOsgWindowLineGroup.h:77
OSG implementation of a DtWindowLineGroup. A model-like object that controls a group of 2D Lines...
Definition: DtOsgWindowLineGroup.h:27
Contains makVrv::DtUniqueID type.
A model-like object that controls a group of 2D Lines. This class means that you do not need to store...
Definition: DtWindowLineGroup.h:28
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:72
bool myConnectedToPostUpdate
Definition: DtOsgWindowLineGroup.h:75
DtOsgWindowLineGroupInstance * myInstance
Definition: DtOsgWindowLineGroup.h:74

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)