refactor: enhance vtkVoxImage volume rendering with dynamic shader range scaling, improved transfer function management, and synchronized VTK property updates.
This commit is contained in:
@@ -134,11 +134,11 @@ public:
|
||||
|
||||
vtkActor *actor = vtkActor::SafeDownCast(p);
|
||||
if (actor) {
|
||||
if (m_Representation != -1) {
|
||||
if (m_Representation != -1 && m_Representation != Puppet::Volume) {
|
||||
if (m_Representation == Puppet::SurfaceWithEdges) {
|
||||
actor->GetProperty()->SetRepresentation(VTK_SURFACE);
|
||||
actor->GetProperty()->SetEdgeVisibility(1);
|
||||
} else {
|
||||
} else if (m_Representation != Puppet::Outline && m_Representation != Puppet::Slice) {
|
||||
actor->GetProperty()->SetRepresentation(m_Representation);
|
||||
actor->GetProperty()->SetEdgeVisibility(0);
|
||||
}
|
||||
@@ -628,6 +628,8 @@ struct AppearanceProxy {
|
||||
ar & boost::serialization::make_hrp("Visibility", pd->m_Visibility);
|
||||
ar & boost::serialization::make_hrp("Pickable", pd->m_Selectable);
|
||||
ar & boost::serialization::make_hrp("Dragable", pd->m_Dragable);
|
||||
ar & boost::serialization::make_hrp("ShowBoundingBox", pd->m_ShowBoundingBox);
|
||||
ar & boost::serialization::make_hrp("ShowScaleMeasures", pd->m_ShowScaleMeasures);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user