VR-Forces 4.1 Class Documentation
swingingPartActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrfobjcore/actCmpnt.h"
15 
16 class DtString;
17 class DtSimManager;
18 class DtBooleanInputPort;
19 class DtIntegerOutputPort;
20 class DtSimObjectBaseObjectStateRepository;
23 
36 {
37 
38 public:
39 
42  DtSwingingPartActuator(const DtString& name,
43  DtVrfObject* owner,
44  DtSimManager* simManager,
45  DtComponentDescriptor* desc = 0,
46  DtReaderWriterRegistry* parentRegistry = 0);
47 
49  virtual ~DtSwingingPartActuator();
50 
51  virtual bool init();
52 
54  virtual bool postAddComponentsInit();
55 
58  virtual DtString type() const;
59 
61  virtual void tick();
62 
66  static DtSimComponent * creator(const DtString& name,
67  DtVrfObject* owner,
68  DtSimManager* simManager,
69  DtComponentDescriptor* desc = 0,
70  DtReaderWriterRegistry* parentRegistry = 0);
71 
72 protected:
74  virtual bool createPorts();
75 
81  virtual DtSwingingPartActuatorPSR* createPSR();
82 
84  virtual double currentPosition();
85 
87  virtual void setPositionAndRate(double newPos, double newRate);
88 
91  virtual bool angleWithinSlewArc(double angle);
92 
93 private:
99  const DtSwingingPartActuator & operator=(const
100  DtSwingingPartActuator & orig);
101 
102 protected:
103 
106 
111 
119 
122 
124 
126  {
129  ZAxis
130  };
131 
133 
137 };
138 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)