VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWindowObjectsDriver.h
Go to the documentation of this file.
1 // /******************************************************************************
2 // ** Copyright (c) 2020 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrvCore/DtDriver.h>
12 #include <vrvCore/DtAgentManager.h>
13 #include <vrvCore/DtWindowObjectAgent.hpp>
14 #include <vrvCore/DtWindowPolygonAgent.hpp>
15 #include <vrvCore/DtWindowSurfaceAgent.hpp>
16 namespace makVrv
17 {
43  {
44  public:
47  {
48  Up = 0,
49  Left = 1,
50  Down = 2,
51  Right = 4
52  };
53 
55  typedef std::vector<DtWindowObjectAgent*> DtWindowObjects;
56 
59 
61  virtual ~DtWindowObjectsDriver();
62 
64  virtual const std::string& className() const;
65 
69  virtual void drawObject();
70 
72  virtual void drawPolygon();
73 
75  virtual void drawLine();
76 
78  virtual void drawText();
79 
81  virtual void drawEllipse();
82 
84  virtual void activateObjectType( int objectType );
85 
87  virtual void modifyActivateObjectId( bool increaseIdNumber );
88 
91  virtual void setParenting();
92 
95  virtual void modifyObjectVisibility();
96 
102  virtual void shiftWindowObjectPosition( DtDirection direction );
103 
107  virtual void scaleWindowObject( DtDirection direction );
108 
111  virtual void rotateWindowObject();
112 
113  virtual DtWindowObjectAgent* findWindowObjectAgent( int vecLocation );
114 
115  protected:
118  virtual bool onStart();
119 
121  virtual bool onStop();
122 
124  virtual bool onTick();
125 
128 
132 
136 
139 
141  DtWindowSurfaceAgent* mySurface;
142 
144  DtWindowPolygonAgent* mySurfaceClipBoxVisualPoly;
145  };
146 }
147 
virtual void drawLine()
Draw a line.
Definition: DtWindowObjectsDriver.h:48
DtWindowObjects myWindowAgents
Vector of the window agents.
Definition: DtWindowObjectsDriver.h:127
virtual void rotateWindowObject()
Rotate the currently selected window object Rotates clockwise in rads.
DtWindowPolygonAgent * mySurfaceClipBoxVisualPoly
Polygon for displaying clipping surface.
Definition: DtWindowObjectsDriver.h:144
virtual void shiftWindowObjectPosition(DtDirection direction)
Get the agent from the map at the param in key, get the position of the DtWindowObject() from the age...
*virtual const DtObjectType & objectType() const
Definition: DtWindowObjectsDriver.h:51
virtual void activateObjectType(int objectType)
Select which type of window object to draw.
std::vector< DtWindowObjectAgent * > DtWindowObjects
typedef vector for holding DtWindowObjectAgents
Definition: DtWindowObjectsDriver.h:55
virtual void setParenting()
Set parenting on/off Alternates on method call.
virtual bool onTick()
Stub implementation since this driver doesn&#39;t have anything that needs updating.
virtual DtWindowObjectAgent * findWindowObjectAgent(int vecLocation)
virtual ~DtWindowObjectsDriver()
Virtual DTOR.
Contains makVrv:DtAgentManager class.
The DtDriver is an abstract class.
Definition: DtDriver.h:34
DtWindowSurfaceAgent * mySurface
Surface for clipping window objects.
Definition: DtWindowObjectsDriver.h:141
virtual void drawObject()
Draw a window object.
virtual void drawText()
Draw test.
virtual bool onStart()
Called when the driver is started by the display engine Restores state that existed the last time the...
virtual void modifyActivateObjectId(bool increaseIdNumber)
Select which window object to current modify.
virtual const std::string & className() const
Get the class name as a string.
virtual bool onStop()
Called when the driver is stopped by the display engine.
DtDirection
Enum for moving window objects.
Definition: DtWindowObjectsDriver.h:46
This driver is responsible for creating DtWindowObjects The VR - Vantage Control Toolkit lets you cre...
Definition: DtWindowObjectsDriver.h:42
The DtAgentManager manages the distributed scene object framework.
Definition: DtAgentManager.h:38
Contains makVrv:DtDriver class.
virtual void modifyObjectVisibility()
Change the visibility of currently selected window object This will change the visibility of all its ...
virtual const std::string & instanceName() const
Get this driver&#39;s instance name.
int myActivatedObjectType
Location in the vector of the currently selected window object for control Checks vector bounds...
Definition: DtWindowObjectsDriver.h:131
bool myParenting
Whether the next created object will be a child of the previously created object. ...
Definition: DtWindowObjectsDriver.h:138
int myActivatedObjectId
The Object that is currently being moved This is a key for the myWindowAgentsMap. ...
Definition: DtWindowObjectsDriver.h:135
virtual void drawEllipse()
Draw a ellipse.
virtual void drawPolygon()
Draw a polygon.
virtual void scaleWindowObject(DtDirection direction)
Scale vertex methods This method will get the top parent window polygon from DtWindowObjectMap and sc...
Definition: DtWindowObjectsDriver.h:49
DtAgentManager & agentManager()
Get the master scene for this host.
DtWindowObjectsDriver(DtAgentManager &agentManager, const std::string &instanceName)
CTOR.
Definition: DtWindowObjectsDriver.h:50

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)