VR-Forces 4.8 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 
67  virtual void addChild( DtUniqueID id );
68 
70  virtual void removeChild( DtUniqueID id );
71 
73  virtual void setPosition( double x, double y );
75  virtual void getPosition( double& x, double& y );
77 
79  virtual void setScale( double scale );
81  virtual void setScale( double x, double y );
82  virtual void getScale( double& x, double& y );
84 
86  virtual void setRotation( double rotation );
89  virtual void getRotation( double& rotation );
91 
93  virtual void setColor( float r, float g, float b, float a );
94  virtual void getColor( float& r, float& g, float& b, float& a );
95 
97  virtual void setInheritColor( bool inheritColor );
99  virtual bool inheritColor( );
101 
105  virtual void needsUpdate();
106 
109  virtual Transform windowTransform();
110 
113  virtual DtVector2d windowScale();
114 
116  virtual DtClipBox clipBox();
117  protected:
125  double myRotation;
126  bool myVisible;
128  float myColorR, myColorG, myColorB, myColorA;
132  };
133 }
DtVector2d TopRightLocation
Definition: DtWindowObject.h:39
3 dimensional matrix
2 dimensional vector
DtDe & myDe
Definition: DtWindowObject.h:118
DtVector2d myPosition
Definition: DtWindowObject.h:122
bool myVisible
Definition: DtWindowObject.h:126
Transform myRelativeTransform
Definition: DtWindowObject.h:129
float myColorR
Definition: DtWindowObject.h:128
double myRotation
Definition: DtWindowObject.h:125
DtMatrix3< double > Transform
typedef 3x3 Matrix for holding this object&#39;s transform
Definition: DtWindowObject.h:32
Transform myWindowTransform
Definition: DtWindowObject.h:130
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
DtUniqueID myUniqueId
Definition: DtWindowObject.h:119
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
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
bool myInheritColor
Definition: DtWindowObject.h:127
Contains makVrv::DtUniqueID type.
DtClipBox myClipBox
Definition: DtWindowObject.h:131
DtVector2d myScale
Definition: DtWindowObject.h:123
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtVector2d myWindowScale
Definition: DtWindowObject.h:124
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
DtVector2< double > DtVector2d
typedef 2D Vector
Definition: DtWindowObject.h:30
ChildList myChildIdList
Definition: DtWindowObject.h:121
DtUniqueID myParentId
Definition: DtWindowObject.h:120
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)