VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
constrainedIntegerIOPort.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: conIntegerIOPort.h,v $ $Revision: 1.5 $ $State: Exp $
7 *******************************************************************************/
8 
11 
14 
15 #ifndef DtConstrainedInegerInputPort_H_
16 #define DtConstrainedInegerInputPort_H_
17 
18 
20 
27 {
28 public:
29  DtConstrainedIntegerInputPort(const DtString& portName);
31 
34  virtual void receiveData(DtPortData* data);
35 
37  virtual void setMinValue(int minVal);
38  virtual int minValue() const;
39 
40  virtual void setMaxValue(int maxVal);
41  virtual int maxValue() const;
42 
43 protected:
46 };
47 
54 {
55 public:
58 
60  virtual void setValue(int value);
61 
63  virtual void setMinValue(int minVal);
64  virtual int minValue() const;
65 
66  virtual void setMaxValue(int maxVal);
67  virtual int maxValue() const;
68 
69 protected:
72 };
73 
74 #endif
DtConstrainedIntegerOutputPort is a version of DtIntegerOutputPort which will constrain any outgoing ...
Definition: constrainedIntegerIOPort.h:53
int myMinValue
Definition: constrainedIntegerIOPort.h:71
int myMinValue
Definition: constrainedIntegerIOPort.h:45
Contains class declarations for DtIntegerInputPort, DtIntegerOutputPort, and DtIntegerPortData.
Definition: integerIOPort.h:25
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
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual void receiveData(DtPortData *data)
Overridden for optimization. Instead of cloning the port data, it copies the int value to a local por...
int myMaxValue
Definition: constrainedIntegerIOPort.h:44
int myMaxValue
Definition: constrainedIntegerIOPort.h:70
Instances of DtIntegerOutputPort are output ports through which data producers can send integer value...
Definition: integerIOPort.h:45
virtual void setValue(int value)
Sets a value to the port, and sends the data if it is different from the current value.
Contains class declarations for DtConstrainedIntegerInputPort and DtConstrainedIntegerOutputPort.
Definition: constrainedIntegerIOPort.h:26

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)