VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
diGuyScaleRecord.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 1992-2025 MAK Technologies, Inc
3  * All rights reserved.
4  ****************************************************************************/
5 
6 #pragma once
7 
9 
11 {
12 public:
13 
16 
19 
21  DtDiGuyScaleRecord( void* netBuffer, unsigned int size );
22 
24  virtual DtDiGuyScaleRecord& operator = ( const DtDiGuyScaleRecord& record );
25 
28 
30  virtual bool operator == ( const DtDiGuyScaleRecord& record );
31 
33  virtual bool operator == ( const DtStandardVariableRecord& other );
34 
36  virtual const DtVector& characterScale() const;
37  virtual void setCharacterScale( const DtVector& value );
38 
40  virtual void printDataToStream( std::ostream& stream ) const;
41 
43  virtual DtStandardVariableRecord* clone() const;
44 
45  // Writes the network representation to the given address.
46  // The assumption is that this memory is allocated and is of the proper size.
47  virtual void writeRecord( void* addr ) const;
48 
51  virtual void setFromNet( const void* netRecord, unsigned int length, DtStandardVariableRetCode* retCode = NULL );
52 
54  virtual unsigned int unpaddedNetsize() const;
55 
56 public:
57 
59  static DtStandardVariableRecord* create( void* addr, unsigned int length );
60 
62  static unsigned int recordTypeToUse();
63 
65  static void setRecordTypeToUse( unsigned int typeToUse );
66 
67 protected:
68 
69  // Update the data members from the data buffer
70  virtual void updateData();
71 
72  // Commit the data members to the data buffer
73  virtual void commitData();
74 
75  // Do the assignment work
76  virtual DtDiGuyScaleRecord& doCopy( const DtDiGuyScaleRecord& record );
77 
78 protected:
79 
81 
82 protected:
83 
85 
88 
89 };
Definition: diGuyScaleRecord.h:10
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
virtual void setFromNet(const void *netRecord, unsigned int length, DtStandardVariableRetCode *retCode=NULL)
Sets the record from an address and length.
static DtDatumParam theDiGuyCharacterScaleId
Definition: diGuyScaleRecord.h:80
bool myBufferIsDirty
Definition: diGuyScaleRecord.h:87
virtual bool operator==(const DtGenericVariableRecord &record)
Equals Operator.
A generic variable record that has a variable sized buffer Because the format of the contents is not ...
Definition: genericVariableRecord.h:17
Definition: vlVector.h:224
bool myDataIsDirty
Definition: diGuyScaleRecord.h:86
virtual DtGenericVariableRecord & operator=(const DtGenericVariableRecord &record)
Assignment Operator.
virtual unsigned int unpaddedNetsize() const
This is the network size of the record without padding.
static DtStandardVariableRecord * create(void *addr, unsigned int length)
Creator of an unknown record for registering in a factory.
Definition: standardVariableRecord.h:23
DtDatumParam
([UID 66]) - Datum ID
Definition: disEnums.h:505
virtual void printDataToStream(std::ostream &stream) const
Prints the data to the specified stream.
DtStandardVariableRetCode
Definition: standardVariableRecord.h:15
DtVector myCharacterScale
Definition: diGuyScaleRecord.h:84
virtual void writeRecord(void *addr) const
virtual DtStandardVariableRecord * clone() const
Clone.

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)