VR-Forces 5.0.1 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) 2020 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 namespace makVrv
18 {
19  class DtDe;
20  class DtOsgWindowTriangleGroupInstance;
26  {
27  public:
30 
32  virtual ~DtOsgWindowTriangleGroup();
33 
34 
37  virtual void setTriangleCount( unsigned int count );
38 
40  virtual void addTriangle( unsigned int stipplePattern, float xVertex0, float yVertex0,
41  float xVertex1, float yVertex1, float xVertex2, float yVertex2 );
42 
48  virtual void updateTriangle( unsigned int index, unsigned int stipplePattern,
49  float xVertex0, float yVertex0, float xVertex1, float yVertex1,
50  float xVertex2, float yVertex );
51 
53  virtual void setVisible( bool isVisible );
54 
56  virtual void setColor( float r, float g, float b, float a );
57 
60  virtual void setGroup( int groupId );
61 
66  virtual void setChannelOverlay( const std::string& displayName,
67  const std::string& windowName, const std::string& channelName ) override;
68  protected:
70  virtual void update();
71 
73  virtual void needsUpdate();
74  protected:
77  };
78 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtOsgWindowTriangleGroupInstance * myInstance
Definition: DtOsgWindowTriangleGroup.h:75
bool myConnectedToPostUpdate
Definition: DtOsgWindowTriangleGroup.h:76
OSG Implementation of DtWindowTriangleGroup. A model-like object that controls a group of 2D Triangle...
Definition: DtOsgWindowTriangleGroup.h:25
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:70
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)