VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgWindowTriangleFanInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
16 
17 #include <osg/Vec2>
18 #include <osg/Matrix>
19 
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtFilledPolygon;
25  class DtChannelManager;
26  class DtChannel;
27 
33  {
34  public:
37 
40 
42  virtual void setVisible( bool isVisible );
43 
45  virtual void setFillPattern( unsigned int fillPattern );
46 
48  virtual void setNumVertices( unsigned int numVertices );
49 
51  virtual void setVertex( int i, double x, double y );
52 
54  virtual void setColor( float r, float g, float b, float a );
55 
57  virtual bool visible() const;
58 
61  virtual void setTransform( DtMatrix3<double> transform );
62 
64  virtual void update();
65 
68  virtual void setGroup( int groupId );
69 
74  virtual void setChannelOverlay( const std::string& displayName,
75  const std::string& windowName, const std::string& channelName ) override;
76 
79  void createTriangleFan();
80  protected:
81  typedef std::vector<osg::Vec2> VertexList;
82 
84  virtual void updateGeometry();
85 
87  virtual void setClipBox( DtVector2<double> bottomLeftLocation, DtVector2<double> topRightLocation );
88 
90  virtual void slot_channelToBeDestroyed(DtChannelManager*, DtChannel*);
91 
92  protected:
96  osg::Matrix myTransform;
97  unsigned int myFillPattern;
98  unsigned int myGroup;
99  float myColorR, myColorG, myColorB, myColorA;
102  bool myVisible;
104  osg::Vec2 myClipBoxTopRight;
105  std::string myDisplayName;
106  std::string myWindowName;
107  std::string myChannelName;
108 
110  };
111 
114  {
115  public:
118 
121  virtual DtWindowTriangleFanInstance* create();
122  };
123 }
std::string myChannelName
Definition: DtOsgWindowTriangleFanInstance.h:107
bool myVisible
Definition: DtOsgWindowTriangleFanInstance.h:102
std::string myWindowName
Definition: DtOsgWindowTriangleFanInstance.h:106
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
unsigned int myFillPattern
Definition: DtOsgWindowTriangleFanInstance.h:97
Interface for a DtWindowTriangleFanInstance. DtWindowTriangleFan calls the methods in this class whic...
Definition: DtWindowTriangleFanInstance.h:25
Creator for DtWindowTriangleFanInstance, will throw if you create on it. osg creator is registered in...
Definition: DtWindowTriangleFanInstance.h:67
unsigned int myGroup
Definition: DtOsgWindowTriangleFanInstance.h:98
A variable vertex convex filled 2D polygon.
Definition: DtFilledPolygon.h:26
VertexList myVertices
Definition: DtOsgWindowTriangleFanInstance.h:95
bool myGeometryDirty
Definition: DtOsgWindowTriangleFanInstance.h:100
The abstract Channel Class.
Definition: DtChannel.h:35
bool myUseChannelOverlay
Definition: DtOsgWindowTriangleFanInstance.h:101
DtDe & myDe
Definition: DtOsgWindowTriangleFanInstance.h:93
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
osg::Vec2 myClipBoxBottomLeft
Definition: DtOsgWindowTriangleFanInstance.h:103
std::string myDisplayName
Definition: DtOsgWindowTriangleFanInstance.h:105
osg::Vec2 myClipBoxTopRight
Definition: DtOsgWindowTriangleFanInstance.h:104
Base class for handling DtChannels. Derived classes should override the tick() method and advance the...
Definition: DtChannelManager.h:32
float myColorR
Definition: DtOsgWindowTriangleFanInstance.h:99
std::vector< osg::Vec2 > VertexList
Definition: DtOsgWindowTriangleFanInstance.h:81
Base class to provide boost signal/slot management.
osg::Matrix myTransform
Definition: DtOsgWindowTriangleFanInstance.h:96
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
OSG implementation of a 2D TriangleFan. A DtWindowTriangleFan calls DtWindowTriangleFanInstance&#39;s met...
Definition: DtOsgWindowTriangleFanInstance.h:32
DtSignalConnectionManager myConnections
Definition: DtOsgWindowTriangleFanInstance.h:109
Contains makVrv::DtWindowTriangleFanInstance class.
Creator for DtOsgWindowTriangleFanInstance.
Definition: DtOsgWindowTriangleFanInstance.h:113
DtFilledPolygon * myTriangleFan
Definition: DtOsgWindowTriangleFanInstance.h:94

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)