refactor: update transformation system, improve template readability, and reorganize VTK assembly management
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
#include "Math/Transform.h"
|
||||
#include <utility>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
namespace uLib {
|
||||
|
||||
/**
|
||||
@@ -99,9 +101,9 @@ public:
|
||||
*/
|
||||
template <class ArchiveT>
|
||||
void serialize(ArchiveT & ar, const unsigned int version) {
|
||||
ar & boost::serialization::make_nvp("TRS", boost::serialization::base_object<TRS>(*this));
|
||||
ar & HRP(Size);
|
||||
ar & HRP(Origin);
|
||||
ar & boost::serialization::make_nvp("TRS", boost::serialization::base_object<TRS>(*this));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -216,8 +218,13 @@ signals:
|
||||
|
||||
/** Signal emitted when properties change */
|
||||
virtual void Updated() override {
|
||||
// 1. Synchronize local box part (Size/Origin -> m_LocalT)
|
||||
this->Sync();
|
||||
ULIB_SIGNAL_EMIT(Object::Updated);
|
||||
|
||||
// 2. Synchronize TRS part (position/rotation/scaling -> m_T) and emit signal
|
||||
this->TRS::Updated();
|
||||
|
||||
// std::cout << "ContainerBox::Updated()" << std::endl;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user