vtkProperties
This commit is contained in:
@@ -199,8 +199,8 @@ public:
|
||||
|
||||
|
||||
Puppet::Puppet() : Object(), d(new PuppetData) {
|
||||
ULIB_ACTIVATE_PROPERTIES(*this);
|
||||
for (auto* p : this->GetProperties()) {
|
||||
ULIB_ACTIVATE_DISPLAY_PROPERTIES;
|
||||
for (auto* p : this->GetDisplayProperties()) {
|
||||
uLib::Object::connect(p, &uLib::PropertyBase::Updated, this, &Puppet::Update);
|
||||
}
|
||||
}
|
||||
@@ -235,6 +235,11 @@ void Puppet::RemoveProp(vtkProp *prop)
|
||||
}
|
||||
|
||||
|
||||
vtkPropCollection *Puppet::GetParts()
|
||||
{
|
||||
return d->m_Assembly->GetParts();
|
||||
}
|
||||
|
||||
vtkPropCollection *Puppet::GetProps()
|
||||
{
|
||||
return d->m_Assembly->GetParts();
|
||||
@@ -474,8 +479,7 @@ void Puppet::ConnectInteractor(vtkRenderWindowInteractor *interactor)
|
||||
{
|
||||
}
|
||||
|
||||
template <class Archive>
|
||||
void Puppet::serialize(Archive & ar, const unsigned int version) {
|
||||
void Puppet::serialize_display(Archive::display_properties_archive & ar, const unsigned int version) {
|
||||
ar & boost::serialization::make_hrp("ColorR", d->m_Color[0]);
|
||||
ar & boost::serialization::make_hrp("ColorG", d->m_Color[1]);
|
||||
ar & boost::serialization::make_hrp("ColorB", d->m_Color[2]);
|
||||
@@ -483,10 +487,13 @@ void Puppet::serialize(Archive & ar, const unsigned int version) {
|
||||
ar & boost::serialization::make_hrp("Representation", d->m_Representation);
|
||||
}
|
||||
|
||||
void Puppet::save_override(Archive::xml_oarchive & ar, const unsigned int v) { serialize(ar, v); }
|
||||
void Puppet::save_override(Archive::hrt_oarchive & ar, const unsigned int v) { serialize(ar, v); }
|
||||
void Puppet::save_override(Archive::log_archive & ar, const unsigned int v) { serialize(ar, v); }
|
||||
void Puppet::save_override(Archive::text_oarchive & ar, const unsigned int v) { serialize(ar, v); }
|
||||
void Puppet::serialize(Archive::xml_oarchive & ar, const unsigned int v) { }
|
||||
void Puppet::serialize(Archive::xml_iarchive & ar, const unsigned int v) { }
|
||||
void Puppet::serialize(Archive::text_oarchive & ar, const unsigned int v) { }
|
||||
void Puppet::serialize(Archive::text_iarchive & ar, const unsigned int v) { }
|
||||
void Puppet::serialize(Archive::hrt_oarchive & ar, const unsigned int v) { }
|
||||
void Puppet::serialize(Archive::hrt_iarchive & ar, const unsigned int v) { }
|
||||
void Puppet::serialize(Archive::log_archive & ar, const unsigned int v) { }
|
||||
|
||||
} // namespace Vtk
|
||||
} // namespace uLib
|
||||
|
||||
Reference in New Issue
Block a user