Second commit

This commit is contained in:
Aik-Siong Koh
2023-04-28 16:29:43 -06:00
parent dd01694484
commit 8ca8eb7122
18 changed files with 329 additions and 51 deletions

View File

@@ -1,12 +1,37 @@
#include "Part.h"
#include "PartFrame.h"
#include "AbsConstraint.h"
#include "MarkerFrame.h"
namespace MbD {
using namespace MbD;
PartFrame::PartFrame()
{
aGabs = std::vector<std::shared_ptr<AbsConstraint>>();
markerFrames = std::vector<std::shared_ptr<MarkerFrame>>();
}
}
PartFrame::PartFrame()
{
aGeu = std::make_shared<EulerConstraint>();
aGabs = std::vector<std::shared_ptr<AbsConstraint>>();
markerFrames = std::vector<std::shared_ptr<MarkerFrame>>();
}
void PartFrame::setqX(FullColumn<double>* x) {
qX->copy(x);
}
FullColumn<double>* PartFrame::getqX() {
return qX;
}
void PartFrame::setqE(FullColumn<double>* x) {
qE->copy(x);
}
FullColumn<double>* 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);
}