Since the triangle is not a standard ROI, you would have to create it manually. You could build a nice user interface that would track the mouse coordinates, display the triangle using overlays or ROIs, and anchor the corners of the triangle when you clicked. It would take some work to put it all together. You would need to use some math to figure out the coordinates of the three corners of the triangle. It would also depend on how many variables you have. Right now I see three mouse clicks - click position of tip of triangle, drag mouse to control orientation and height, then click and drag mouse to control width.
Bruce
Bruce Ammons
Ammons Engineering