VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
targetPointTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 #pragma once
15 
16 #include "vrftasks/simTask.h"
17 #include <readerWriter/rwString.h>
18 #include <matrix/vlVector.h>
19 #include <vlpi/netStructs.h>
20 
27 #include "readerWriter/rwVector.h"
29 {
30 
31 public:
32 
35 
38  DtTargetPointTask(const DtString& writeName,
39  DtReaderWriterRegistry* parentRegistry = NULL);
40  DtTargetPointTask(const DtSymbolString& writeName,
41  DtReaderWriterRegistry* parentRegistry = NULL);
42 
44  DtTargetPointTask(const DtString& writeName, const DtTargetPointTask& orig,
45  DtReaderWriterRegistry* parentRegistry = NULL);
46  DtTargetPointTask(const DtSymbolString& writeName, const DtTargetPointTask& orig,
47  DtReaderWriterRegistry* parentRegistry = NULL);
48 
50  const DtTargetPointTask & operator=(const DtTargetPointTask & orig);
51 
52  virtual ~DtTargetPointTask();
53 
55  virtual const DtSimTaskMessageType& type() const;
56 
58  virtual DtSimTask* clone(const DtString& name, DtReaderWriterRegistry*
59  parentRegistry = NULL) const;
61  parentRegistry = NULL) const;
62 
64  virtual DtString stringRep() const;
65 
66  virtual const DtVector & targetPoint() const;
67  virtual void setTargetPoint(const DtVector & targetPoint);
68 
71  virtual int netRepSize() const;
72 
74  virtual bool setFromNet(const char* contentBuffer,
75  unsigned contentSize);
76 
79  virtual bool setToNet();
80 
81  static DtSimTask * creator();
82 
83 protected:
84 
86 
87 };
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
Definition: readerWriterRegistry.h:39
virtual DtSimTask * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this task. Returns a newly allocated instance of a DtSimTask. Override this member fun...
Definition: rwVector.h:23
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubtask member from the incoming contentBuffer (cast to type DtNetSimTask). Derived classes should call down to this function first, and then extract their own data starting at the location contentBuffer + DtSimTask::netRepSize().
DtRwVector myTargetPoint
Definition: targetPointTask.h:85
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimTask*...
File: targetPtTask.h.
Definition: targetPointTask.h:28
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
virtual DtString stringRep() const =0
Returns a human-readable string representation of the task. This string representation is used to dis...
const DtSimTask & operator=(const DtSimTask &orig)
assignment operator; same as copy constructor
virtual const DtSimTaskMessageType & type() const =0
What kind of task am I? Returns a string indicating the kind of task (for example, “move-to”, “follow-entity”). Derived classes must implement this member function to return a unique string representing the type of task. The set of standard task types supplied with VR-Forces is in taskTypes.h.
File: rwVector.h.
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class. This is the size in bytes of th...

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)