VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
laserDetector.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 
16 
20 class DtLaserDetectorPSR;
21 
27 
29 {
30 public:
32  DtLaserDetector(const DtString & name, DtLocalObject* owner,
33  DtSimulationServices * simManager, DtComponentDescriptor* desc = NULL,
34  DtReaderWriterRegistry * parentRegistry = 0);
35 
37  virtual ~DtLaserDetector() override;
38 
40  virtual const char* type() const override;
41 
44  virtual void setEntity(DtLocalObject* entity) override;
45 
47  virtual void tick() override;
48 
50  virtual DtLaserDetectorOutputPort* laserListPort() const;
51 
55  virtual void getProcessSR();
56 
60  static DtSimComponent * creator(const DtString & name, DtLocalObject* owner,
61  DtSimulationServices * simManager, DtComponentDescriptor* desc,
62  DtReaderWriterRegistry * parentRegistry);
63 
64 protected:
65 
67  virtual bool createPorts() override;
68 
69 protected:
73 
75  DtLaserDetector(const DtLaserDetector& orig);
76 
79 
80 protected:
81 
85 
89 
93 };
94 
UUID is a unique ID wrapper class.
Definition: uuid.h:59
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
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
DtUUID myGlobalId
The id of the entity this receiver is mounted on.
Definition: laserDetector.h:87
virtual void setEntity(DtLocalObject *entity)
The entity's state repository is the place that actuator components make updates and other components...
DtLaserDetectorPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: laserDetector.h:92
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
Class Description: DtLaserDetector Determines if the object that it is attached to is being lased and...
Definition: laserDetector.h:28
DtSimComponent & operator=(const DtSimComponent &orig)
assignment operator, not implemented
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
File: lasingCtlrDesc.h.
Definition: laserDetectorDescriptor.h:33
DtLaserDetectorOutputPort * myLaserDetectorListPort
Port used to communicate the list of detected emitter systems to other components.
Definition: laserDetector.h:84
Instances of DtEntityListOutputPort are output ports through which data producers can send a list of ...
Definition: laserDetectorIOPort.h:114
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
File: laserDetectorPSR.h.
Definition: laserDetectorPSR.h:34
DtLaserDetectorDescriptor * myComponentDescriptor
Definition: laserDetector.h:88
Contains the DtSimComponent class declaration.
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)