MeshLib C Docs
Loading...
Searching...
No Matches
MRObjectGcode.h
Go to the documentation of this file.
1#pragma once
2
4#include <MRCMisc/common.h>
5#include <MRCMisc/exports.h>
6
7#include <stdbool.h>
8#include <stddef.h>
9#include <stdint.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct MR_CNCMachineSettings MR_CNCMachineSettings; // Defined in `#include <MRCMesh/MRCNCMachineSettings.h>`.
16typedef struct MR_Color MR_Color; // Defined in `#include <MRCMesh/MRColor.h>`.
17typedef struct MR_Object MR_Object; // Defined in `#include <MRCMesh/MRObject.h>`.
18typedef struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder; // Defined in `#include <MRCMesh/MRObject.h>`.
19typedef struct MR_ObjectLinesHolder MR_ObjectLinesHolder; // Defined in `#include <MRCMesh/MRObjectLinesHolder.h>`.
20typedef struct MR_VisualObject MR_VisualObject; // Defined in `#include <MRCMesh/MRVisualObject.h>`.
21typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Object.h>`.
22typedef struct MR_std_shared_ptr_std_vector_std_string MR_std_shared_ptr_std_vector_std_string; // Defined in `#include <MRCMisc/std_shared_ptr_std_vector_std_string.h>`.
23typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
24typedef struct MR_std_vector_MR_GcodeProcessor_MoveAction MR_std_vector_MR_GcodeProcessor_MoveAction; // Defined in `#include <MRCMisc/std_vector_MR_GcodeProcessor_MoveAction.h>`.
25typedef struct MR_std_vector_int32_t MR_std_vector_int32_t; // Defined in `#include <MRCMisc/std_vector_int32_t.h>`.
26typedef struct MR_std_vector_std_string MR_std_vector_std_string; // Defined in `#include <MRCMisc/std_vector_std_string.h>`.
27
28
39
43
48
51
54
58
61
65
68
72
75
79
82
86
89
92
97
100
104
109
114
119
124
129
134
135// get action list (produced from g-code source)
140
141// get mapping of tool path polyline segment id to source line number of g-code source
146
150MRC_API void MR_ObjectGcode_setDirtyFlags(MR_ObjectGcode *_this, uint32_t mask, const bool *invalidateCaches);
151
156
161
166
167// set drawing feedrate as gradient of brightness
170MRC_API void MR_ObjectGcode_switchFeedrateGradient(MR_ObjectGcode *_this, bool isFeedrateGradientEnabled);
171
175
180
185
188MRC_API bool MR_ObjectGcode_select(MR_ObjectGcode *_this, bool isSelected);
189
194MRC_API void MR_ObjectGcode_setFrontColor(MR_ObjectGcode *_this, const MR_Color *color, bool selected, const MR_ViewportId *viewportId);
195
200
201#ifdef __cplusplus
202} // extern "C"
203#endif
struct MR_VisualObject MR_VisualObject
Definition MRAddVisualPropertiesMixin.h:21
struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder
Definition MRAddVisualPropertiesMixin.h:18
struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object
Definition MRAngleMeasurementObject.h:18
struct MR_std_vector_std_string MR_std_vector_std_string
Definition MRAngleMeasurementObject.h:20
struct MR_CNCMachineSettings MR_CNCMachineSettings
Definition MRCNCMachineSettings.h:22
struct MR_std_string MR_std_string
Definition MRE57.h:22
struct MR_std_vector_MR_GcodeProcessor_MoveAction MR_std_vector_MR_GcodeProcessor_MoveAction
Definition MRGcodeProcessor.h:16
struct MR_Object MR_Object
Definition MRGltf.h:10
struct MR_std_vector_int32_t MR_std_vector_int32_t
Definition MRIntersectionContour.h:15
MRC_API const char * MR_ObjectGcode_typeName(const MR_ObjectGcode *_this)
MRC_API const MR_std_vector_int32_t * MR_ObjectGcode_segmentToSourceLineMap(const MR_ObjectGcode *_this)
MRC_API MR_Object * MR_ObjectGcode_MutableUpcastTo_MR_Object(MR_ObjectGcode *object)
Upcasts an instance of MR::ObjectGcode to its base class MR::Object.
MRC_API const MR_ObjectLinesHolder * MR_ObjectGcode_UpcastTo_MR_ObjectLinesHolder(const MR_ObjectGcode *object)
MRC_API void MR_ObjectGcode_setIdleColor(MR_ObjectGcode *_this, const MR_Color *color)
MRC_API void MR_ObjectGcode_setGcodeSource(MR_ObjectGcode *_this, const MR_std_shared_ptr_std_vector_std_string *gcodeSource)
MRC_API void MR_ObjectGcode_setDirtyFlags(MR_ObjectGcode *_this, uint32_t mask, const bool *invalidateCaches)
MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectGcode_shallowClone(const MR_ObjectGcode *_this)
MRC_API MR_ObjectGcode * MR_ObjectGcode_DefaultConstructArray(size_t num_elems)
MRC_API MR_std_string * MR_ObjectGcode_getClassName(const MR_ObjectGcode *_this)
MRC_API bool MR_ObjectGcode_select(MR_ObjectGcode *_this, bool isSelected)
MRC_API const MR_std_shared_ptr_std_vector_std_string * MR_ObjectGcode_gcodeSource(const MR_ObjectGcode *_this)
MRC_API const MR_ObjectChildrenHolder * MR_ObjectGcode_UpcastTo_MR_ObjectChildrenHolder(const MR_ObjectGcode *object)
MRC_API const char * MR_ObjectGcode_TypeName(void)
Generated from a method of class MR::ObjectGcode named TypeName.
MRC_API const MR_ObjectGcode * MR_ObjectGcode_OffsetPtr(const MR_ObjectGcode *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API bool MR_ObjectGcode_isFeedrateGradient(const MR_ObjectGcode *_this)
MRC_API MR_uint64_t MR_ObjectGcode_heapBytes(const MR_ObjectGcode *_this)
MRC_API MR_VisualObject * MR_ObjectGcode_MutableUpcastTo_MR_VisualObject(MR_ObjectGcode *object)
Upcasts an instance of MR::ObjectGcode to its base class MR::VisualObject.
MRC_API MR_ObjectGcode * MR_ObjectGcode_ConstructFromAnother(MR_PassBy _other_pass_by, MR_ObjectGcode *_other)
MRC_API MR_ObjectLinesHolder * MR_ObjectGcode_MutableUpcastTo_MR_ObjectLinesHolder(MR_ObjectGcode *object)
Upcasts an instance of MR::ObjectGcode to its base class MR::ObjectLinesHolder.
MRC_API void MR_ObjectGcode_setCNCMachineSettings(MR_ObjectGcode *_this, const MR_CNCMachineSettings *cncSettings)
MRC_API void MR_ObjectGcode_DestroyArray(const MR_ObjectGcode *_this)
Destroys a heap-allocated array of MR_ObjectGcode. Does nothing if the pointer is null.
MRC_API MR_ObjectGcode * MR_ObjectGcode_OffsetMutablePtr(MR_ObjectGcode *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectGcode_clone(const MR_ObjectGcode *_this)
MRC_API MR_std_string * MR_ObjectGcode_getClassNameInPlural(const MR_ObjectGcode *_this)
MRC_API MR_ObjectGcode * MR_ObjectGcode_AssignFromAnother(MR_ObjectGcode *_this, MR_PassBy _other_pass_by, MR_ObjectGcode *_other)
MRC_API MR_ObjectChildrenHolder * MR_ObjectGcode_MutableUpcastTo_MR_ObjectChildrenHolder(MR_ObjectGcode *object)
Upcasts an instance of MR::ObjectGcode to its base class MR::ObjectChildrenHolder.
MRC_API const MR_VisualObject * MR_ObjectGcode_UpcastTo_MR_VisualObject(const MR_ObjectGcode *object)
MRC_API void MR_ObjectGcode_Destroy(const MR_ObjectGcode *_this)
Destroys a heap-allocated instance of MR_ObjectGcode. Does nothing if the pointer is null.
MRC_API const MR_Object * MR_ObjectGcode_UpcastTo_MR_Object(const MR_ObjectGcode *object)
MRC_API const MR_std_vector_MR_GcodeProcessor_MoveAction * MR_ObjectGcode_actionList(const MR_ObjectGcode *_this)
MRC_API void MR_ObjectGcode_switchFeedrateGradient(MR_ObjectGcode *_this, bool isFeedrateGradientEnabled)
MRC_API void MR_ObjectGcode_setFrontColor(MR_ObjectGcode *_this, const MR_Color *color, bool selected, const MR_ViewportId *viewportId)
MRC_API MR_ObjectGcode * MR_ObjectGcode_DefaultConstruct(void)
MRC_API const MR_Color * MR_ObjectGcode_getIdleColor(const MR_ObjectGcode *_this)
MRC_API MR_std_vector_std_string * MR_ObjectGcode_getInfoLines(const MR_ObjectGcode *_this)
MRC_API const MR_CNCMachineSettings * MR_ObjectGcode_getCNCMachineSettings(const MR_ObjectGcode *_this)
struct MR_std_shared_ptr_std_vector_std_string MR_std_shared_ptr_std_vector_std_string
Definition MRObjectGcode.h:22
struct MR_ObjectGcode MR_ObjectGcode
Definition MRObject.h:28
struct MR_ObjectLinesHolder MR_ObjectLinesHolder
Definition MRObject.h:31
MR_PassBy
Definition common.h:19
uint64_t MR_uint64_t
Definition common.h:14
#define MRC_API
Definition exports.h:11
Generated from class MR::Color.
Definition MRColor.h:19
Definition MRViewportId.h:18