VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dualAxisAnalogIOPort.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: dualAxisAnalogIOPort.h,v $ $Revision: 1.4 $ $State: Exp $
7 *******************************************************************************/
8 
11 
19 
20 #ifndef DtDualAxisAnalogInputPort_H_
21 #define DtDualAxisAnalogInputPort_H_
22 
24 #include "vrfobjcore/outputPort.h"
25 #include "vrfobjcore/portData.h"
26 
29 {
30 public:
31  DtDualAxisAnalogInputPort(const DtString& portName);
32  virtual ~DtDualAxisAnalogInputPort() override;
33 
35  virtual bool acceptType(const DtString& type) const override;
36 
39  virtual void receiveData(DtPortData* data);
40 
42  virtual double XValue() const;
43 
45  virtual double YValue() const;
46 };
47 
49 {
50 public:
51  DtDualAxisAnalogOutputPort(const DtString& portName);
52  virtual ~DtDualAxisAnalogOutputPort() override;
53 
55  virtual const DtString type() const override;
56 
58  virtual void createPortData() override;
59 
62  virtual void setXValue(double value);
63 
65  virtual double XValue() const;
66 
69  virtual void setYValue(double value);
70 
72  virtual double YValue() const;
73 };
74 
76 {
77 public:
81  virtual ~DtDualAxisAnalogPortData() override;
86 
88  virtual const DtString type() const override;
89 
91  virtual void setXValue(double);
93  virtual double XValue() const;
94 
96  virtual void setYValue(double);
98  virtual double YValue() const;
99 
101  virtual DtPortData* clone() const override;
102 
103  virtual void updateImgui() override;
104 
105 protected:
106  double myXValue;
107  double myYValue;
108 };
109 
110 
111 
112 #endif
virtual const DtString type() const =0
Override for each derrived class to return a unique type string. This type string is the type of the ...
double myXValue
Definition: dualAxisAnalogIOPort.h:106
Contains the DtOutputPort class declaration.
Contains the class declaration for DtSingleConnectionInputPort.
Definition: singleConnectionInputPort.h:36
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
virtual void updateImgui()=0
Outputs the current data value to ImGui.
virtual void createPortData()=0
Override for each derived class to create and set the internal DtPortData representation.
virtual bool acceptType(const DtString &type) const =0
Returns true if this port should accept the receipt of the specified DtPortData type. Override this function to return true for the types your port will accept.
virtual void receiveData(DtPortData *data, const DtPortConnection *conn=0) override
clones the specified DtPortData into myData, and sets the newDataFlag to true. conn is not used by th...
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
virtual const DtString type() const =0
Returns a string type value for this class. Provide a unique string for each DtPortData class...
File: dualAxisAnalogIOPort.h.
Definition: dualAxisAnalogIOPort.h:28
DtOutputPorts are data ports owned by data producers. They are connected to DtPortConnections and sen...
Definition: outputPort.h:42
Definition: dualAxisAnalogIOPort.h:75
Definition: dualAxisAnalogIOPort.h:48
virtual DtPortData * clone() const =0
Provides a copy of this port data.
double myYValue
Definition: dualAxisAnalogIOPort.h:107
DtPortData & operator=(const DtPortData &orig)
Assignment operator.

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)