SMTK
latest
  • SMTK User’s Guide
    • Obtaining, Building, and Installing
    • An Overview of SMTK’s Subsytems
    • SMTK Common
    • SMTK’s Resource System
    • SMTK’s Geometry System
    • SMTK’s Attribute Resource
    • SMTK’s Operation System
    • SMTK’s Geometric Model Resource
    • SMTK’s Graph-based Model Resource
    • SMTK’s Markup (Annotation) Resource
    • SMTK’s Mesh Resource
    • SMTK’s Project System
    • SMTK’s Task System
    • SMTK’s Simulation System
    • SMTK’s View System
    • SMTK’s Extensions
      • Qt
      • Visualization Tool Kit
      • ParaView
        • Anatomy of ParaView
        • Integration with SMTK
        • Plugins
        • Lifecycle
        • Representations
        • Integrating ParaView and SMTK Selection
        • Panels
        • Widgets
    • SMTK’s Bindings
    • SMTK’s Plugin System
    • String token utilities
    • Debugging tips and tricks
    • Administering SMTK
    • Contributing to SMTK
  • Tutorials
  • Release notes
SMTK
  • »
  • SMTK User’s Guide »
  • SMTK’s Extensions »
  • ParaView »
  • Widgets »
  • Gallery
  • View page source

Gallery¶

SMTK’s existing widgets are listed below with instructions for their use.

Point¶

The pqSMTKPointItemWidget can be attached to an SMTK Double item with 3 entries: the x, y, and z coordinates of a point in world coordinates. When the widget is in its fully enabled state, the ‘P’ and ‘Ctrl+P’ (or ‘Cmd+P’ on macos) keys may be used to pick point placement in the render window (on any fully-opaque surface underneath the mouse pointer when the key is pressed). The latter version will choose the nearest vertex in the dataset rather than the point on the pixel directly under the pointer.

../../../../_images/widget-point.png

The Qt widget (left) and 3-D widget (right) for editing point locations.¶

Line¶

The pqSMTKLineItemWidget can be attached to an SMTK Group item 2 Double children holding 3 values each. Each Double item specifies one line endpoint’s coordinates. In the item’s view configuration, specify Point1 and Point2 attributes naming the names of the Group’s children that represent these points.

../../../../_images/widget-line.png

The Qt widget (left) and 3-D widget (right) for editing line segments.¶

Plane¶

The pqSMTKPlaneItemWidget can be attached to an SMTK Group item with 2 Double children holding 3 values each: one specifying an Origin point and the other specifying a Normal vector.

../../../../_images/widget-plane.png

The Qt widget (left) and 3-D widget (right) for editing (unbounded) planes.¶

Box¶

The pqSMTKBoxItemWidget can be attached to an SMTK Double item with 6 entries in the order (xmin, xmax, ymin, ymax, zmin, zmaz). It can also be attached to a group with Min, Max, and optionally Angles items representing two corner points in space and a set of 3 Tait-Bryan rotation angles. Finally, the box widget also accepts a group containing a Center, Deltas, and optionally Angles items representing the box centroid, lengths along 3 orthogonal axes from the center to each face of the box, and rotation angles as above.

../../../../_images/widget-box.png

The Qt widget (left) and 3-D widget (right) for editing boxes.¶

Cone (and Cylinder)¶

The pqSMTKConeItemWidget can be attached to an SMTK Group holding two Double items, each with 3 values, representing the bottom and top points of a truncated cone; plus two more Double items, each with a single value representing the radius at each point. Alternately, a single radius Double item may be provided to accept only cylinders.

../../../../_images/widget-cone.png

The Qt widget (left) and 3-D widget (right) for editing truncated cones.¶

Sphere¶

The pqSMTKSphereItemWidget can be attached to an SMTK Group holding a Double item with 3 values representing the Center of a sphere and another Double item with a single value representing the Radius.

../../../../_images/widget-sphere.png

The Qt widget (left) and 3-D widget (right) for editing spheres.¶

Spline¶

The pqSMTKSplineItemWidget may represent a polyline or a cardinal spline, depending on whether its View configuration has a Polyline attribute set to true or not. The widget must be attached to an SMTK Group holding a Double item with 6 or more values representing the 3-D coordinates of handle points and an Int item interpreted as a boolean that indicates whether the curve should be a closed loop or an open segment.

../../../../_images/widget-spline.png

The Qt widget (left) and 3-D widget (right) for editing polyline and spline curves.¶

Previous Next

© Copyright 2023, Kitware, Inc.. Revision 2f63c0f9.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
v23.01.0
v22.11.0
release
Downloads
html
On Read the Docs
Project Home
Builds