Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factorize OnCenter/OnCorner/CornerIndex properties #50

Open
finetjul opened this issue Feb 12, 2013 · 0 comments
Open

Factorize OnCenter/OnCorner/CornerIndex properties #50

finetjul opened this issue Feb 12, 2013 · 0 comments
Assignees

Comments

@finetjul
Copy link
Member

The msvVTKButtons properties OnCenter, OnCorner and CornerIndex are a bit confusing.

I would suggest instead to factorize those properties in 2:

enum LocationType
{
  OnDataCenter = 0,
  OnDataCorner = 1,
  OnScreenCorner =2
};
vtkSetMacro(Location, int);
vtkGetMacro(Location, int);

enum ScreenCornerType
{
  BottomLeft = 0,
  BottomRight = 1,
  TopLeft = 2,
  TopRight = 3
};
vtkSetMacro(ScreenCorner, int);
vtkGetMacro(ScreenCorner, int);

This would gives the ability to easily extend the list of possible locations.

@ghost ghost assigned alosi Feb 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants