VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWindowEntityAttachedSurface.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 <vrvCore/vrvCore.h>
13 #include <vrvCore/DtWindowObject.h>
14 #include <vrvCore/DtUniqueID.h>
16 
17 #include <vrvUtil/signalslib.h>
18 
19 namespace makVrv
20 {
21  class DtDe;
22  class DtSceneObject;
23  class DtChannel;
24 
33  {
34  public:
37 
40 
42  virtual void needsUpdate();
43 
45  virtual void setEntity( DtUniqueID entityId );
46 
50  virtual void slot_sceneObjectToBeDeleted();
51 
53  virtual void setChannel( DtChannel* channel );
54 
56  virtual void setChannelOverlay( const std::string& displayName,
57  const std::string& windowName, const std::string& channelName ) override;
58 
62  virtual void setOffsets( float xOffset, float yOffset, float zOffset );
63 
66  virtual void setSurfaceWidthHeight( float width, float height );
67 
76  virtual void setSurfaceCoordinateExtents( float minU, float minV, float maxU, float maxV );
77  protected:
79  void clamp( double& x, double lower, double upper );
80  protected:
83  boost::signalslib::connection myEntityDeletedSignal;
84  float myXOffset;
85  float myYOffset;
86  float myZOffset;
89  };
90 }
DtSceneObject * myEntity
Definition: DtWindowEntityAttachedSurface.h:81
float myXOffset
Definition: DtWindowEntityAttachedSurface.h:84
DtChannel * myChannel
Definition: DtWindowEntityAttachedSurface.h:82
float myYOffset
Definition: DtWindowEntityAttachedSurface.h:85
float mySurfaceHeight
Definition: DtWindowEntityAttachedSurface.h:88
The abstract Channel Class.
Definition: DtChannel.h:35
Contains makVrv::DtWindowSurface class.
This surface is attached onto an entity. The surface will adjust its position on screen to that of th...
Definition: DtWindowEntityAttachedSurface.h:32
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
float mySurfaceWidth
Definition: DtWindowEntityAttachedSurface.h:87
A DtSceneObject represents an object that can be positioned in the scene by (possibly) attaching it t...
Definition: DtSceneObject.h:42
Contains makVrv::DtUniqueID type.
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
float myZOffset
Definition: DtWindowEntityAttachedSurface.h:86
Contains makVrv::DtWindowObject class.
Class for creating a &quot;surface&quot; inside a channel coordinates. Allows clip coordinates to be set...
Definition: DtWindowSurface.h:26
boost::signalslib::connection myEntityDeletedSignal
Definition: DtWindowEntityAttachedSurface.h:83
Contains DLL export macros.

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)