VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
constrainedAnalogIOPort.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: conAnalogIOPort.h,v $ $Revision: 1.4 $ $State: Exp $
7 *******************************************************************************/
8 
11 
14 
15 #ifndef DtConstrainedAnalogInputPort_H_
16 #define DtConstrainedAnalogInputPort_H_
17 
18 
20 
28 {
29 public:
30  DtConstrainedAnalogInputPort(const DtString& portName);
32 
35  virtual void receiveData(DtPortData* data);
36 
38  virtual void setMinValue(double minVal);
39  virtual double minValue() const;
40 
41  virtual void setMaxValue(double maxVal);
42  virtual double maxValue() const;
43 
44 protected:
45  double myMaxValue;
46  double myMinValue;
47 };
48 
55 {
56 public:
57  DtConstrainedAnalogOutputPort(const DtString& portName);
59 
63  virtual void setValue(double value);
64 
67  virtual void setMinValue(double minVal);
68  virtual double minValue() const;
69  virtual void setMaxValue(double maxVal);
70  virtual double maxValue() const;
72 
73 protected:
74  double myMaxValue;
75  double myMinValue;
76 };
77 
78 #endif
double myMaxValue
Definition: constrainedAnalogIOPort.h:45
double myMaxValue
Definition: constrainedAnalogIOPort.h:74
virtual void setMinValue(float value)
Definition: bdiQPropTree_subclasses.h:690
Contains class declarations for DtConstrainedAnalogInputPort and DtConstrainedAnalogOutputPort.
Definition: constrainedAnalogIOPort.h:27
virtual void setMaxValue(float value)
Definition: bdiQPropTree_subclasses.h:689
DtConstrainedAnalogOutputPort is a version of DtAnalogOutputPort which will constrain any outgoing va...
Definition: constrainedAnalogIOPort.h:54
This is an abstract base class for all data elements that are passed through ports.
Definition: portData.h:25
Instances of DtAnalogOutputPort are input ports through which data producers can send real numbers...
Definition: analogIOPort.h:45
double myMinValue
Definition: constrainedAnalogIOPort.h:46
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual void setValue(double value)
Sets a value to the port, and sends the data if it is different from the current value.
Contains class declarations for DtAnalogInputPort, DtAnalogOutputPort, and DtAnalogPortData.
Definition: analogIOPort.h:25
virtual void receiveData(DtPortData *data)
Overridden from base class for optimization.
double myMinValue
Definition: constrainedAnalogIOPort.h:75

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)