30 #ifndef vtkBorderRepresentation_h
31 #define vtkBorderRepresentation_h
34 #include "vtkInteractionWidgetsModule.h"
40 VTK_ABI_NAMESPACE_BEGIN
77 vtkViewportCoordinateMacro(
Position);
78 vtkViewportCoordinateMacro(Position2);
100 virtual void SetShowBorder(
int border);
101 virtual int GetShowBorderMinValue();
102 virtual int GetShowBorderMaxValue();
103 virtual int GetShowBorder();
115 vtkSetClampMacro(ShowVerticalBorder,
int, BORDER_OFF, BORDER_ACTIVE);
116 vtkGetMacro(ShowVerticalBorder,
int);
125 vtkSetClampMacro(ShowHorizontalBorder,
int, BORDER_OFF, BORDER_ACTIVE);
126 vtkGetMacro(ShowHorizontalBorder,
int);
142 virtual void SetShowPolygon(
int border);
143 virtual int GetShowPolygon();
155 vtkSetClampMacro(ShowPolygonBackground,
int, BORDER_OFF, BORDER_ACTIVE);
156 vtkGetMacro(ShowPolygonBackground,
int);
168 vtkSetMacro(EnforceNormalizedViewportBounds,
vtkTypeBool);
169 vtkGetMacro(EnforceNormalizedViewportBounds,
vtkTypeBool);
170 vtkBooleanMacro(EnforceNormalizedViewportBounds,
vtkTypeBool);
196 vtkSetVector2Macro(MinimumNormalizedViewportSize,
double);
197 vtkGetVector2Macro(MinimumNormalizedViewportSize,
double);
208 vtkSetVector2Macro(MinimumSize,
int);
209 vtkGetVector2Macro(MinimumSize,
int);
210 vtkSetVector2Macro(MaximumSize,
int);
211 vtkGetVector2Macro(MaximumSize,
int);
222 vtkSetClampMacro(Tolerance,
int, 1, 10);
223 vtkGetMacro(Tolerance,
int);
231 vtkGetVectorMacro(SelectionPoint,
double, 2);
268 virtual void SetWindowLocation(
int enumLocation);
269 vtkGetMacro(WindowLocation,
int);
278 virtual void UpdateWindowLocation();
297 vtkSetClampMacro(InteractionState,
int, 0, AdjustingE3);
334 void SetBWActorDisplayOverlayEdges(
bool);
335 void SetBWActorDisplayOverlayPolygon(
bool);
342 vtkSetVector3Macro(BorderColor,
double);
343 vtkGetVector3Macro(BorderColor,
double);
352 vtkGetMacro(BorderThickness,
float);
364 vtkSetClampMacro(CornerRadiusStrength,
double, 0.0, 1.0);
365 vtkGetMacro(CornerRadiusStrength,
double);
374 vtkSetClampMacro(CornerResolution,
int, 0, 1000);
375 vtkGetMacro(CornerResolution,
int);
383 vtkSetVector3Macro(PolygonColor,
double);
384 vtkGetVector3Macro(PolygonColor,
double);
392 vtkSetClampMacro(PolygonOpacity,
double, 0.0, 1.0);
393 vtkGetMacro(PolygonOpacity,
double);
400 void SetPolygonRGBA(
double rgba[4]);
401 void SetPolygonRGBA(
double r,
double g,
double b,
double a);
406 void GetPolygonRGBA(
double rgba[4]);
407 void GetPolygonRGBA(
double& r,
double& g,
double& b,
double& a);
415 int ShowVerticalBorder = BORDER_ON;
416 int ShowHorizontalBorder = BORDER_ON;
417 int ShowPolygonBackground = BORDER_ON;
424 double SelectionPoint[2] = { 0.0, 0.0 };
431 int WindowLocation = AnyLocation;
436 virtual void NegotiateLayout();
441 virtual void UpdateShowBorder();
444 double StartPosition[2];
460 double MinimumNormalizedViewportSize[2] = { 0.0, 0.0 };
461 int MinimumSize[2] = { 1, 1 };
465 double BorderColor[3] = { 1.0, 1.0, 1.0 };
466 float BorderThickness = 1.0;
467 double CornerRadiusStrength = 0.0;
468 int CornerResolution = 20;
471 double PolygonColor[3] = { 1.0, 1.0, 1.0 };
472 double PolygonOpacity = 0.0;
477 void ComputeRoundCorners();
494 VTK_ABI_NAMESPACE_END
vtkNew< vtkPolyData > BWPolyData
vtkNew< vtkTransformFilter > BWTransformFilter
vtkNew< vtkCoordinate > Position2Coordinate
void SetShowPolygonToOn()
Specify when and if the border's polygon background should appear.
vtkNew< vtkCoordinate > PositionCoordinate
vtkTypeUInt32 vtkMTimeType
abstract specification for Viewports
struct Position_t Position
a actor that draws 2D data
void SetShowBorderToOff()
Specify when and if the border should appear.
vtkNew< vtkPolyDataMapper2D > BWMapperEdges
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkNew< vtkPolyDataMapper2D > BWMapperPolygon
vtkNew< vtkActor2D > BWActorPolygon
window superclass for vtkRenderWindow
virtual void GetSize(double size[2])
Subclasses should implement these methods.
vtkNew< vtkPolyData > PolyDataEdges
vtkNew< vtkProperty2D > PolygonProperty
void SetShowPolygonToOff()
Specify when and if the border's polygon background should appear.
void SetShowBorderToOn()
Specify when and if the border should appear.
a simple class to control print indentation
void SetShowBorderToActive()
Specify when and if the border should appear.
InteractionStateType
Define the various states that the representation can be in.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
represent a vtkBorderWidget
vtkNew< vtkPoints > BWPoints
void SetShowPolygonToActive()
Specify when and if the border's polygon background should appear.
vtkNew< vtkActor2D > BWActorEdges
object to represent cell connectivity
represent surface properties of a 2D image
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkNew< vtkTransform > BWTransform
vtkNew< vtkProperty2D > BorderProperty
draw vtkPolyData onto the image plane
represent and manipulate 3D points
vtkNew< vtkPolyData > PolyDataPolygon