Second commit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user