MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.TextMeshAlignParams Class Reference
Inheritance diagram for meshlib.TextMeshAlignParams:

Public Member Functions

 TextMeshAlignParams (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 TextMeshAlignParams ()
 TextMeshAlignParams (meshlib.TextMeshAlignParams _other)
meshlib.TextMeshAlignParams assignFromAnother (meshlib.TextMeshAlignParams _other)
meshlib.MeshTriPoint startPoint ()
void setStartPoint (meshlib.MeshTriPoint value)
meshlib.Vector2f pivotPoint ()
void setPivotPoint (meshlib.Vector2f value)
meshlib.Vector3f direction ()
void setDirection (meshlib.Vector3f value)
java.lang.foreign.MemorySegment textNormal ()
void setTextNormal (meshlib.Vector3f value)
float fontHeight ()
void setFontHeight (float value)
float surfaceOffset ()
void setSurfaceOffset (float value)
float textMaximumMovement ()
void setTextMaximumMovement (float value)
boolean fontBasedSizeCalc ()
void setFontBasedSizeCalc (boolean value)
meshlib.std_string text ()
void setText (java.lang.String value)
int fontDetalization ()
void setFontDetalization (int value)
meshlib.Vector2f symbolsDistanceAdditionalOffset ()
void setSymbolsDistanceAdditionalOffset (meshlib.Vector2f value)
float symbolsThicknessOffsetModifier ()
void setSymbolsThicknessOffsetModifier (float value)
meshlib.AlignType align ()
void setAlign (meshlib.AlignType value)
meshlib.std_filesystem_path pathToFontFile ()
void setPathToFontFile (java.lang.String value)
meshlib.SymbolMeshParams upcastToSymbolMeshParams ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Static Public Member Functions

static float MaxGeneratedFontHeight ()
static meshlib.TextMeshAlignParams staticDowncastFromSymbolMeshParams (meshlib.SymbolMeshParams object)

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

Generated from class MR::TextMeshAlignParams. Base classes: Direct: (non-virtual) MR::SymbolMeshParams

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ TextMeshAlignParams() [1/3]

meshlib.TextMeshAlignParams.TextMeshAlignParams ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ TextMeshAlignParams() [2/3]

meshlib.TextMeshAlignParams.TextMeshAlignParams ( )

Constructs an empty (default-constructed) instance.

Calls MR_TextMeshAlignParams_DefaultConstruct().

◆ TextMeshAlignParams() [3/3]

meshlib.TextMeshAlignParams.TextMeshAlignParams ( meshlib.TextMeshAlignParams _other)

Generated from constructor MR::TextMeshAlignParams::TextMeshAlignParams. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_TextMeshAlignParams_ConstructFromAnother().

Member Function Documentation

◆ align()

meshlib.AlignType meshlib.TextMeshAlignParams.align ( )

alignment of the text inside bbox Returns a pointer to a member variable of class MR::TextMeshAlignParams named align. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_align().

◆ assignFromAnother()

meshlib.TextMeshAlignParams meshlib.TextMeshAlignParams.assignFromAnother ( meshlib.TextMeshAlignParams _other)

Generated from method MR::TextMeshAlignParams::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_TextMeshAlignParams_AssignFromAnother().

◆ direction()

meshlib.Vector3f meshlib.TextMeshAlignParams.direction ( )

Direction of text, must be not zero Returns a pointer to a member variable of class MR::TextMeshAlignParams named direction. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_direction().

◆ fontBasedSizeCalc()

boolean meshlib.TextMeshAlignParams.fontBasedSizeCalc ( )

If true then size of each symbol will be calculated from font height, otherwise - on bounding box of the text Returns a pointer to a member variable of class MR::TextMeshAlignParams named fontBasedSizeCalc. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_fontBasedSizeCalc().

◆ fontDetalization()

int meshlib.TextMeshAlignParams.fontDetalization ( )

Detailization of Bezier curves on font glyphs Returns a pointer to a member variable of class MR::TextMeshAlignParams named fontDetalization. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_fontDetalization().

◆ fontHeight()

float meshlib.TextMeshAlignParams.fontHeight ( )

Font height, meters Returns a pointer to a member variable of class MR::TextMeshAlignParams named fontHeight. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_fontHeight().

◆ MaxGeneratedFontHeight()

float meshlib.TextMeshAlignParams.MaxGeneratedFontHeight ( )
static

max font size with 128 << 6 FT_F26Dot6 font size Returns a pointer to a member variable of class MR::TextMeshAlignParams named MaxGeneratedFontHeight.

Calls MR_TextMeshAlignParams_Get_MaxGeneratedFontHeight().

◆ pathToFontFile()

meshlib.std_filesystem_path meshlib.TextMeshAlignParams.pathToFontFile ( )

Path to font file Returns a pointer to a member variable of class MR::TextMeshAlignParams named pathToFontFile. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_pathToFontFile().

◆ pivotPoint()

meshlib.Vector2f meshlib.TextMeshAlignParams.pivotPoint ( )

Position of the startPoint in a text bounding box (0, 0) - bottom left, (0, 1) - bottom right, (0.5, 0.5) - center, (1, 1) - top right Returns a pointer to a member variable of class MR::TextMeshAlignParams named pivotPoint. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_pivotPoint().

◆ setAlign()

void meshlib.TextMeshAlignParams.setAlign ( meshlib.AlignType value)

alignment of the text inside bbox Modifies a member variable of class MR::TextMeshAlignParams named align. The reference to the parameter value might be preserved in this object in element align.

Calls MR_TextMeshAlignParams_Set_align().

◆ setDirection()

void meshlib.TextMeshAlignParams.setDirection ( meshlib.Vector3f value)

Direction of text, must be not zero Modifies a member variable of class MR::TextMeshAlignParams named direction. The reference to the parameter value might be preserved in this object in element direction.

Calls MR_TextMeshAlignParams_Set_direction().

◆ setFontBasedSizeCalc()

void meshlib.TextMeshAlignParams.setFontBasedSizeCalc ( boolean value)

If true then size of each symbol will be calculated from font height, otherwise - on bounding box of the text Modifies a member variable of class MR::TextMeshAlignParams named fontBasedSizeCalc.

Calls MR_TextMeshAlignParams_Set_fontBasedSizeCalc().

◆ setFontDetalization()

void meshlib.TextMeshAlignParams.setFontDetalization ( int value)

Detailization of Bezier curves on font glyphs Modifies a member variable of class MR::TextMeshAlignParams named fontDetalization.

Calls MR_TextMeshAlignParams_Set_fontDetalization().

◆ setFontHeight()

void meshlib.TextMeshAlignParams.setFontHeight ( float value)

Font height, meters Modifies a member variable of class MR::TextMeshAlignParams named fontHeight.

Calls MR_TextMeshAlignParams_Set_fontHeight().

◆ setPathToFontFile()

void meshlib.TextMeshAlignParams.setPathToFontFile ( java.lang.String value)

Path to font file Modifies a member variable of class MR::TextMeshAlignParams named pathToFontFile. The reference to the parameter value might be preserved in this object in element pathToFontFile.

Calls MR_TextMeshAlignParams_Set_pathToFontFile().

◆ setPivotPoint()

void meshlib.TextMeshAlignParams.setPivotPoint ( meshlib.Vector2f value)

Position of the startPoint in a text bounding box (0, 0) - bottom left, (0, 1) - bottom right, (0.5, 0.5) - center, (1, 1) - top right Modifies a member variable of class MR::TextMeshAlignParams named pivotPoint. The reference to the parameter value might be preserved in this object in element pivotPoint.

Calls MR_TextMeshAlignParams_Set_pivotPoint().

◆ setStartPoint()

void meshlib.TextMeshAlignParams.setStartPoint ( meshlib.MeshTriPoint value)

Position on mesh, where text's pivot point is mapped Modifies a member variable of class MR::TextMeshAlignParams named startPoint. The reference to the parameter value might be preserved in this object in element startPoint.

Calls MR_TextMeshAlignParams_Set_startPoint().

◆ setSurfaceOffset()

void meshlib.TextMeshAlignParams.setSurfaceOffset ( float value)

Text mesh inside and outside offset of input mesh Modifies a member variable of class MR::TextMeshAlignParams named surfaceOffset.

Calls MR_TextMeshAlignParams_Set_surfaceOffset().

◆ setSymbolsDistanceAdditionalOffset()

void meshlib.TextMeshAlignParams.setSymbolsDistanceAdditionalOffset ( meshlib.Vector2f value)

Additional offset between symbols X: In symbol size: 1.0f adds one "space", 0.5 adds half "space". Y: In symbol size: 1.0f adds one base height, 0.5 adds half base height Modifies a member variable of class MR::TextMeshAlignParams named symbolsDistanceAdditionalOffset. The reference to the parameter value might be preserved in this object in element symbolsDistanceAdditionalOffset.

Calls MR_TextMeshAlignParams_Set_symbolsDistanceAdditionalOffset().

◆ setSymbolsThicknessOffsetModifier()

void meshlib.TextMeshAlignParams.setSymbolsThicknessOffsetModifier ( float value)

Symbols thickness will be modified by this value (newThickness = modifier*baseSymbolHeight + defaultThickness) note: changing this to non-zero values cause costly calculations Modifies a member variable of class MR::TextMeshAlignParams named symbolsThicknessOffsetModifier.

Calls MR_TextMeshAlignParams_Set_symbolsThicknessOffsetModifier().

◆ setText()

void meshlib.TextMeshAlignParams.setText ( java.lang.String value)

Text that will be made mesh Modifies a member variable of class MR::TextMeshAlignParams named text. The reference to the parameter value might be preserved in this object in element text.

Calls MR_TextMeshAlignParams_Set_text().

◆ setTextMaximumMovement()

void meshlib.TextMeshAlignParams.setTextMaximumMovement ( float value)

Maximum possible movement of text mesh alignment, meters Modifies a member variable of class MR::TextMeshAlignParams named textMaximumMovement.

Calls MR_TextMeshAlignParams_Set_textMaximumMovement().

◆ setTextNormal()

void meshlib.TextMeshAlignParams.setTextNormal ( meshlib.Vector3f value)

Text normal to surface, if nullptr - use mesh normal at startPoint Modifies a member variable of class MR::TextMeshAlignParams named textNormal. The reference to the parameter value might be preserved in this object in element textNormal.

Calls MR_TextMeshAlignParams_Set_textNormal().

◆ startPoint()

meshlib.MeshTriPoint meshlib.TextMeshAlignParams.startPoint ( )

Position on mesh, where text's pivot point is mapped Returns a pointer to a member variable of class MR::TextMeshAlignParams named startPoint. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_startPoint().

◆ staticDowncastFromSymbolMeshParams()

meshlib.TextMeshAlignParams meshlib.TextMeshAlignParams.staticDowncastFromSymbolMeshParams ( meshlib.SymbolMeshParams object)
static

Static downcast from the base class MR::SymbolMeshParams. Undefined behavior if the object isn't actually a TextMeshAlignParams. The result refers to object.

Calls MR_TextMeshAlignParams_MutableStaticDowncastFrom_MR_SymbolMeshParams().

◆ surfaceOffset()

float meshlib.TextMeshAlignParams.surfaceOffset ( )

Text mesh inside and outside offset of input mesh Returns a pointer to a member variable of class MR::TextMeshAlignParams named surfaceOffset. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_surfaceOffset().

◆ symbolsDistanceAdditionalOffset()

meshlib.Vector2f meshlib.TextMeshAlignParams.symbolsDistanceAdditionalOffset ( )

Additional offset between symbols X: In symbol size: 1.0f adds one "space", 0.5 adds half "space". Y: In symbol size: 1.0f adds one base height, 0.5 adds half base height Returns a pointer to a member variable of class MR::TextMeshAlignParams named symbolsDistanceAdditionalOffset. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_symbolsDistanceAdditionalOffset().

◆ symbolsThicknessOffsetModifier()

float meshlib.TextMeshAlignParams.symbolsThicknessOffsetModifier ( )

Symbols thickness will be modified by this value (newThickness = modifier*baseSymbolHeight + defaultThickness) note: changing this to non-zero values cause costly calculations Returns a pointer to a member variable of class MR::TextMeshAlignParams named symbolsThicknessOffsetModifier. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_symbolsThicknessOffsetModifier().

◆ text()

meshlib.std_string meshlib.TextMeshAlignParams.text ( )

Text that will be made mesh Returns a pointer to a member variable of class MR::TextMeshAlignParams named text. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_text().

◆ textMaximumMovement()

float meshlib.TextMeshAlignParams.textMaximumMovement ( )

Maximum possible movement of text mesh alignment, meters Returns a pointer to a member variable of class MR::TextMeshAlignParams named textMaximumMovement. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_textMaximumMovement().

◆ textNormal()

java.lang.foreign.MemorySegment meshlib.TextMeshAlignParams.textNormal ( )

Text normal to surface, if nullptr - use mesh normal at startPoint Returns a pointer to a member variable of class MR::TextMeshAlignParams named textNormal. The reference to this object might be preserved as the return value.

Calls MR_TextMeshAlignParams_Get_textNormal(). Some types are raw C types, see the C bindings for the details.

◆ upcastToSymbolMeshParams()

meshlib.SymbolMeshParams meshlib.TextMeshAlignParams.upcastToSymbolMeshParams ( )

Upcasts to the base class MR::SymbolMeshParams. The result refers to this object.

Calls MR_TextMeshAlignParams_MutableUpcastTo_MR_SymbolMeshParams().


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