VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
parallelTickActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #ifndef MyParallelTickComponent_H_
7 #define MyParallelTickComponent_H_
8 
10 
12 {
13 public:
14 
15  // "my-parallel-tick-component" - tag used in SMS.
16  static const char* Tag;
17 
18  //constructor
20  const DtString& name, DtVrfObject* object,
22  DtReaderWriterRegistry* parentRegistry = 0);
23 
24  //Returns a string from compTypes.h, identifying the type of component
25  virtual const char* type() const;
26 
27  //tick function
28  virtual void tick();
29 
30 public:
31 
32  //Creator function to be registered with the DtSimComponentFactory --
33  //see main.cxx
34  static DtSimComponent* creator(
35  const DtString& name, DtVrfObject* object,
37  DtReaderWriterRegistry* parentRegistry);
38 };
39 
40 #endif
41 
42 
MyParallelTickComponent(const DtString &name, DtVrfObject *object, DtSimManager *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry=0)
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
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
static DtSimComponent * creator(const DtString &name, DtVrfObject *object, DtSimManager *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry)
Definition: parallelTickActuator.h:11
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
VRF4API_METHOD const DtSimulationServices * simManager() const
This is the deprecated API that can be used as a reference to migrate 4.X code to 5...
Definition: simComponent.h:566
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
Contains the DtSimComponent class declaration.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:121
static const char * Tag
Definition: parallelTickActuator.h:16
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)