VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifModifyVrfObject.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
12 
49 #include "vrfmsgs/vrfmsgsDefines.h"
51 {
52 public:
53 
56 
58  virtual ~DtIfModifyVrfObject() override;
59 
62 
65 
67  virtual DtSimInterfaceContent * clone() const override;
68 
71  virtual int type() const override;
72 
73  virtual int netRepSize() const override;
74  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
75  virtual bool setToNet() override;
76 
77  virtual void printDataToString(DtString& str) override;
78 
80 
82  virtual bool isNameSpecified() const;
83  virtual bool isForceTypeSpecified() const;
84  virtual bool isObjectLabelSpecified() const;
85  virtual bool isHeadingSpecified() const;
86  virtual bool isClosedFigureSpecified() const;
87  virtual bool isProjectionSpecified() const;
88  virtual bool isObjectGeometrySpecified() const;
89  virtual bool isAppearanceSpecified() const;
90  virtual bool isOverlayParentSpecified() const;
91  virtual bool isExtendedDataSpecified() const;
92  virtual bool isExtendedLabelsSpecified() const;
93  virtual bool isUserDataSpecified() const;
94 
95 public:
100 
102  virtual void setMarkingText(const DtString& objectName) override;
103 
105  virtual void setObjectType(const DtEntityType& objectType) override;
106 
108  virtual void setForceType(const DtForceType forceType) override;
109 
111  virtual void setObjectLabel(const DtString& objectLabel) override;
112 
114  virtual void setPosition(const DtVector& position) override;
115 
117  virtual void setOverlayParent(const DtString& overlayParent) override;
118 
120  virtual void setHeading(DtReal heading) override;
121 
124  virtual void addVertex(const DtVector& vertex) override;
125 
128  virtual void setProjection(bool projection) override;
129 
133  virtual void setClosedFigure(bool closedFigure) override;
134 
136  virtual void setAppearance(const DtAppearance& appearance) override;
137 
138  virtual void setUserData(const DtString& userData) override;
139  virtual void setExtendedData(const std::map<std::string, std::string>& userData) override;
140  virtual void setExtendedData(const DtString& keyword, const DtString& data) override;
141  virtual void setExtendedLabels(const std::map<int, DtString>& extendedLabels) override;
142 
145  virtual void setMergeExtendedData(bool);
146  virtual bool mergeExtendedData() const;
147 
150  void setStartPosition(const DtVector& position);
151  void setEndPosition(const DtVector& position);
152 
153 private:
155  virtual void setGlobalId(const DtString&) override {};
156  virtual const DtString& globalId() const override { return DtString::nullString(); }
157 
158 protected:
159 
161 
176 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
DtUUID myObjectIdentifier
Definition: ifModifyVrfObject.h:160
virtual void setExtendedLabels(const std::map< int, DtString > &extendedLabels)
Set/get the object label of the vrf object to create.
bool myNameSpecified
Definition: ifModifyVrfObject.h:162
virtual void setExtendedData(const std::map< std::string, std::string > &)
virtual void setMarkingText(const DtString &objectName)
Set/get the object name of the vrf object to create. Note that if the object name length is &gt; 255 cha...
DtIfCreateVrfObject & operator=(const DtIfCreateVrfObject &orig)
assignment operator
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
virtual void setProjection(bool projection)
virtual void setObjectLabel(const DtString &objectLabel)
Set/get the object label of the vrf object to create.
virtual void setObjectType(const DtEntityType &objectType)
Set/get the object type of the vrf object to create.
bool myAppearanceSpecified
Definition: ifModifyVrfObject.h:171
bool myObjectGeometrySpecified
Definition: ifModifyVrfObject.h:170
virtual int type() const override
Returns the string type of message, DtCreateVrfObjectMessageType (defined in msgTypes.h).
virtual void setGlobalId(const DtString &) override
Remove in the modify class as these cannot be called for modification.
Definition: ifModifyVrfObject.h:155
bool myClosedFigureSpecified
Definition: ifModifyVrfObject.h:168
bool myExtendedDataSpecified
Definition: ifModifyVrfObject.h:173
class DtIfModifyVrfObject:
Definition: ifModifyVrfObject.h:50
virtual void addVertex(const DtVector &vertex)
Add a vertex to the end of the vertex list.
bool myObjectLabelSpecified
Definition: ifModifyVrfObject.h:165
bool myExtendedLabelsSpecified
Definition: ifModifyVrfObject.h:174
bool myForceTypeSpecified
Definition: ifModifyVrfObject.h:164
bool myProjectionSpecified
Definition: ifModifyVrfObject.h:169
bool myObjectTypeSpecified
Definition: ifModifyVrfObject.h:163
virtual void setUserData(const DtString &userData)
bool myMergeExtendedData
Definition: ifModifyVrfObject.h:175
virtual void printDataToString(DtString &str) override
virtual DtSimInterfaceContent * clone() const override
Returns a newly created instance of a DtIfCreateVrfObject.
virtual int netRepSize() const override
virtual void setAppearance(const DtAppearance &appearance)
bool myHeadingSpecified
Definition: ifModifyVrfObject.h:167
virtual const DtString & globalId() const override
Definition: ifModifyVrfObject.h:156
virtual void setClosedFigure(bool closedFigure)
void setStartPosition(const DtVector &position)
These are here for back compatibility and should be removed after the next release.
virtual void setHeading(DtReal heading)
static DtSimInterfaceContent * creator()
bool myOverlayParentSpecified
Definition: ifModifyVrfObject.h:166
virtual bool setToNet() override
virtual void setForceType(const DtForceType forceType)
Set/get the force type of the vrf object to create.
bool myUserDataSpecified
Definition: ifModifyVrfObject.h:172
Definition: simInterfaceContent.h:45
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize) override
virtual void setOverlayParent(const DtString &overlayParent)
Sets the overlay parent of this object.
void setEndPosition(const DtVector &position)
virtual void setPosition(const DtVector &position)
class DtIfCreateVrfObject:
Definition: ifCreateVrfObject.h:77

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)