VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
diGuyShapeVariationsRecord.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2020 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
6 #pragma once
7 
10 
12 {
13 public:
14 
17 
20 
22  DtDiGuyShapeVariationsRecord( void* netBuffer, unsigned int size );
23 
26 
29 
31  virtual bool operator == ( const DtDiGuyShapeVariationsRecord& record );
32 
34  virtual bool operator == ( const DtStandardVariableRecord& other );
35 
37  virtual short shapeVariationsVersion() const;
38  virtual void setShapeVariationsVersion( short version );
39 
41  virtual bool isShapeVariationDataChanged() const;
42  virtual void setShapeVariationDataChanged( bool force );
43 
45  virtual const DtDiGuyLinkShapeMap& shapeVariations() const;
46  virtual void setShapeVariations( const DtDiGuyLinkShapeMap& variations );
47 
49  virtual void printDataToStream( std::ostream& stream ) const;
50 
52  virtual DtStandardVariableRecord* clone() const;
53 
54  // Writes the network representation to the given address.
55  // The assumption is that this memory is allocated and is of the proper size.
56  virtual void writeRecord( void * addr ) const;
57 
60  virtual void setFromNet( const void* netRecord, unsigned int length, DtStandardVariableRetCode* retCode = NULL );
61 
63  virtual unsigned int unpaddedNetsize() const;
64 
65 public:
66 
68  static DtStandardVariableRecord* create( void* addr, unsigned int length );
69 
71  static unsigned int recordTypeToUse();
72 
74  static void setRecordTypeToUse( unsigned int typeToUse );
75 
76 protected:
77 
78  // Update the data members from the data buffer
79  virtual void updateData();
80 
81  // Commit the data members to the data buffer
82  virtual void commitData();
83 
84  // Do the assignment work
85  virtual DtDiGuyShapeVariationsRecord& doCopy( const DtDiGuyShapeVariationsRecord& record );
86 
87 protected:
88 
94 
95 protected:
96 
98 
99 };
Contains the DtDIGuyObjectStateRepository class declaration.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
std::map< DtU16, DtDiGuyShapeDataMap > DtDiGuyLinkShapeMap
Container for shape variation data.
Definition: diGuyObjectStateRepository.h:23
virtual void setFromNet(const void *netRecord, unsigned int length, DtStandardVariableRetCode *retCode=NULL)
Sets the record from an address and length.
Definition: diGuyShapeVariationsRecord.h:11
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
DtDiGuyLinkShapeMap myShapeVariations
Definition: diGuyShapeVariationsRecord.h:89
bool myShapeVariationDataChanged
Definition: diGuyShapeVariationsRecord.h:91
bool myDataIsDirty
Definition: diGuyShapeVariationsRecord.h:92
short myShapeVariationsVersion
Definition: diGuyShapeVariationsRecord.h:90
static DtDatumParam theDiGuyShapeVariationsId
Definition: diGuyShapeVariationsRecord.h:97
virtual DtGenericVariableRecord & operator=(const DtGenericVariableRecord &record)
Assignment Operator.
virtual unsigned int unpaddedNetsize() const
This is the network size of the record without padding.
bool myBufferIsDirty
Definition: diGuyShapeVariationsRecord.h:93
static DtStandardVariableRecord * create(void *addr, unsigned int length)
Creator of an unknown record for registering in a factory.
Definition: standardVariableRecord.h:22
DtDatumParam
([UID 66]) - Datum ID
Definition: disEnums.h:501
virtual void printDataToStream(std::ostream &stream) const
Prints the data to the specified stream.
DtStandardVariableRetCode
Definition: standardVariableRecord.h:14
virtual void writeRecord(void *addr) const
virtual DtStandardVariableRecord * clone() const
Clone.

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)