VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
circleVisualHandler.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: CircleVisualHandler.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
9 //\file CircleVisualHandler.h
10 //\ingroup vrfGuiCore
11 //\brief Contains makVrv::CircleVisualHandler class. A simple handler
12 //\that creates ellipse agent used to
13 //\draw an ellipse based around the selected entity's location.
14 #pragma once
15 
16 #include <vrvCore/DtUniqueID.h>
17 
18 #include <vlutil/vlString.h>
19 #include <matrix/vlVector.h>
20 #include <string>
21 
22 namespace makVrv
23 {
24  class DtDe;
25  class DtBaseConnection;
26  class DtStateListener;
27  class DtOverlayEllipseArcModelAgent;
28  class DtEllipsoidArcModelAgent;
29  class DtSceneObjectAgent;
30 }
31 
32 class Circle;
33 
34 namespace makVrf
35 {
36  class DtAttachableUpdaterWithLevelOrientationAgent;
37 }
38 
39 namespace makVrfUnitStatusExample
40 {
42  {
43  public:
45  virtual ~CircleVisualHandler();
46 
47  //\brief Called to update the circle with latest position
48  virtual void update(const DtVector & geoc);
49 
50  //Will depend on the model set in use.
51  //The model set is an interger value that describes the current observer model set.
52  //0-4 will correspond to 3D versions so we will want to use the 3D version of the ellipse
53  //otherwise we use the 2D version
54  virtual void update2D(int modelSet);
55  virtual void update3D(int modelSet);
56  static std::string handlerType();
57  virtual void init();
58 
59  protected:
62  //This is the base scene object
63  makVrv::DtSceneObjectAgent * mySceneObject;
64  //This is the agent we attach to the scene object to actually draw the object in the scene
65  //Whether we use 2D or 3D will depend on what model set we are using
66  makVrv::DtOverlayEllipseArcModelAgent* my2DEllipseAgent;
67  makVrv::DtEllipsoidArcModelAgent* my3DEllipseAgent;
68  //Need to make sure we recreate 3dEllipse agent if we switch observer modes
71 
72  makVrf::DtAttachableUpdaterWithLevelOrientationAgent* myLevelAgent;
73  };
74 
76  {
77  public:
79 
81  };
82 }
virtual CircleVisualHandler * create(makVrv::DtDe &, makVrv::DtUniqueID)
makVrv::DtBaseConnection * mySimulation
Definition: circleVisualHandler.h:70
virtual void update(const DtVector &geoc)
Definition: vrfObjectManipulationHandlerBaseClass.h:56
makVrv::DtEllipsoidArcModelAgent * my3DEllipseAgent
Definition: circleVisualHandler.h:67
CircleVisualHandler(makVrv::DtDe &, makVrv::DtUniqueID id)
The DtBaseConnection is an abstract class.
Definition: DtBaseConnection.h:37
makVrf::DtAttachableUpdaterWithLevelOrientationAgent * myLevelAgent
Definition: circleVisualHandler.h:72
makVrv::DtSceneObjectAgent * mySceneObject
Definition: circleVisualHandler.h:63
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
Definition: circleVisualHandler.h:75
Contains makVrv::DtUniqueID type.
makVrv::DtDe & myDe
Definition: circleVisualHandler.h:60
makVrv::DtOverlayEllipseArcModelAgent * my2DEllipseAgent
Definition: circleVisualHandler.h:66
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
makVrv::DtUniqueID myUniqueId
Definition: circleVisualHandler.h:61
Definition: circleVisualHandler.h:41
int my3DModelSet
Definition: circleVisualHandler.h:69

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)