refactor: rename Vtk classes by removing the vtk prefix to follow project naming conventions

This commit is contained in:
AndreaRigoni
2026-04-08 15:14:55 +00:00
parent 8a01ee7f40
commit 77f00a2b8a
66 changed files with 494 additions and 477 deletions

View File

@@ -32,23 +32,23 @@
#include <vtkProperty.h>
#include <vtkSmartPointer.h>
#include <vtkTransform.h>
#include "Math/vtkDense.h"
#include "Vtk/Math/vtkDense.h"
namespace uLib {
namespace Vtk {
vtkCylinder::vtkCylinder(vtkCylinder::Content *content)
Cylinder::Cylinder(Cylinder::Content *content)
: m_Content(content), m_Actor(nullptr), m_VtkAsm(nullptr) {
this->InstallPipe();
m_UpdateSignal = Object::connect(m_Content, &uLib::Object::Updated, this, &vtkCylinder::Update);
m_UpdateSignal = Object::connect(m_Content, &uLib::Object::Updated, this, &Cylinder::Update);
}
vtkCylinder::~vtkCylinder() {
Cylinder::~Cylinder() {
if (m_Actor) m_Actor->Delete();
if (m_VtkAsm) m_VtkAsm->Delete();
}
void vtkCylinder::Update() {
void Cylinder::Update() {
if (!m_Content)
return;
@@ -85,7 +85,7 @@ void vtkCylinder::Update() {
this->Puppet::Update();
}
void vtkCylinder::SyncFromVtk() {
void Cylinder::SyncFromVtk() {
if (!m_Content) return;
vtkProp3D* root = this->GetProxyProp();
@@ -100,7 +100,7 @@ void vtkCylinder::SyncFromVtk() {
m_Content->Updated();
}
void vtkCylinder::InstallPipe() {
void Cylinder::InstallPipe() {
if (!m_Content)
return;