VTK  9.7.20261203
vtkAnariOverlays::PixelRect Struct Reference

#include <vtkAnariOverlayCanvas.h>

Detailed Description

An axis-aligned pixel rectangle covering [X0, X1) x [Y0, Y1).

It is empty when X1 <= X0 or Y1 <= Y0.

Definition at line 36 of file vtkAnariOverlayCanvas.h.

Public Member Functions

PixelRect Intersect (const PixelRect &o) const
 Returns the overlap of this rectangle and o.

Public Attributes

int X0 = 0
int Y0 = 0
int X1 = 0
int Y1 = 0

Member Function Documentation

◆ Intersect()

PixelRect vtkAnariOverlays::PixelRect::Intersect ( const PixelRect & o) const
inline

Returns the overlap of this rectangle and o.

The result is empty (and may have X1 < X0 or Y1 < Y0) when they don't overlap.

Definition at line 47 of file vtkAnariOverlayCanvas.h.

Member Data Documentation

◆ X0

int vtkAnariOverlays::PixelRect::X0 = 0

Definition at line 38 of file vtkAnariOverlayCanvas.h.

◆ Y0

int vtkAnariOverlays::PixelRect::Y0 = 0

Definition at line 39 of file vtkAnariOverlayCanvas.h.

◆ X1

int vtkAnariOverlays::PixelRect::X1 = 0

Definition at line 40 of file vtkAnariOverlayCanvas.h.

◆ Y1

int vtkAnariOverlays::PixelRect::Y1 = 0

Definition at line 41 of file vtkAnariOverlayCanvas.h.


The documentation for this struct was generated from the following file: