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

Public Member Functions

 GCommand (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 GCommand ()
 GCommand (meshlib.MoveType type, meshlib.ArcPlane arcPlane, float feed, float x, float y, float z, meshlib.Vector3f arcCenter)
 GCommand (meshlib.GCommand _other)
meshlib.GCommand assignFromAnother (meshlib.GCommand _other)
meshlib.MoveType type ()
void setType (meshlib.MoveType value)
meshlib.ArcPlane arcPlane ()
void setArcPlane (meshlib.ArcPlane value)
float feed ()
void setFeed (float value)
float x ()
void setX (float value)
float y ()
void setY (float value)
float z ()
void setZ (float value)
meshlib.Vector3f arcCenter ()
void setArcCenter (meshlib.Vector3f 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

A single G-code move command Generated from class MR::GCommand.

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

Constructor & Destructor Documentation

◆ GCommand() [1/4]

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

◆ GCommand() [2/4]

meshlib.GCommand.GCommand ( )

Constructs an empty (default-constructed) instance.

Calls MR_GCommand_DefaultConstruct().

◆ GCommand() [3/4]

meshlib.GCommand.GCommand ( meshlib.MoveType type,
meshlib.ArcPlane arcPlane,
float feed,
float x,
float y,
float z,
meshlib.Vector3f arcCenter )

Constructs MR::GCommand elementwise. The reference to the parameter type might be preserved in the constructed object. The reference to the parameter arcPlane might be preserved in the constructed object. The reference to the parameter arcCenter might be preserved in the constructed object.

Calls MR_GCommand_ConstructFrom().

◆ GCommand() [4/4]

meshlib.GCommand.GCommand ( meshlib.GCommand _other)

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

Calls MR_GCommand_ConstructFromAnother().

Member Function Documentation

◆ arcCenter()

meshlib.Vector3f meshlib.GCommand.arcCenter ( )

if type is ArcCW or ArcCCW center of the arc should be specified Returns a pointer to a member variable of class MR::GCommand named arcCenter. The reference to this object might be preserved as the return value.

Calls MR_GCommand_Get_arcCenter().

◆ arcPlane()

meshlib.ArcPlane meshlib.GCommand.arcPlane ( )

plane of the arc; only relevant when type is ArcCW or ArcCCW Returns a pointer to a member variable of class MR::GCommand named arcPlane. The reference to this object might be preserved as the return value.

Calls MR_GCommand_Get_arcPlane().

◆ assignFromAnother()

meshlib.GCommand meshlib.GCommand.assignFromAnother ( meshlib.GCommand _other)

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

Calls MR_GCommand_AssignFromAnother().

◆ feed()

float meshlib.GCommand.feed ( )

feedrate for move Returns a pointer to a member variable of class MR::GCommand named feed. The reference to this object might be preserved as the return value.

Calls MR_GCommand_Get_feed().

◆ setArcCenter()

void meshlib.GCommand.setArcCenter ( meshlib.Vector3f value)

if type is ArcCW or ArcCCW center of the arc should be specified Modifies a member variable of class MR::GCommand named arcCenter. The reference to the parameter value might be preserved in this object in element arcCenter.

Calls MR_GCommand_Set_arcCenter().

◆ setArcPlane()

void meshlib.GCommand.setArcPlane ( meshlib.ArcPlane value)

plane of the arc; only relevant when type is ArcCW or ArcCCW Modifies a member variable of class MR::GCommand named arcPlane. The reference to the parameter value might be preserved in this object in element arcPlane.

Calls MR_GCommand_Set_arcPlane().

◆ setFeed()

void meshlib.GCommand.setFeed ( float value)

feedrate for move Modifies a member variable of class MR::GCommand named feed.

Calls MR_GCommand_Set_feed().

◆ setType()

void meshlib.GCommand.setType ( meshlib.MoveType value)

type of command GX (G0, G1, etc). By default - G1 Modifies a member variable of class MR::GCommand named type. The reference to the parameter value might be preserved in this object in element type.

Calls MR_GCommand_Set_type().

◆ setX()

void meshlib.GCommand.setX ( float value)

coordinates of destination point Modifies a member variable of class MR::GCommand named x.

Calls MR_GCommand_Set_x().

◆ setY()

void meshlib.GCommand.setY ( float value)

Modifies a member variable of class MR::GCommand named y.

Calls MR_GCommand_Set_y().

◆ setZ()

void meshlib.GCommand.setZ ( float value)

Modifies a member variable of class MR::GCommand named z.

Calls MR_GCommand_Set_z().

◆ type()

meshlib.MoveType meshlib.GCommand.type ( )

type of command GX (G0, G1, etc). By default - G1 Returns a pointer to a member variable of class MR::GCommand named type. The reference to this object might be preserved as the return value.

Calls MR_GCommand_Get_type().

◆ x()

float meshlib.GCommand.x ( )

coordinates of destination point Returns a pointer to a member variable of class MR::GCommand named x. The reference to this object might be preserved as the return value.

Calls MR_GCommand_Get_x().

◆ y()

float meshlib.GCommand.y ( )

Returns a pointer to a member variable of class MR::GCommand named y. The reference to this object might be preserved as the return value.

Calls MR_GCommand_Get_y().

◆ z()

float meshlib.GCommand.z ( )

Returns a pointer to a member variable of class MR::GCommand named z. The reference to this object might be preserved as the return value.

Calls MR_GCommand_Get_z().


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