VR-Forces Developer's Guide
 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 
15 
16 class DtArticulatedPartControllerDescriptor;
18 class DtArtPartsAdmin;
19 
20 namespace makVrf
21 {
22  class DtArticulatedPartStateRepository;
23 }
24 
29 {
30 private:
37 public:
44  DtSimulationServices* simManager, DtComponentDescriptor* desc=0,
45  DtReaderWriterRegistry *parentRegistry=0);
46 
48  virtual ~DtArticulatedPartController();
49 
51  virtual bool init();
52 
58  virtual bool createPSR();
59 
62  virtual const char* type() const;
63 
65  virtual void tick();
66 
71  static void setArtPartCallback(DtSimMessage* msg, void* usr);
72 
77  static void requestArtPartsCallback(const DtVrfObjectMessage* msg, void* usr);
78 
82  static DtSimComponent* creator(const DtString& name, DtLocalObject* owner,
83  DtSimulationServices* simManager, DtComponentDescriptor* desc=0,
84  DtReaderWriterRegistry* parentRegistry=0);
85 
86 protected:
87 
91  virtual void processSetArtPart(DtSimMessage* msg);
92 
98  virtual void processRequestArtParts(const DtVrfObjectMessage* msg);
99 
102  virtual void addPartsIfUnassociated(const makVrf::DtArticulatedPartStateRepository& artPartRep,
103  DtArtPartsAdmin& artPartAdmin) const;
104 
105 protected:
109 
112 };
113 
114 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
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:49
Definition: readerWriterRegistry.h:39
DtPlatformLocalObjectFacade myPlatformLocalObjectFacade
Member to allow for access to platform specific data.
Definition: articulatedPartController.h:111
DtArticulatedPartControllerPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: articulatedPartController.h:108
virtual bool init() override
Calls setRadio()
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
Admin content which contains the list of art parts, their parameters, and limits for a particular ent...
Definition: artPartsAdmin.h:19
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
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:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
This component controls all of the articulated parts on an entity that are not otherwise associated w...
Definition: articulatedPartController.h:28
The DtArticulatedPartStateRepository class is used to represent articulated parts for an entity...
Definition: articulatedPartStateRepository.h:40
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)