Make Model Always On Top

We can find that vtkOrientedGlyphContourRepresentation supports to set 3D model always above other objects. // Create the contour widget vtkSmartPointer<vtkContourWidget> contourWidget = vtkSmartPointer<vtkContourWidget>::New(); // Override the default representation for the contour widget to customize its look vtkSmartPointer<vtkOrientedGlyphContourRepresentation> contourRepresentation = vtkSmartPointer<vtkOrientedGlyphContourRepresentation>::New(); // … contourWidget->SetRepresentation(contourRepresentation); contourRepresentation->SetAlwaysOnTop( true ); I readed the code Read more…

Coordinate Transformation For Different Systems

We can use vtkCoordinate and vtkRenderer objects to convert point’s coordinate from a system to another one. I found vtkCoordinate called the functions of vtkViewport (vtkRenderer is child class of vtkViewport) to accomplish coordinate transformation. class vtkViewport: virtual void LocalDisplayToDisplay(double &x, double &y); virtual void DisplayToNormalizedDisplay(double &u, double &v); virtual Read more…

Show Image By vtkActor2D

I want to show png picture by vtkActor2D rather than vtkImageActor or vtkImageViewer. There is not rotating and scaling for the picture when move mouse and click if the vtkActor2D object works. But how to do it? The following project shows axes and a png picture in the window, the Read more…

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

X