 |
VTK
9.1.0
|
Go to the documentation of this file.
88 #ifndef vtkBorderRepresentation_h
89 #define vtkBorderRepresentation_h
92 #include "vtkInteractionWidgetsModule.h"
133 vtkViewportCoordinateMacro(Position2);
169 vtkSetClampMacro(ShowVerticalBorder,
int, BORDER_OFF, BORDER_ACTIVE);
170 vtkGetMacro(ShowVerticalBorder,
int);
178 vtkSetClampMacro(ShowHorizontalBorder,
int, BORDER_OFF, BORDER_ACTIVE);
179 vtkGetMacro(ShowHorizontalBorder,
int);
228 vtkSetVector2Macro(MinimumNormalizedViewportSize,
double);
229 vtkGetVector2Macro(MinimumNormalizedViewportSize,
double);
240 vtkSetVector2Macro(MinimumSize,
int);
241 vtkGetVector2Macro(MinimumSize,
int);
242 vtkSetVector2Macro(MaximumSize,
int);
243 vtkGetVector2Macro(MaximumSize,
int);
254 vtkSetClampMacro(Tolerance,
int, 1, 10);
255 vtkGetMacro(Tolerance,
int);
263 vtkGetVectorMacro(SelectionPoint,
double, 2);
293 vtkSetClampMacro(InteractionState,
int, 0, AdjustingE3);
337 vtkSetVector3Macro(BorderColor,
double);
338 vtkGetVector3Macro(BorderColor,
double);
347 vtkGetMacro(BorderThickness,
float);
359 vtkSetClampMacro(CornerRadiusStrength,
double, 0.0, 1.0);
360 vtkGetMacro(CornerRadiusStrength,
double);
369 vtkSetClampMacro(CornerResolution,
int, 0, 1000);
370 vtkGetMacro(CornerResolution,
int);
378 vtkSetVector3Macro(PolygonColor,
double);
379 vtkGetVector3Macro(PolygonColor,
double);
387 vtkSetClampMacro(PolygonOpacity,
double, 0.0, 1.0);
388 vtkGetMacro(PolygonOpacity,
double);
410 int ShowVerticalBorder = BORDER_ON;
411 int ShowHorizontalBorder = BORDER_ON;
418 double SelectionPoint[2] = { 0.0, 0.0 };
435 double StartPosition[2];
451 double MinimumNormalizedViewportSize[2] = { 0.0, 0.0 };
452 int MinimumSize[2] = { 1, 1 };
456 double BorderColor[3] = { 1.0, 1.0, 1.0 };
457 float BorderThickness = 1.0;
458 double CornerRadiusStrength = 0.0;
459 int CornerResolution = 20;
462 double PolygonColor[3] = { 1.0, 1.0, 1.0 };
463 double PolygonOpacity = 0.0;
represent and manipulate 3D points
vtkNew< vtkTransform > BWTransform
draw vtkPolyData onto the image plane
vtkNew< vtkCoordinate > PositionCoordinate
vtkNew< vtkCoordinate > Position2Coordinate
represent a vtkBorderWidget
vtkNew< vtkPolyData > PolyDataPolygon
virtual void SetShowBorder(int border)
Specify when and if the border should appear.
virtual void UpdateShowBorder()
void WidgetInteraction(double eventPos[2]) override
Subclasses should implement these methods.
vtkNew< vtkPolyData > BWPolyData
int RenderOpaqueGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
static vtkBorderRepresentation * New()
Instantiate this class.
vtkNew< vtkPolyDataMapper2D > BWMapperPolygon
void SetPolygonRGBA(double rgba[4])
Convenience method to set the background color and the opacity at once.
vtkNew< vtkPolyData > PolyDataEdges
void SetShowBorderToOff()
Specify when and if the border should appear.
virtual int GetShowBorderMaxValue()
Specify when and if the border should appear.
vtkNew< vtkPolyDataMapper2D > BWMapperEdges
void SetBWActorDisplayOverlay(bool)
void BuildRepresentation() override
Subclasses should implement these methods.
void PrintSelf(ostream &os, vtkIndent indent) override
Define standard methods.
void SetShowBorderToActive()
Specify when and if the border should appear.
window superclass for vtkRenderWindow
int ComputeInteractionState(int X, int Y, int modify=0) override
Subclasses should implement these methods.
vtkBorderRepresentation()
void GetActors2D(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp.
void SetShowBorderToOn()
Specify when and if the border should appear.
void ComputeRoundCorners()
Create all 4 round corners with the specified radius and resolution.
vtkNew< vtkTransformPolyDataFilter > BWTransformFilter
virtual void NegotiateLayout()
void ReleaseGraphicsResources(vtkWindow *) override
These methods are necessary to make this representation behave as a vtkProp.
vtkNew< vtkProperty2D > PolygonProperty
void SetPolygonRGBA(double r, double g, double b, double a)
Convenience method to set the background color and the opacity at once.
a simple class to control print indentation
object to represent cell connectivity
vtkNew< vtkActor2D > BWActorPolygon
virtual void GetSize(double size[2])
Subclasses should implement these methods.
virtual int GetShowBorderMinValue()
Specify when and if the border should appear.
void GetPolygonRGBA(double &r, double &g, double &b, double &a)
Convenience method to set the background color and the opacity at once.
virtual int GetShowBorder()
Specify when and if the border should appear.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
void GetPolygonRGBA(double rgba[4])
Convenience method to get the background color and the opacity at once.
void ComputeOneRoundCorner(vtkCellArray *polys, vtkPoints *points, const double radius, vtkIdType xPt, vtkIdType yPt, const double startAngle)
Create a quarter circle centered in point[idCenterX].x, point[idCenterY].y), of radius 'radius' with ...
abstract specification for Viewports
vtkNew< vtkActor2D > BWActorEdges
represent surface properties of a 2D image
a actor that draws 2D data
struct Position_t Position
_InteractionState
Define the various states that the representation can be in.
vtkNew< vtkPoints > BWPoints
vtkMTimeType GetMTime() override
Return the MTime of this object.
concrete dataset represents vertices, lines, polygons, and triangle strips
void StartWidgetInteraction(double eventPos[2]) override
Subclasses should implement these methods.
vtkNew< vtkProperty2D > BorderProperty
int RenderOverlay(vtkViewport *) override
These methods are necessary to make this representation behave as a vtkProp.
~vtkBorderRepresentation() override
vtkTypeBool HasTranslucentPolygonalGeometry() override
These methods are necessary to make this representation behave as a vtkProp.
vtkTypeUInt32 vtkMTimeType