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…

A Few Powerful Options For Git Stash

Git stash has many common operations that can be represented by following commands. git stash git stash list git stash pop [–index] [stash_id] git stash apply [–index] [stash_id] git stash drop [stash_id] git stash clear Now we will learn a few other powerful options. git stash push After October 2017, 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…

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

X