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

Public Member Functions

 CurveFunc (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 CurveFunc ()
 CurveFunc (meshlib.std_function_MR_CurvePoint_from_float func, float totalLength)
 CurveFunc (meshlib.CurveFunc _other)
meshlib.CurveFunc assignFromAnother (meshlib.CurveFunc _other)
meshlib.std_function_MR_CurvePoint_from_float func ()
void setFunc (meshlib.std_function_MR_CurvePoint_from_float value)
float totalLength ()
void setTotalLength (float value)
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 ()

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::CurveFunc.

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

Constructor & Destructor Documentation

◆ CurveFunc() [1/4]

meshlib.CurveFunc.CurveFunc ( 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.

◆ CurveFunc() [2/4]

meshlib.CurveFunc.CurveFunc ( )

Constructs an empty (default-constructed) instance.

Calls MR_CurveFunc_DefaultConstruct().

◆ CurveFunc() [3/4]

meshlib.CurveFunc.CurveFunc ( meshlib.std_function_MR_CurvePoint_from_float func,
float totalLength )

Constructs MR::CurveFunc elementwise. The reference to the parameter func might be preserved in the constructed object.

Calls MR_CurveFunc_ConstructFrom().

◆ CurveFunc() [4/4]

meshlib.CurveFunc.CurveFunc ( meshlib.CurveFunc _other)

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

Calls MR_CurveFunc_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.CurveFunc meshlib.CurveFunc.assignFromAnother ( meshlib.CurveFunc _other)

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

Calls MR_CurveFunc_AssignFromAnother().

◆ func()

curve given as a function: position along curve -> point Returns a pointer to a member variable of class MR::CurveFunc named func. The reference to this object might be preserved as the return value.

Calls MR_CurveFunc_Get_func().

◆ setFunc()

void meshlib.CurveFunc.setFunc ( meshlib.std_function_MR_CurvePoint_from_float value)

curve given as a function: position along curve -> point Modifies a member variable of class MR::CurveFunc named func. The reference to the parameter value might be preserved in this object in element func.

Calls MR_CurveFunc_Set_func().

◆ setTotalLength()

void meshlib.CurveFunc.setTotalLength ( float value)

total length of the given curve Modifies a member variable of class MR::CurveFunc named totalLength.

Calls MR_CurveFunc_Set_totalLength().

◆ totalLength()

float meshlib.CurveFunc.totalLength ( )

total length of the given curve Returns a pointer to a member variable of class MR::CurveFunc named totalLength. The reference to this object might be preserved as the return value.

Calls MR_CurveFunc_Get_totalLength().


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