OCC.Addons module¶
-
class
LineItem
(*args)¶ Bases:
object
- Creates a shape of the given text
Parameters: - X1 (float) – X-Position of the first point
- Y1 (float :param X2: X-Position of the second point :type X2: float :param Y2: Y-Position of the second point :type Y2: float) – Y-Position of the first point
- theLayer (const Handle_Visual3d_Layer&) – The Layer
- theType (int) – Type of line: 0..10
- theWidth (float) – Width of the line
- theTransp (float) – Transparency: 0..1
- theColor (const Quantity_Color &) – Rgb color
-
RedrawLayerPrs
()¶
-
thisown
¶ The membership flag
-
class
TextItem
(*args)¶ Bases:
object
- Displays a text in the screen
Parameters: - theText (const TCollection_AsciiString&) – Text to display
- theX1 (float) – X-Position on the display
- theY1 (float) – Y-Position on the display
- theHeight (float) – Size of the font
- theFontName (const TCollection_AsciiString&) – Name of the font
- theColor (const Quantity_Color&) – Rgb color. E.g. Quantity_Color(0..1, 0..1, 0..1, 1)
- theSubtitleColor (const Quantity_Color&) – Rgb color of the sub title
- theTypeOfDisplay (int) – Type of display, e.g. Aspect_TODT_NORMAL, Aspect_TODT_SUBTITLE, Aspect_TODT_DEKALE
- theLayer –
- ScrollX –
- Scrolly –
Type: const Handle_Visual3d_Layer&
Type: const float
Type: const float
-
RedrawLayerPrs
()¶
-
thisown
¶ The membership flag
-
class
TextureItem
(*args)¶ Bases:
object
- Creates a shape of the given text
Parameters: - theImageFilename (const TCollection_AsciiString&) – Path to the image
- theView (V3d_View * :param theLayer: Layer for the texture :type theLayer: const Handle_Visual3d_Layer&) – The display view
-
RedrawLayerPrs
()¶
-
SetAbsolutePosition
()¶
-
SetRelativePosition
()¶
-
thisown
¶ The membership flag
-
display_available_fonts
()¶ - Prints a list of all available fonts.
Return type: void
-
new_instancemethod
(func, inst, cls)¶
-
register_font
()¶ - Add a font to the available font list.
Parameters: aFontPath (char *) – Path to the font. Return type: void
-
text_to_brep
()¶ - Creates a shape of the given text.
Parameters: Return type: