Delete vtkObjectBase Object

The interface vtkObjectBase::UnRegister will reduce the reference count for pointer and delete the pointer if the reference count becomes zero. vtkObjectBase::Delete <= vtkObjectBase::UnRegister <= vtkObjectBase::UnRegisterInternal <= delete ptr vtkSmartPointerBase::~vtkSmartPointerBase { vtkObjectBase* object = this->Object; if(object) { this->Object = nullptr; object->UnRegister(nullptr); } } We can get the reference count and consumer Read more…

VTK – A Simple Example Written In C++

The article shows how to create a simple vtk render window project. We need cmake and the visualization toolkit installed. This example uses C plus plus programming language to create and show a cone in the 3D world. CMakeLists.txt cmake_minimum_required(VERSION 2.8) project(mytest) find_package( VTK REQUIRED ) include( ${VTK_USE_FILE} ) add_executable(${PROJECT_NAME} Read more…

Tex To PDF
: convert the Latex file which suffix is tex to a PDF file

X