VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
portConnection.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: portConnection.h,v $ $Revision: 1.8 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #ifndef DtPortConnection_H_
15 #define DtPortConnection_H_
16 
17 #include <vlutil/vlMachineTypes.h>
18 
19 class DtInputPort;
20 class DtOutputPort;
21 class DtPortData;
22 
30 {
31 public:
33  int priority);
35  virtual ~DtPortConnection();
36 
37 private:
43  DtPortConnection& operator=(const DtPortConnection&);
44 
45 public:
46 
49  virtual bool init();
50 
53  virtual bool attemptToActivate();
54 
57  virtual bool canActivate() const;
58 
63  virtual bool attemptToActivateAtLowestPriority();
64 
66  virtual void deactivate();
67 
69  virtual void allowDeactivation();
70 
74  virtual bool active() const;
75 
77  virtual void sendData(DtPortData* data);
78 
80  virtual int priority() const;
81 
83  virtual void setPriority(int priority);
84 
85 protected:
89 };
90 
91 
92 #endif
DtInputPort * myInputPort
Definition: portConnection.h:87
DtOutputPort * myOutputPort
Definition: portConnection.h:86
This is an abstract base class for all data elements that are passed through ports. Derived types will be such things as DtAnalogPortData which manage a double, or more complex data types such as a target list. Derived types must provide a type() method with a unique type string and a clone() method for copying the data.
Definition: portData.h:25
int myPriority
Definition: portConnection.h:88
A DtPortConnection represents a connection between a DtOutputPort and a DtInputPort. PortConnections can be either active or inactive. An active connection is a connection which is supplying data, while an inactive connection is not currently supplying data. Data must be passed through connections as DtPortData.
Definition: portConnection.h:29
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
const char * source
Definition: lz4.h:442
DtOutputPorts are data ports owned by data producers. They are connected to DtPortConnections and sen...
Definition: outputPort.h:42
Instances of DtInputPort are are data ports owned by data consumers. They receive data from a DtPortC...
Definition: inputPort.h:42
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)