VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
placeObjectEvent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
10 
12 #include "vrfutil/rwUUID.h"
13 #include <vrfMsgTransport/events.h>
14 #include <matrix/vlVector.h>
15 
17 {
18 public:
21  virtual ~DtPlaceObjectEvent();
22 
23  virtual DtEvent* clone() const { return new DtPlaceObjectEvent(*this); };
24 
27  virtual bool processLocally() const { return true; };
28  virtual bool isNetworkEvent() const { return false; };
29 
30  void setUUID(const DtUUID&);
31  const DtUUID& uuid() const;
32 
34  void setLocation(const DtVector&);
35  bool locationSpecified() const;
36  const DtVector& location() const;
37 
39  void setHeading(double);
40  bool headingSpecified() const;
41  double heading() const;
42 
43 protected:
47  double myHeading;
49 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtUUID myUUID
Definition: placeObjectEvent.h:44
The DtPlaceObjectEvent will be handled by the object manager in order to place local objects using th...
Definition: placeObjectEvent.h:16
Contains the DtUUID class declaration.
double myHeading
Definition: placeObjectEvent.h:47
bool myLocationSpecified
Definition: placeObjectEvent.h:46
Definition: event.h:13
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtVector myLocation
Definition: placeObjectEvent.h:45
bool myHeadingSpecified
Definition: placeObjectEvent.h:48
virtual bool isNetworkEvent() const
Definition: placeObjectEvent.h:28
virtual bool processLocally() const
There are some events that, if sent over the network, don&#39;t want to be processed locally. Event these events (if not sent) do not want to be processed locally. Return false from this method to never process this event locally.
Definition: placeObjectEvent.h:27
virtual DtEvent * clone() const
Definition: placeObjectEvent.h:23

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)