Atoms Crowd  7.0.0
VectorConversionNodes.h
1 #pragma once
2 // ===========================================================================
3 // Copyright (c) 2015 Toolchefs Ltd. All rights reserved.
4 //
5 // Use of this software is subject to the terms of the Toolchefs license
6 // agreement provided at the time of installation or download, or which
7 // otherwise accompanies this software in either electronic or hard copy form.
8 // ===========================================================================
9 
10 #include <AtomsGraph/Globals.h>
11 #include <AtomsGraph/Node.h>
12 #include <AtomsGraph/Ports.h>
13 
14 namespace AtomsGraph
15 {
16 
17  class ATOMSGRAPH_EXPORT VectorToDouble :
18  public Node
19  {
20  public:
21 
22  NODE_STANDARD_MEMBERS
23 
25 
26  virtual ~VectorToDouble();
27 
28  virtual bool compute(const ComputeData* computeData);
29 
30  private:
31 
32  VectorPort *m_in1;
33 
34  DoublePort *m_outX;
35 
36  DoublePort *m_outY;
37 
38  DoublePort *m_outZ;
39  };
40 
41  class ATOMSGRAPH_EXPORT DoubleToVector :
42  public Node
43  {
44  public:
45 
46  NODE_STANDARD_MEMBERS
47 
49 
50  virtual ~DoubleToVector();
51 
52  virtual bool compute(const ComputeData* computeData);
53 
54  private:
55 
56  VectorPort *m_out;
57 
58  DoublePort *m_inX;
59 
60  DoublePort *m_inY;
61 
62  DoublePort *m_inZ;
63  };
64 
65 
66 }
Definition: Node.h:21
Definition: VectorConversionNodes.h:43
virtual bool compute(const ComputeData *computeData)
Compute function.
Definition: Node.h:31
Generic node port class.
Definition: PortTemplate.h:24
Definition: VectorConversionNodes.h:19
virtual bool compute(const ComputeData *computeData)
Compute function.
AtomsGraph namespace.
Definition: PosePort.h:15