refactor: simplify vtkContainerBox transform logic by removing redundant affine matrix and updating synchronization methods

This commit is contained in:
AndreaRigoni
2026-04-08 13:37:38 +00:00
parent 03a3130855
commit 8a01ee7f40
4 changed files with 36 additions and 36 deletions

View File

@@ -100,6 +100,7 @@ public:
~PuppetData() {
// No manual Delete needed for smart pointers
}
Puppet *m_Puppet;
@@ -112,9 +113,10 @@ public:
vtkSmartPointer<vtkCubeAxesActor> m_CubeAxesActor;
vtkSmartPointer<vtkActor> m_HighlightActor;
// Display properties
bool m_ShowBoundingBox;
bool m_ShowScaleMeasures;
int m_Representation;
int m_Representation; // 0: Points, 1: Wireframe, 2: Surface, 3: SurfaceWithEdges, 4: Volume, 5: Outline, 6: Slice
Vector3d m_Color;
double m_Opacity;
@@ -179,7 +181,6 @@ public:
void UpdateHighlight() {
if (m_Selected) {
// Find first polydata in assembly to highlight
vtkPolyData* polydata = nullptr;
if (vtkActor *actor = vtkActor::SafeDownCast(m_Prop)) {
if (actor->GetMapper()) {