VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDecalProjectorLine.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 
13 
15 
16 namespace makVrv
17 {
18  class DtDe;
19  class DtDecalProjectorComponentInterface;
20  class DtOverlayRendererInterface;
21  class DtPickableDecalProjector;
22  class DtTextureInterface;
23  class DtWidgetPicker;
24 
35  {
36  public:
37 
38  typedef std::vector<DtVector> PointVector;
39 
41 
43  DtDecalProjectorLine(DtDe& de, DtChannel* channel, DtModelSetId modelSet);
44 
46  virtual ~DtDecalProjectorLine();
47 
49  DtDecalProjectorLine() = delete;
50 
53 
55  DtDecalProjectorLine& operator=(const DtDecalProjectorLine&) = delete;
56 
57  public:
58 
60  virtual void setTexture(const std::string texture) override;
61 
64  virtual void setStipplePattern(unsigned int stipplePattern[32]) override;
65 
68  virtual void setColor(float r, float g, float b, float a) override;
69 
71  virtual void setLineWidth(float width) override;
72 
74  virtual void setPoints(const std::vector<DtVector>& points) override;
75 
80  virtual void setEventsEnabled(bool enabled, unsigned long long userData) override;
81 
82  protected:
83 
86  virtual void slot_pickerDestroyed();
87 
89  virtual void connectToPicker();
90 
93  void disconnectFromPicker();
94 
97  virtual void update();
98 
99  protected:
100 
103 
105 
106  float myColor[4];
107  float myLineWidth;
108 
109  unsigned int myFullStipplePattern[32];
110 
112 
114 
119  unsigned long long myPickerUserData;
121  };
122 
123 
124 
127  {
128  public:
129 
130  virtual DtDecalProjectorLine* create(DtDe& de,
131  DtChannel* channel, DtModelSetId modelSet);
132  };
133 }
134 
Contains the makVrv::DtDecalProjectorLineInterface class declaration.
DtTextureInterface * myTexture
Definition: DtDecalProjectorLine.h:111
DtDecalProjectorComponentInterface * myDecalProjectorComponent
Definition: DtDecalProjectorLine.h:113
creator for DtDecalProjectorLine
Definition: DtDecalProjectorLine.h:126
Definition: DtDecalProjectorLineInterface.h:63
unsigned long long myPickerUserData
Definition: DtDecalProjectorLine.h:119
This class represents a decal projector line which is a line that will be projected on the 3D terrain...
Definition: DtDecalProjectorLine.h:34
Interface for a texture. Used to pass in a texture to vrvGraphics.
Definition: DtTextureInterface.h:24
DtWidgetPicker * myPicker
Definition: DtDecalProjectorLine.h:116
DtOverlayRendererInterface * myRenderer
Definition: DtDecalProjectorLine.h:102
The DtPickableDecalProjector is a pickable widget used to pick a decal projector interface.
Definition: DtPickableWidget.h:362
PointVector myLinePoints
Definition: DtDecalProjectorLine.h:104
creator for DtDecalProjectorPolygon
Definition: DtDecalProjectorPolygon.h:249
A class which represents a component for a decal projector.
Definition: DtDecalProjectorComponentInterface.h:43
The abstract Channel Class.
Definition: DtChannel.h:35
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
bool myPickerConnected
Definition: DtDecalProjectorLine.h:118
DtDe & myDe
Definition: DtDecalProjectorLine.h:101
float myLineWidth
Definition: DtDecalProjectorLine.h:107
DtPickableDecalProjector * myPickableDecalProjector
Definition: DtDecalProjectorLine.h:120
bool myPickable
Definition: DtDecalProjectorLine.h:115
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
std::vector< DtVector > PointVector
Definition: DtDecalProjectorLine.h:38
DtModelSetId
Definition: DtModelSetEnums.h:19
An interface for a decal projector line.
Definition: DtDecalProjectorLineInterface.h:29
The DtOverlayRendererInterface implements the overlay concept. An overlay is a 2D scene that is drawn...
Definition: DtOverlayRendererInterface.h:80
The picker class which allocates and does picking operations on widgets.
Definition: DtWidgetPicker.h:53
bool myPickerEventsEnabled
Definition: DtDecalProjectorLine.h:117

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)