VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfobjcore
vectorIOPort.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: vectorIOPort.h,v $ $Revision: 1.7 $ $State: Exp $
7
*******************************************************************************/
8
11
14
15
#ifndef DtVectorIOPort_H_
16
#define DtVectorIOPort_H_
17
18
#include <matrix/vlVector.h>
19
20
#include "
vrfobjcore/singleConnectionInputPort.h
"
21
#include "
vrfobjcore/outputPort.h
"
22
#include "
vrfobjcore/portData.h
"
23
26
#include "
vrfobjcore/vrfobjcoreDefines.h
"
27
class
DT_DLL_vrfobjcore
DtVectorInputPort
:
public
DtSingleConnectionInputPort
28
{
29
public
:
31
DtVectorInputPort
(
const
DtString
& portName);
32
34
virtual
~
DtVectorInputPort
();
35
37
virtual
bool
acceptType
(
const
DtString
& type)
const
;
38
39
virtual
void
receiveData
(
DtPortData
* data);
40
41
virtual
const
DtVector
value()
const
;
42
43
protected
:
45
DtVectorInputPort
(
const
DtVectorInputPort
& orig);
47
const
DtVectorInputPort
&
operator=
(
const
DtVectorInputPort
& orig);
48
};
49
52
class
DT_DLL_vrfobjcore
DtVectorOutputPort
:
public
DtOutputPort
53
{
54
public
:
55
DtVectorOutputPort
(
const
DtString
& portName);
56
virtual
~
DtVectorOutputPort
();
57
59
virtual
const
DtString
type
()
const
;
60
62
virtual
void
createPortData
();
63
66
virtual
void
setValue(
const
DtVector
& vector);
67
69
virtual
const
DtVector
value()
const
;
70
71
protected
:
73
DtVectorOutputPort
(
const
DtVectorOutputPort
& orig);
75
const
DtVectorOutputPort
&
operator=
(
const
DtVectorOutputPort
& orig);
76
};
77
81
class
DT_DLL_vrfobjcore
DtVectorPortData
:
public
DtPortData
82
{
83
public
:
85
DtVectorPortData
();
87
virtual
~
DtVectorPortData
();
89
DtVectorPortData
(
const
DtVectorPortData
& orig);
91
DtVectorPortData
&
operator=
(
const
DtVectorPortData
& orig);
92
94
virtual
const
DtString
type
()
const
;
95
97
virtual
void
setValue(
const
DtVector
&);
98
100
virtual
const
DtVector
& value()
const
;
101
103
virtual
DtPortData
*
clone
()
const
;
104
105
protected
:
106
DtVector
myValue
;
107
};
108
109
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)