VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTexturedLine.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 
16 
17 namespace makVrv
18 {
19  class DtTexturedLineSegment;
20  class DtTextureInterface;
21  class DtDe;
22  class DtChannel;
23 
27  {
28  public:
29 
31  DtTexturedLine( DtDe& de, DtChannel* channel, DtModelSetId modelSet );
32 
35 
37  virtual ~DtTexturedLine();
38 
40  DtTexturedLine() = delete;
41 
43  DtTexturedLine( const DtTexturedLine& ) = delete;
44 
46  DtTexturedLine& operator=( const DtTexturedLine& ) = delete;
47 
48  public:
49 
51  virtual DtLineSegmentInterface* createAndInitNewSegment() override;
52 
54  virtual void setTexture( DtTextureInterface* texture ) override;
55 
58  virtual void setZoomFactor(float z) override;
59 
61  virtual void setRotationOffset(float) override;
62 
65  virtual void setGroup( int ) override;
66 
67  protected:
69  virtual void removeLineSegmentsUntilEndFrom(int segmentCount) override;
70 
72  virtual void setLineSegment(int, DtLineSegmentInterface*) override;
73 
74  protected:
75  using TexturedLineSegmentList = std::vector<DtTexturedLineSegment*>;
77 
79  float myZoomFactor;
81  };
82 
84  {
85  public:
87  virtual DtSegmentedLineInterface* create( DtDe& de, DtChannel* channel, DtModelSetId modelSet ) override;
88  };
89 }
Definition: DtTexturedLine.h:83
Draw a line with a texture.
Definition: DtTexturedLine.h:26
Contains makVrv::DtOverlayResourceProvider class.
DtTextureInterface * myTexture
Definition: DtTexturedLine.h:78
Interface for a texture. Used to pass in a texture to vrvGraphics.
Definition: DtTextureInterface.h:24
Definition: DtSegmentedLineInterface.h:141
An interface for a convex polygon drawn using lines.
Definition: DtSegmentedLineInterface.h:25
The abstract Channel Class.
Definition: DtChannel.h:35
An interface for a single line segment.
Definition: DtLineSegmentInterface.h:23
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
float myZoomFactor
Definition: DtTexturedLine.h:79
TexturedLineSegmentList myTexturedLineSegments
Definition: DtTexturedLine.h:76
float myRotationOffset
Definition: DtTexturedLine.h:80
std::vector< DtTexturedLineSegment * > TexturedLineSegmentList
Definition: DtTexturedLine.h:75
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
A convex polygon drawn using lines.
Definition: DtSegmentedLine.h:28
Contains the makVrv::DtSegmentedLine class declaration.
DtModelSetId
Definition: DtModelSetEnums.h:19
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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)