VTK Rotate Cone With Ring

A few macros we need in our project are in the following code snippet. They can make our project cleaner. #define vtkPtr( var, className ) vtkSmartPointer<className> var = \ vtkSmartPointer<className>::New() #define CPP_SET_MACRO(name,type) \ void Set##name(type _arg) \ { \ if (this->name != _arg) \ { \ this->name = _arg; \ Read more…

VTK Measurement Widgets

The article shows a few kinds of widgets which are used to measure the distance between two points, angle between two rays, and the bidimensional length of an object. Distance Measure The Distance On 2D Model We need vtkDistanceWidget, vtkDistanceRepresentation2D and vtkPointHandleRepresentation2D to help us to calculate the distance between 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