1- #include " BI_UnaryFunctionNodes .hpp"
1+ #include " BI_UnaryOperationNodes .hpp"
22#include " NE_Localization.hpp"
33#include " NUIE_NodeCommonParameters.hpp"
44
77namespace BI
88{
99
10- SERIALIZATION_INFO (UnaryFunctionNode , 1 );
10+ SERIALIZATION_INFO (UnaryOperationNode , 1 );
1111DYNAMIC_SERIALIZATION_INFO (AbsoluteNode, 1 , " {125E8E5E-F1CB-4AE4-8EA9-53343ACD193B}" );
1212DYNAMIC_SERIALIZATION_INFO (CeilNode, 1 , " {60B0DFF2-2718-46A1-B7D5-AA614BF21FDD}" );
1313DYNAMIC_SERIALIZATION_INFO (FloorNode, 1 , " {0DB3D5E3-8B32-43A4-82D2-F5B816AB5CC1}" );
1414
15- UnaryFunctionNode::UnaryFunctionNode () :
16- UnaryFunctionNode (NE::LocString (), NUIE::Point ())
15+ UnaryOperationNode::UnaryOperationNode () :
16+ UnaryOperationNode (NE::LocString (), NUIE::Point ())
1717{
1818
1919}
2020
21- UnaryFunctionNode::UnaryFunctionNode (const NE::LocString& name, const NUIE::Point& position) :
21+ UnaryOperationNode::UnaryOperationNode (const NE::LocString& name, const NUIE::Point& position) :
2222 BasicUINode (name, position)
2323{
2424}
2525
26- UnaryFunctionNode ::~UnaryFunctionNode ()
26+ UnaryOperationNode ::~UnaryOperationNode ()
2727{
2828
2929}
3030
31- void UnaryFunctionNode ::Initialize ()
31+ void UnaryOperationNode ::Initialize ()
3232{
3333 RegisterUIInputSlot (NUIE::UIInputSlotPtr (new NUIE::UIInputSlot (NE::SlotId (" a" ), NE::LocString (L" A" ), NE::ValuePtr (new NE::DoubleValue (0.0 )), NE::OutputSlotConnectionMode::Single)));
3434 RegisterUIOutputSlot (NUIE::UIOutputSlotPtr (new NUIE::UIOutputSlot (NE::SlotId (" result" ), NE::LocString (L" Result" ))));
3535}
3636
37- NE::ValueConstPtr UnaryFunctionNode ::Calculate (NE::EvaluationEnv& env) const
37+ NE::ValueConstPtr UnaryOperationNode ::Calculate (NE::EvaluationEnv& env) const
3838{
3939 NE::ValueConstPtr aValue = EvaluateInputSlot (NE::SlotId (" a" ), env);
4040 if (!NE::IsComplexType<NE::NumberValue> (aValue)) {
@@ -60,32 +60,32 @@ NE::ValueConstPtr UnaryFunctionNode::Calculate (NE::EvaluationEnv& env) const
6060 }
6161}
6262
63- void UnaryFunctionNode ::RegisterParameters (NUIE::NodeParameterList& parameterList) const
63+ void UnaryOperationNode ::RegisterParameters (NUIE::NodeParameterList& parameterList) const
6464{
6565 BasicUINode::RegisterParameters (parameterList);
66- NUIE::RegisterSlotDefaultValueNodeParameter<UnaryFunctionNode , NE::DoubleValue> (parameterList, NE::SlotId (" a" ), NE::LocString (L" A" ), NUIE::ParameterType::Double);
66+ NUIE::RegisterSlotDefaultValueNodeParameter<UnaryOperationNode , NE::DoubleValue> (parameterList, NE::SlotId (" a" ), NE::LocString (L" A" ), NUIE::ParameterType::Double);
6767}
6868
69- bool UnaryFunctionNode ::IsForceCalculated () const
69+ bool UnaryOperationNode ::IsForceCalculated () const
7070{
7171 return true ;
7272}
7373
74- NE::Stream::Status UnaryFunctionNode ::Read (NE::InputStream& inputStream)
74+ NE::Stream::Status UnaryOperationNode ::Read (NE::InputStream& inputStream)
7575{
7676 NE::ObjectHeader header (inputStream);
7777 BasicUINode::Read (inputStream);
7878 return inputStream.GetStatus ();
7979}
8080
81- NE::Stream::Status UnaryFunctionNode ::Write (NE::OutputStream& outputStream) const
81+ NE::Stream::Status UnaryOperationNode ::Write (NE::OutputStream& outputStream) const
8282{
8383 NE::ObjectHeader header (outputStream, serializationInfo);
8484 BasicUINode::Write (outputStream);
8585 return outputStream.GetStatus ();
8686}
8787
88- NE::ValuePtr UnaryFunctionNode ::DoSingleOperation (const NE::ValueConstPtr& aValue) const
88+ NE::ValuePtr UnaryOperationNode ::DoSingleOperation (const NE::ValueConstPtr& aValue) const
8989{
9090 double aDouble = NE::NumberValue::ToDouble (aValue);
9191 double result = DoOperation (aDouble);
@@ -96,13 +96,13 @@ NE::ValuePtr UnaryFunctionNode::DoSingleOperation (const NE::ValueConstPtr& aVal
9696}
9797
9898AbsoluteNode::AbsoluteNode () :
99- UnaryFunctionNode ()
99+ UnaryOperationNode ()
100100{
101101
102102}
103103
104104AbsoluteNode::AbsoluteNode (const NE::LocString& name, const NUIE::Point& position) :
105- UnaryFunctionNode (name, position)
105+ UnaryOperationNode (name, position)
106106{
107107
108108}
@@ -118,13 +118,13 @@ double AbsoluteNode::DoOperation (double a) const
118118}
119119
120120FloorNode::FloorNode () :
121- UnaryFunctionNode ()
121+ UnaryOperationNode ()
122122{
123123
124124}
125125
126126FloorNode::FloorNode (const NE::LocString& name, const NUIE::Point& position) :
127- UnaryFunctionNode (name, position)
127+ UnaryOperationNode (name, position)
128128{
129129
130130}
@@ -140,13 +140,13 @@ double FloorNode::DoOperation (double a) const
140140}
141141
142142CeilNode::CeilNode () :
143- UnaryFunctionNode ()
143+ UnaryOperationNode ()
144144{
145145
146146}
147147
148148CeilNode::CeilNode (const NE::LocString& name, const NUIE::Point& position) :
149- UnaryFunctionNode (name, position)
149+ UnaryOperationNode (name, position)
150150{
151151
152152}
0 commit comments