VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lasingControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: lasingCtlrDesc.h,v $ $Revision: 1.5 $ $State: Exp $
7 ** Created: 7/9/04, MEM Updated:7/19/04
8 *******************************************************************************/
9 
12 
18 
19 #pragma once
20 
23 #include <readerWriter/rwReal.h>
24 #include <readerWriter/rwInt.h>
25 #include "readerWriter/rwVector.h"
26 #include "vrfutil/simClock.h"
28 
34 {
35 protected:
38 
39 public:
42  DtReaderWriterRegistry * parentRegistry = 0);
43 
46  orig, DtReaderWriterRegistry * parentRegistry = 0);
47 
51 
52  virtual ~DtLasingControllerDescriptor() override;
53 
56  virtual DtString type() const override;
57 
59  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
60 
62  virtual void postGetSelf() override;
63 
65  virtual void setWavelength(DtReal wave);
66  virtual DtReal wavelength() const;
67 
69  virtual void setPower(DtReal pow);
70  virtual DtReal power() const;
71 
73  virtual void setDesignatorCode(int code);
74  virtual int designatorCode() const;
75 
77  virtual void setRange(DtReal range);
78  virtual DtReal range() const;
79 
81  virtual DtReal rangeSquared() const;
82 
84  virtual void setTaskable(bool isTaskable);
85  virtual bool taskable() const;
86 
88  virtual void setOffset(DtVector off);
89  virtual DtVector offset() const;
90 
92 
93  virtual DtTargetSelectionCriteria& targetSelectionCriteria();
94  virtual const DtTargetSelectionCriteria& targetSelectionCriteria() const;
96 
97  static DtComponentDescriptor * creator();
98 
99 protected:
105 
111 
117 
122 
127 
132 
137 
144 };
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
DtRwOffsetVector myOffset
Parameter Name: offset Parameter Description: A vector of meters used to offset the laser origin...
Definition: lasingControllerDescriptor.h:131
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
Defines a criteria for choosing targets for a single weapon system. This class stores all the informa...
Definition: targetSelectionCriteria.h:27
File: lasingCtlrDesc.h.
Definition: lasingControllerDescriptor.h:33
DtRwReal myPower
Parameter Name: power Parameter Description: The power of the laser, only used to publish to the netw...
Definition: lasingControllerDescriptor.h:110
File: vlClock.h.
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwReal myWavelength
Parameter Name: wave-length Parameter Description: The wavelength of the laser, only used to publish ...
Definition: lasingControllerDescriptor.h:104
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
DtRwBoolean myTaskable
Parameter Name: taskable Parameter Description: Boolean describing if the laser is taskable...
Definition: lasingControllerDescriptor.h:126
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtString type() const
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
Specialized vector that can be used for the knowledge of an &quot;offset&quot; rather than location vector...
Definition: rwVector.h:112
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
static DtComponentDescriptor * creator()
DtRwInt myDesignatorCode
Parameter Name: designator-prf-lasing-code Parameter Description: A semi-random integer meant to tell...
Definition: lasingControllerDescriptor.h:116
DtRwReal myRange
Parameter Name: range Parameter Description: Max range of laser in meters. Parameter Default Value: ...
Definition: lasingControllerDescriptor.h:121
voidpf uLong offset
Definition: ioapi.h:42
DtReal myRangeSquared
Value is not settable via sysdef so it was decided not to add to docs. This is the range multiplied b...
Definition: lasingControllerDescriptor.h:136
File: rwVector.h.
DtTargetSelectionCriteria myTargetSelectionCriteria
Parameter Name: targeting-control Parameter Description: List of DtTargetSelectionCriteria objects...
Definition: lasingControllerDescriptor.h:143

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)