Atoms Crowd
7.0.0
ClosestPointOnCurve.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/Ports.h>
12
#include <AtomsGraph/Node.h>
13
14
namespace
AtomsGraph
15
{
16
ATOMSGRAPH_EXPORT
void
registerClosetPointOnCurveNode();
17
18
class
ATOMSGRAPH_EXPORT
ClosestPointOnCurve
:
public
Node
19
{
20
public
:
21
NODE_STANDARD_MEMBERS
22
23
ClosestPointOnCurve
();
24
25
virtual
~
ClosestPointOnCurve
();
26
27
bool
compute
(
const
ComputeData
* computeData);
28
29
void
reset
();
30
31
private
:
32
AtomsGraph::CurveRefPort
* m_curve;
33
AtomsGraph::VectorPort
* m_inPostionPort;
34
35
AtomsGraph::VectorPort
* m_outPostionPort;
36
AtomsGraph::VectorPort
* m_outTangentPort;
37
AtomsGraph::DoublePort
* m_outParameter;
38
};
39
40
}
AtomsGraph::ClosestPointOnCurve
Definition:
ClosestPointOnCurve.h:19
AtomsGraph::ClosestPointOnCurve::reset
void reset()
Reset function.
AtomsGraph::ClosestPointOnCurve::compute
bool compute(const ComputeData *computeData)
Compute function.
AtomsGraph::ComputeData
Definition:
Node.h:21
AtomsGraph::Node
Definition:
Node.h:31
AtomsGraph::PortTemplate
Generic node port class.
Definition:
PortTemplate.h:24
AtomsGraph
AtomsGraph namespace.
Definition:
PosePort.h:15
Atoms
Public
AtomsGraph
Nodes
ClosestPointOnCurve.h