|
| | Aspect_GridParams () |
| | Construct with sensible defaults: grey lines on the plane origin with axis coloring enabled, 1/100 plane-unit spacing, overlay mode, unbounded in extent and radius.
|
| |
| const Quantity_Color & | Color () const |
| | Return grid line color.
|
| |
| void | SetColor (const Quantity_Color &theColor) |
| | Set grid line color.
|
| |
| const gp_Pnt & | Origin () const |
| | Return local offset of the grid origin within the plane.
|
| |
| void | SetOrigin (const gp_Pnt &theOrigin) |
| | Set local offset of the grid origin within the plane.
|
| |
| const Quantity_Color & | AccentColor () const |
| | Return every-tenth-line / accent colour rendered by the shader.
|
| |
| void | SetAccentColor (const Quantity_Color &theColor) |
| | Set every-tenth-line / accent colour rendered by the shader.
|
| |
| double | AccentScaleX () const |
| | Return accent overlay scale along the plane X/radial direction. Zero disables the accent layer on that axis.
|
| |
| void | SetAccentScaleX (const double theScale) |
| | Set accent overlay scale along the plane X/radial direction.
|
| |
| double | AccentScaleY () const |
| | Return accent overlay scale along the plane Y direction. Zero disables the accent layer on that axis.
|
| |
| void | SetAccentScaleY (const double theScale) |
| | Set accent overlay scale along the plane Y direction.
|
| |
| double | AccentAngularScale () const |
| | Return accent overlay angular scale for circular-grid spokes. Zero disables the angular accent layer.
|
| |
| void | SetAccentAngularScale (const double theScale) |
| | Set accent overlay angular scale for circular-grid spokes.
|
| |
| double | Scale () const |
| | Return major-grid scale factor along the plane X direction (cells per plane unit).
|
| |
| void | SetScale (const double theScale) |
| | Set major-grid scale factor along the plane X direction (cells per plane unit). Must be non-negative; zero is a valid "unused" sentinel.
|
| |
| double | ScaleY () const |
| | Return explicit Y-direction scale. When 0.0, renderer falls back to Scale() (isotropic).
|
| |
| void | SetScaleY (const double theScaleY) |
| | Set explicit Y-direction scale. Pass 0.0 to mirror Scale() (isotropic, default).
|
| |
| double | EffectiveScaleY () const |
| | Effective Y-direction scale actually consumed by the renderer.
|
| |
| double | LineThickness () const |
| | Return line thickness in plane units (minimum pixel-space line width is derived from fwidth).
|
| |
| void | SetLineThickness (const double theThickness) |
| | Set line thickness in plane units.
|
| |
| double | RotationAngle () const |
| | Return in-plane rotation angle (radians) applied to the grid axes around the plane normal.
|
| |
| void | SetRotationAngle (const double theAngle) |
| | Set in-plane rotation angle (radians) applied to the grid axes around the plane normal.
|
| |
| int | AngularDivisions () const |
| | Return the angular subdivision count of the half-circle for circular grids. Zero means rectangular grid (default); any positive value switches the renderer to polar rings (Scale -> radial step) and spokes at pi/N rad.
|
| |
| void | SetAngularDivisions (const int theDivisions) |
| | Set angular subdivision count (0 = rectangular grid, N>0 = circular with N spokes per 180 deg).
|
| |
| bool | IsCircular () const |
| | Return TRUE when the parameters describe a circular (polar) grid.
|
| |
| double | SizeX () const |
| | Return rectangular bounded extent along plane X; 0.0 means unbounded.
|
| |
| void | SetSizeX (const double theSize) |
| | Set rectangular bounded extent along plane X; 0.0 means unbounded.
|
| |
| double | SizeY () const |
| | Return rectangular bounded extent along plane Y; 0.0 means unbounded.
|
| |
| void | SetSizeY (const double theSize) |
| | Set rectangular bounded extent along plane Y; 0.0 means unbounded.
|
| |
| double | Radius () const |
| | Return circular bounded radius; 0.0 means unbounded.
|
| |
| void | SetRadius (const double theRadius) |
| | Set circular bounded radius; 0.0 means unbounded.
|
| |
| double | ZOffset () const |
| | Return signed plane-normal offset applied at render time.
|
| |
| void | SetZOffset (const double theOffset) |
| | Set signed plane-normal offset applied at render time (display only; snap math stays on the unshifted plane).
|
| |
| double | AngleStart () const |
| | Return arc start angle (radians). Meaningful only when IsArc() is true.
|
| |
| double | AngleEnd () const |
| | Return arc end angle (radians). Meaningful only when IsArc() is true.
|
| |
| void | SetArcRange (const double theStart, const double theEnd) |
| | Restrict the circular grid to an angular wedge [start, end], walking CCW. Equal start and end (e.g. 0.0 and 0.0) returns to full-circle rendering.
|
| |
| bool | IsBounded () const |
| | Return TRUE when the parameters describe a bounded rectangle or disc.
|
| |
| bool | IsArc () const |
| | Return TRUE when the circular grid is restricted to a sub-arc.
|
| |
| Aspect_GridDrawMode | DrawMode () const |
| | Return draw mode: lines, points at grid intersections, or none.
|
| |
| void | SetDrawMode (const Aspect_GridDrawMode theMode) |
| | Set draw mode. Aspect_GDM_None suppresses rendering entirely; Points draws dots at grid-line intersections, Lines (default) draws the full grid.
|
| |
| bool | IsBackground () const |
| | Return TRUE if grid is drawn as a view-space background (behind all geometry).
|
| |
| void | SetIsBackground (const bool theIsBackground) |
| | Set background-mode rendering on/off.
|
| |
| bool | IsDrawAxis () const |
| | Return TRUE if axis lines on the grid plane are drawn in red/green/blue.
|
| |
| void | SetIsDrawAxis (const bool theIsDrawAxis) |
| | Set axis coloring on/off.
|
| |
| bool | IsViewAdaptive () const |
| | Return TRUE if grid spacing and visible extents adapt to the camera view.
|
| |
| void | SetIsViewAdaptive (const bool theIsViewAdaptive) |
| | Set view-adaptive grid on/off. When enabled, renderer derives temporary cell spacing and bounds from the current camera. The inverse of ScaleY() (or Scale() when ScaleY() is zero) is used as the target number of cells across the view height.
|
| |
Shader grid appearance (color, scale, bounds, arc, draw mode, background / adaptive flags). Consumed only by the GPU path: V3d_View::GridDisplay -> OpenGl_View::renderGrid. No effect on the CPU path (V3d_Viewer::ActivateGrid). Snap math is independent and lives on Aspect_RectangularGrid / Aspect_CircularGrid.