How to hide all control points of a curve

Hello, I want to hide all control points and only show the curve. How to achieve that by the API from vtkMRMLMarkupsDisplayNode?

You can increase LineThickness to maximum and decrease GlyphSize/Scale. Then you won’t see the control points because they will have the same size as the line. If you want to prevent interaction, you can also lock the curve. There are other ways but I think this is the simplest.

Not from vtkMRMLMarkupsDisplayNode, but vtkMRMLMarkupsNode has the SetNthControlPointVisibility function.