Ruler#
Ruler#
Constructor#
|
pygfx.Ruler subclass that adds a rotated axis label. |
Properties#
Whether this object casts shadows, i.e. whether it is rendered into a shadow map. |
|
tuple of children of this object. |
|
The color of the ruler components. |
|
The end posision of the ruler, in model space. |
|
The value at the end of the ruler (read-only). |
|
The object's geometry, the data that defines (the shape of) this object. |
|
An integer id smaller than 2**31 (read-only). |
|
Axis label. |
|
The line object that shows the ruler's path. |
|
The width of the line and tickmarks. |
|
The object's material, the data that defines the appearance of this object. |
|
The minimal distance between ticks in screen pixels, when using auto-ticks. |
|
An optional nonlinear transform, expressed as WGSL shader code, applied to the raw vertex positions. |
|
Object's parent in the scene graph (read-only). |
|
The points object that shows the ruler's tickmarks. |
|
Whether this object receives shadows. |
|
Per-object rendering priority used to fine-tune the draw order within a render queue. |
|
The start posision of the ruler, in model space. |
|
The value of the ruler at the start position (i.e. the offset). |
|
The text object that shows the ruler's tick labels. |
|
The format to display the tick values. |
|
The marker used for the ticks. |
|
Whether the ticks are on the 'left' or 'right' of the line. |
|
The size of the tick marker, i.e. the length of the little line segment. |
|
The ticks to show. |
|
Whether to show tickmarks at the end-points. |
|
Relic of old WorldObjects that aliases with the new |
|
Whether is object is rendered or not. |
Methods#
|
Add child objects. |
|
Register an event handler. |
|
Removes all children. |
Axis-aligned bounding box in local model space. |
|
Bounding Sphere in local model space. |
|
Axis aligned bounding box in world space. |
|
Bounding Sphere in world space. |
|
|
Handle an incoming event. |
|
Create a generator that iterates over this objects and its children. |
|
Orient the object so it looks at the given position. |
|
Release the pointer capture for the object that was registered to the given pointer_id. |
|
Removes object as child of this object. |
|
Unregister an event handler. |
|
Register this object to capture any other pointer events, until |
|
Executes the callback on this object and all descendants. |
|
Update the ruler. |