refactor: simplify vtkContainerBox transform logic by removing redundant affine matrix and updating synchronization methods
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user