VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgWindowTriangleGroup.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 DtOsgWindowTriangleGroupInstance;
28  {
29  public:
32 
34  virtual ~DtOsgWindowTriangleGroup();
35 
36 
39  virtual void setTriangleCount( unsigned int count );
40 
42  virtual void addTriangle( unsigned int stipplePattern, float xVertex0, float yVertex0,
43  float xVertex1, float yVertex1, float xVertex2, float yVertex2 );
44 
50  virtual void updateTriangle( unsigned int index, unsigned int stipplePattern,
51  float xVertex0, float yVertex0, float xVertex1, float yVertex1,
52  float xVertex2, float yVertex );
53 
55  virtual void setVisible( bool isVisible );
56 
58  virtual void setColor( float r, float g, float b, float a );
59 
62  virtual void setGroup( int groupId );
63 
68  virtual void setChannelOverlay( const std::string& displayName,
69  const std::string& windowName, const std::string& channelName ) override;
70  protected:
72  virtual void update();
73 
75  virtual void needsUpdate();
76  protected:
79  boost::signalslib::connection mySignalPostUpdateConnection;
80  };
81 }
boost::signalslib::connection mySignalPostUpdateConnection
Definition: DtOsgWindowTriangleGroup.h:79
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtOsgWindowTriangleGroupInstance * myInstance
Definition: DtOsgWindowTriangleGroup.h:77
bool myConnectedToPostUpdate
Definition: DtOsgWindowTriangleGroup.h:78
OSG Implementation of DtWindowTriangleGroup. A model-like object that controls a group of 2D Triangle...
Definition: DtOsgWindowTriangleGroup.h:27
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains makVrv::DtWindowTriangleGroup class.
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:76
A model-like object that controls a group of 2D Triangles. This class means that you do not need to s...
Definition: DtWindowTriangleGroup.h:26
This class updates vertices for each triangle added via addTriangle. They are stored in a vector of t...
Definition: DtOsgWindowTriangleGroupInstance.h:33

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)