Files
solver/MbDCode/PartFrame.cpp
2023-04-29 11:19:31 -06:00

38 lines
796 B
C++

#include "Part.h"
#include "PartFrame.h"
#include "AbsConstraint.h"
#include "MarkerFrame.h"
using namespace MbD;
PartFrame::PartFrame()
{
aGeu = std::make_shared<EulerConstraint>();
aGabs = std::vector<std::shared_ptr<AbsConstraint>>();
markerFrames = std::vector<std::shared_ptr<MarkerFrame>>();
}
void PartFrame::setqX(FullColDptr x) {
qX->copy(x);
}
FullColDptr PartFrame::getqX() {
return qX;
}
void PartFrame::setqE(FullColDptr x) {
qE->copy(x);
}
FullColDptr PartFrame::getqE() {
return qE;
}
void PartFrame::setPart(std::shared_ptr<Part> x) {
part = x;
}
std::shared_ptr<Part> PartFrame::getPart() {
return part.lock();
}
void MbD::PartFrame::addMarkerFrame(std::shared_ptr<MarkerFrame> markerFrame)
{
markerFrame->setPartFrame(this);
markerFrames.push_back(markerFrame);
}