Atoms Crowd
4.1.0
JointConstraintOperator.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/Ports.h>
11
12
#include <Atoms/Globals.h>
13
#include <Atoms/Graph/Operator.h>
14
15
namespace
Atoms
16
{
17
class
ATOMS_EXPORT
JointConstraintOperator
:
public
Operator
18
{
19
public
:
20
21
NODE_STANDARD_MEMBERS
22
23
JointConstraintOperator
();
24
25
virtual
~
JointConstraintOperator
();
26
27
bool
compute
(
const
AtomsGraph::ComputeData
* computeData);
28
29
void
reset
();
30
31
private
:
32
AtomsGraph::PosePort
* m_inPose;
33
AtomsGraph::StringPort
*m_targetJoint;
34
AtomsGraph::StringPort
*m_constrainedJoint;
35
AtomsGraph::MatrixPort
*m_offsetMatrix;
36
AtomsGraph::DoublePort
*m_weight;
37
38
int
m_targetJointId;
39
int
m_constrainedJointId;
40
bool
m_first;
41
};
42
}
Atoms::JointConstraintOperator::reset
void reset()
Operator reset function.
Atoms::JointConstraintOperator
Definition:
JointConstraintOperator.h:18
Atoms::JointConstraintOperator::compute
bool compute(const AtomsGraph::ComputeData *computeData)
Compute function.
AtomsGraph::PortTemplate
Generic node port class.
Definition:
PortTemplate.h:24
Atoms
Atoms namespace.
Definition:
Agent.h:28
Atoms::Operator
Operator node.
Definition:
Operator.h:26
AtomsGraph::ComputeData
Definition:
Node.h:21
Atoms
include
Atoms
Graph
Operators
JointConstraintOperator.h