Skip to content

Factorize OnCenter/OnCorner/CornerIndex properties #50

@finetjul

Description

@finetjul

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions