VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
articulatedPartController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
14 
15 class DtArticulatedPartControllerDescriptor;
17 class DtArtPartsAdmin;
18 
23 {
24 private:
31 public:
38  DtSimManager* simManager, DtComponentDescriptor* desc=0,
39  DtReaderWriterRegistry *parentRegistry=0);
40 
42  virtual ~DtArticulatedPartController();
43 
45  virtual bool init();
46 
52  virtual bool createPSR();
53 
56  virtual const char* type() const;
57 
59  virtual void tick();
60 
65  static void setArtPartCallback(DtSimMessage* msg, void* usr);
66 
71  static void requestArtPartsCallback(const DtVrfObjectMessage* msg, void* usr);
72 
76  static DtSimComponent* creator(const DtString& name, DtVrfObject* owner,
77  DtSimManager* simManager, DtComponentDescriptor* desc=0,
78  DtReaderWriterRegistry* parentRegistry=0);
79 
80 protected:
81 
85  virtual void processSetArtPart(DtSimMessage* msg);
86 
92  virtual void processRequestArtParts(const DtVrfObjectMessage* msg);
93 
96  virtual void addPartsIfUnassociated(const DtArticulatedPartStateRepository& artPartRep,
97  DtArtPartsAdmin& artPartAdmin) const;
98 
99 protected:
103 
104 };
105 
106 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
virtual bool init()
Calls setRadio()
DtArticulatedPartControllerPSR * myProcessState
Container for state data associated with this component.
Definition: articulatedPartController.h:102
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
Admin content which contains the list of art parts, their parameters, and limits for a particular ent...
Definition: artPartsAdmin.h:19
The DtArticulatedPartStateRepository class is used to represent articulated parts for an entity...
Definition: articulatedPartStateRepository.h:29
The base class for all messages to/from a specific DtVrfObject.
Definition: vrfObjectMessage.h:30
class DtArticulatedPartControllerPSR:
Definition: articulatedPartControllerPSR.h:19
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:29
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
This component controls all of the articulated parts on an entity that are not otherwise associated w...
Definition: articulatedPartController.h:22
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)