VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifSetThresholds.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
7 #include <vlutil/vlString.h>
9 #include <vlpi/netStructs.h>
10 
14 {
15  DtNetFloat64 myTranslation;
16  DtNetFloat64 myRotation;
17  DtNetFloat64 myAggDimension;
18  DtNetBoolean myTranslationSpecified;
19  DtNetBoolean myRotationSpecified;
20  DtNetBoolean myAggDimensionSpecified;
21  DtNetBoolean myPadding1;
22  DtNetU32 myPadding2;
23 };
24 
33 #include "vrfmsgs/vrfmsgsDefines.h"
35 {
36 
37 public:
40 
43 
45  const DtIfSetThresholds & operator=(const DtIfSetThresholds & orig);
46 
47  virtual ~DtIfSetThresholds();
48 
50  virtual int type() const;
51 
53  virtual DtSimInterfaceContent * clone() const;
54 
56  virtual void setRotationThreshold(DtReal thresh);
58  virtual double rotationThreshold() const;
59 
61  virtual void setTranslationThreshold(DtReal thresh);
63  virtual double translationThreshold() const;
64 
68  virtual void setAggDimensionThreshold(DtReal thresh);
69  virtual double aggDimensionThreshold() const;
70 
72  virtual bool isRotationThresholdSpecified();
74  virtual bool isTranslationThresholdSpecified();
76  virtual bool isAggDimensionThresholdSpecified();
77 
79  virtual void printDataToString(DtString& str);
80 
82  virtual int netRepSize() const;
83 
85  virtual bool setFromNet(const char* contentBuffer,
86  unsigned contentSize);
87 
89  virtual bool setToNet();
90 
92  static DtSimInterfaceContent* creator();
93 
94 protected:
95 
96  DtReal myTranslation;
98  DtReal myRotation;
102 };
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simInterfaceContent.h:78
DtNetFloat64 myAggDimension
8 bytes
Definition: ifSetThresholds.h:17
virtual int netRepSize() const
Definition: simInterfaceContent.h:76
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
DtNetU32 myPadding2
1 byte
Definition: ifSetThresholds.h:22
virtual int type() const =0
DtNetFloat64 myTranslation
Definition: ifSetThresholds.h:15
DtReal myAggDimension
Definition: ifSetThresholds.h:100
DtReal myRotation
Definition: ifSetThresholds.h:98
bool myRotationSpecified
Definition: ifSetThresholds.h:99
This is the FIXED length portion of a DtIfSetThresholds message content when placed on the network...
Definition: ifSetThresholds.h:13
virtual void printDataToString(DtString &str)
DtNetBoolean myPadding1
1 byte
Definition: ifSetThresholds.h:21
DtNetFloat64 myRotation
8 bytes
Definition: ifSetThresholds.h:16
Total: 32 bytes.
Definition: ifSetThresholds.h:34
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
DtNetBoolean myAggDimensionSpecified
1 byte
Definition: ifSetThresholds.h:20
DtNetBoolean myTranslationSpecified
8 bytes
Definition: ifSetThresholds.h:18
DtNetBoolean myRotationSpecified
1 byte
Definition: ifSetThresholds.h:19
virtual bool setToNet()
Definition: simInterfaceContent.h:83
Definition: simInterfaceContent.h:45
bool myTranslationSpecified
Definition: ifSetThresholds.h:97
virtual DtSimInterfaceContent * clone() const =0
DtReal myTranslation
Definition: ifSetThresholds.h:96
bool myAggDimensionSpecified
Definition: ifSetThresholds.h:101

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)