MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lgrDisArtPart.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrDisArtPart_H_
10 #define lgrDisArtPart_H_
11 
12 #if DtDIS
13 
14 #include <lgrSim/lgrSim.h>
15 
16 class DtString;
17 
18 #include <vlpi/artPartSpec.h>
19 
20 namespace MAKLogger
21 {
22 
23  class DtLgrArtPartList;
24 
30  {
31  protected:
34 
36  DtLgrArtPart();
37 
39  virtual ~DtLgrArtPart();
40 
42  DtLgrArtPart( const DtArtPartSpec& spec );
43 
45  DtLgrArtPart( const DtLgrArtPart& src );
46 
48  DtLgrArtPart& operator=( const DtLgrArtPart& src );
49 
50  public:
51  friend class DtLgrArtPartList;
52 
53  public:
55  virtual bool setUsingParam( int paramType, bool yesNo = true );
56  virtual bool usingParam( int paramType ) const;
57 
61  virtual bool setParamValue( int paramType, float value );
62  virtual bool paramValue( int paramType, float& value ) const;
63 
65  virtual int numParams() const;
66 
68  inline void setPartType( int val );
69  inline int partType() const;
70 
72  inline void setPartNum( int val );
73  inline int partNum() const;
74 
76  inline void setPartAttachedTo( int val );
77  inline int partAttachedTo() const;
78 
80  virtual int firstValidParamType() const;
81 
83  virtual int nextValidParamType( int paramType ) const;
84 
86  virtual void print();
87  virtual void print( DtString& str );
88 
89  public:
91  static bool artParamIsRate( int paramType );
93  static int computePartType( int partPlusParam );
95  static int computeParameterType( int partPlusParam );
96 
97  protected:
98  float myParamVals[DtMAX_PARAMS_PER_PART+1];
99  unsigned int myParamSetMask;
103  };
104 
105 
106  inline void DtLgrArtPart::setPartType( int val )
107  {
108  myPartType = val;
109  }
110 
111 
112  inline int DtLgrArtPart::partType() const
113  {
114  return myPartType;
115  }
116 
117 
118  inline void DtLgrArtPart::setPartNum( int val )
119  {
120  myPartNum = val;
121  }
122 
123 
124  inline int DtLgrArtPart::partNum() const
125  {
126  return myPartNum;
127  }
128 
129 
130  inline void DtLgrArtPart::setPartAttachedTo( int val )
131  {
132  myPartAttachedTo = val;
133  }
134 
135 
136  inline int DtLgrArtPart::partAttachedTo() const
137  {
138  return myPartAttachedTo;
139  }
140 
141 }
142 
143 #endif
144 #endif
145 
146 
unsigned int myParamSetMask
Definition: lgrDisArtPart.h:99
Instances of DtLgrArtPartList are used to manage articulated parts.
Definition: lgrDisArtPartList.h:31
Defines IMPORT/EXPORT macros for lgrSim library.
#define DT_DLL_LGRSIM
Definition: lgrSim.h:21
int partAttachedTo() const
Definition: lgrDisArtPart.h:136
int myPartNum
Definition: lgrDisArtPart.h:101
Instances of &quot;DtLgrArtPart&quot; are used by DtLgrArtPartList to handle individual articulated parts (i...
Definition: lgrDisArtPart.h:29
int myPartType
Definition: lgrDisArtPart.h:100
void setPartAttachedTo(int val)
Set/Get the part this part is attached to.
Definition: lgrDisArtPart.h:130
int partNum() const
Definition: lgrDisArtPart.h:124
int myPartAttachedTo
Definition: lgrDisArtPart.h:102
void setPartType(int val)
Set/Get the part type.
Definition: lgrDisArtPart.h:106
int partType() const
Definition: lgrDisArtPart.h:112
void setPartNum(int val)
Set/Get the part number.
Definition: lgrDisArtPart.h:118

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)