VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWindowObject.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/DtUniqueID.h>
16 
17 namespace makVrv
18 {
19  class DtDe;
20 
25  {
26  public:
28  typedef std::list< DtUniqueID > ChildList;
36  struct DtClipBox
37  {
40  };
43 
45  virtual ~DtWindowObject();
46 
48  virtual void setVisible(bool visible);
49  virtual bool visible();
50 
52  virtual DtUniqueID uniqueId();
53 
55  virtual void setParentId( DtUniqueID parentId );
57  virtual DtUniqueID getParentId();
59 
61  DtWindowObject* getParent();
62 
64  virtual ChildList childList();
65 
71  virtual void addChild( DtUniqueID id );
72 
74  virtual void removeChild( DtUniqueID id );
75 
77  virtual void setPosition( double x, double y );
79  virtual void getPosition( double& x, double& y );
81 
83  virtual void setScale( double scale );
85  virtual void setScale( double x, double y );
86  virtual void getScale( double& x, double& y );
88 
90  virtual void setRotation( double rotation );
93  virtual void getRotation( double& rotation );
95 
97  virtual void setColor( float r, float g, float b, float a );
98  virtual void getColor( float& r, float& g, float& b, float& a );
99 
101  virtual void setInheritColor( bool inheritColor );
103  virtual bool inheritColor( );
105 
107  virtual void setGroup( int id );
111  virtual int group();
113 
115  virtual void setFlashing( bool flashing, double interval );
117  virtual void getFlashing( bool& flashing, double& interval );
119 
122  virtual void slot_postTick();
123 
127  virtual void needsUpdate();
128 
131  virtual Transform windowTransform();
132 
134  virtual DtClipBox clipBox();
135 
137  virtual void setChannelOverlay( std::string displayName,
143  std::string windowName, std::string channelName );
144  virtual void getChannelOverlay( std::string& displayName,
145  std::string& windowName, std::string& channelName );
147  protected:
155  double myRotation;
159  bool myVisible;
163  float myColorR, myColorG, myColorB, myColorA;
166  int myGroup;
167  std::string myDisplayName;
168  std::string myWindowName;
169  std::string myChannelName;
170  };
171 }
double myFlashInterval
Definition: DtWindowObject.h:156
DtVector2d TopRightLocation
Definition: DtWindowObject.h:39
3 dimensional matrix
2 dimensional vector
DtDe & myDe
Definition: DtWindowObject.h:148
double myLastFlashTime
Definition: DtWindowObject.h:157
DtVector2d myPosition
Definition: DtWindowObject.h:152
bool myVisible
Definition: DtWindowObject.h:159
float myColorR
Definition: DtWindowObject.h:163
double myRotation
Definition: DtWindowObject.h:155
bool myLastVisibilityFlash
Definition: DtWindowObject.h:160
DtMatrix3< double > Transform
typedef 3x3 Matrix for holding this object&#39;s transform
Definition: DtWindowObject.h:32
std::string myChannelName
Definition: DtWindowObject.h:169
Transform myWindowTransform
Definition: DtWindowObject.h:164
DtVector2d BottomLeftLocation
Definition: DtWindowObject.h:38
std::list< DtUniqueID > ChildList
typedef list for holding the IDs of the children of this class
Definition: DtWindowObject.h:28
int myGroup
Definition: DtWindowObject.h:166
double myLastSimTime
Definition: DtWindowObject.h:158
DtUniqueID myUniqueId
Definition: DtWindowObject.h:149
Base class for a graphical object that exists in a window Implements a parenting system for DtWindowO...
Definition: DtWindowObject.h:24
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
std::string myDisplayName
Definition: DtWindowObject.h:167
std::string myWindowName
Definition: DtWindowObject.h:168
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
bool myInheritColor
Definition: DtWindowObject.h:161
Contains makVrv::DtUniqueID type.
DtClipBox myClipBox
Definition: DtWindowObject.h:165
DtVector2d myScale
Definition: DtWindowObject.h:153
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtVector2d myWindowScale
Definition: DtWindowObject.h:154
typedef for this objects&#39;s clip coords, each window object has a clip box specified, however, only DtWindowSurface()&#39;s can set the clip box limits.
Definition: DtWindowObject.h:36
bool myFlashing
Definition: DtWindowObject.h:162
DtVector2< double > DtVector2d
typedef 2D Vector
Definition: DtWindowObject.h:30
ChildList myChildIdList
Definition: DtWindowObject.h:151
DtUniqueID myParentId
Definition: DtWindowObject.h:150
Contains DLL export macros.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)