MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.Pdf.ConstImageParams Class Reference
Inheritance diagram for mrmeshpy.Pdf.ConstImageParams:

Classes

class  AlignmentVertical
class  UniformScale

Public Member Functions

 __init__ (self, *args, **kwargs)
Pdf.AlignmentHorizontal alignmentHorizontal (self)
Pdf.ImageParams.AlignmentVertical alignmentVertical (self)
str caption (self)
ConstVector2f size (self)
Pdf.ImageParams.UniformScale uniformScale (self)

Static Protected Attributes

typing _offsetof_alignmentHorizontal = 48
typing _offsetof_alignmentVertical = 44
typing _offsetof_caption = 8
typing _offsetof_size = 0
typing _offsetof_uniformScale = 40

Detailed Description

Generated from:  MR::Pdf::ImageParams

Parameters to adding image from file

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.Pdf.ConstImageParams.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.Pdf.ConstImageParams) -> None

2. __init__(self: meshlib.mrmeshpy.Pdf.ConstImageParams, arg0: meshlib.mrmeshpy.Pdf.ConstImageParams) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.Pdf.ConstImageParams, size: meshlib.mrmeshpy.ConstVector2f, caption: str, uniformScale: meshlib.mrmeshpy.Pdf.ImageParams.UniformScale, alignmentVertical: meshlib.mrmeshpy.Pdf.ImageParams.AlignmentVertical, alignmentHorizontal: meshlib.mrmeshpy.Pdf.AlignmentHorizontal) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.Pdf.ConstImageParams, : meshlib.mrmeshpy.Pdf.ConstImageParams) -> None

Member Function Documentation

◆ alignmentHorizontal()

Pdf.AlignmentHorizontal mrmeshpy.Pdf.ConstImageParams.alignmentHorizontal ( self)

◆ alignmentVertical()

Pdf.ImageParams.AlignmentVertical mrmeshpy.Pdf.ConstImageParams.alignmentVertical ( self)

◆ caption()

str mrmeshpy.Pdf.ConstImageParams.caption ( self)
caption if not empty - add caption under marks (if exist) or image.

Reimplemented in mrmeshpy.ConstPdf.ImageParams, mrmeshpy.ConstPdf.ImageParams, mrmeshpy.Pdf.ImageParams, and mrmeshpy.Pdf.ImageParams.

◆ size()

ConstVector2f mrmeshpy.Pdf.ConstImageParams.size ( self)
image size in page space
if == {0, 0} - use image size
if .x or .y < 0 use the available page size from the current cursor position (caption size is also accounted for)

Reimplemented in mrmeshpy.ConstPdf.ImageParams, mrmeshpy.ConstPdf.ImageParams, mrmeshpy.Pdf.ImageParams, and mrmeshpy.Pdf.ImageParams.

◆ uniformScale()

Pdf.ImageParams.UniformScale mrmeshpy.Pdf.ConstImageParams.uniformScale ( self)

Member Data Documentation

◆ _offsetof_alignmentHorizontal

typing mrmeshpy.Pdf.ConstImageParams._offsetof_alignmentHorizontal = 48
staticprotected

◆ _offsetof_alignmentVertical

typing mrmeshpy.Pdf.ConstImageParams._offsetof_alignmentVertical = 44
staticprotected

◆ _offsetof_caption

typing mrmeshpy.Pdf.ConstImageParams._offsetof_caption = 8
staticprotected

◆ _offsetof_size

typing mrmeshpy.Pdf.ConstImageParams._offsetof_size = 0
staticprotected

◆ _offsetof_uniformScale

typing mrmeshpy.Pdf.ConstImageParams._offsetof_uniformScale = 40
staticprotected

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