MeshLib C Docs
Loading...
Searching...
No Matches
MRObjectLabel.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRBox.h>
5#include <MRCMisc/common.h>
6#include <MRCMisc/exports.h>
7
8#include <stdbool.h>
9#include <stddef.h>
10#include <stdint.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16typedef struct MR_AnyVisualizeMaskEnum MR_AnyVisualizeMaskEnum; // Defined in `#include <MRCMesh/MRVisualObject.h>`.
17typedef struct MR_Color MR_Color; // Defined in `#include <MRCMesh/MRColor.h>`.
18typedef struct MR_Object MR_Object; // Defined in `#include <MRCMesh/MRObject.h>`.
19typedef struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder; // Defined in `#include <MRCMesh/MRObject.h>`.
20typedef struct MR_PositionedText MR_PositionedText; // Defined in `#include <MRCMesh/MRPositionedText.h>`.
21typedef struct MR_Vector2f MR_Vector2f; // Defined in `#include <MRCMesh/MRVector2.h>`.
22typedef struct MR_ViewportMask MR_ViewportMask; // Defined in `#include <MRCMesh/MRViewportId.h>`.
23typedef struct MR_ViewportProperty_MR_Color MR_ViewportProperty_MR_Color; // Defined in `#include <MRCMesh/MRViewportProperty.h>`.
24typedef struct MR_VisualObject MR_VisualObject; // Defined in `#include <MRCMesh/MRVisualObject.h>`.
25typedef struct MR_std_filesystem_path MR_std_filesystem_path; // Defined in `#include <MRCMisc/std_filesystem_path.h>`.
26typedef struct MR_std_shared_ptr_MR_Mesh MR_std_shared_ptr_MR_Mesh; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Mesh.h>`.
27typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Object.h>`.
28typedef struct MR_std_vector_MR_ViewportMask MR_std_vector_MR_ViewportMask; // Defined in `#include <MRCMisc/std_vector_MR_ViewportMask.h>`.
29
30
32enum // MR_LabelVisualizePropertyType
33{
39};
40
51
55
60
63
66
70
73
77
80
84
87
91
94
97
102
105
109
112MRC_API void MR_ObjectLabel_applyScale(MR_ObjectLabel *_this, float scaleFactor);
113
117
122
127
132
137
143
148
153MRC_API void MR_ObjectLabel_setFontPath(MR_ObjectLabel *_this, const char *pathToFont, const char *pathToFont_end);
154
159
169
175
181
186
191
196
201
206
211
218
225
232
239
246
253
258
262
267
271
276
280
287
294
299
305
312
318
319#ifdef __cplusplus
320} // extern "C"
321#endif
struct MR_VisualObject MR_VisualObject
Definition MRAddVisualPropertiesMixin.h:21
struct MR_AnyVisualizeMaskEnum MR_AnyVisualizeMaskEnum
Definition MRAddVisualPropertiesMixin.h:12
struct MR_ViewportMask MR_ViewportMask
Definition MRAddVisualPropertiesMixin.h:20
struct MR_std_vector_MR_ViewportMask MR_std_vector_MR_ViewportMask
Definition MRAddVisualPropertiesMixin.h:22
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_shared_ptr_MR_Mesh MR_std_shared_ptr_MR_Mesh
Definition MRChangeMeshAction.h:19
struct MR_ViewportProperty_MR_Color MR_ViewportProperty_MR_Color
Definition MRFeatureObject.h:33
struct MR_Object MR_Object
Definition MRGltf.h:10
MRC_API void MR_ObjectLabel_setLeaderLineColorsForAllViewports(MR_ObjectLabel *_this, MR_PassBy val_pass_by, MR_ViewportProperty_MR_Color *val)
MRC_API void MR_ObjectLabel_setFontHeight(MR_ObjectLabel *_this, float size)
MRC_API const MR_ViewportMask * MR_ObjectLabel_getVisualizePropertyMask(const MR_ObjectLabel *_this, const MR_AnyVisualizeMaskEnum *type)
MRC_API const MR_ObjectChildrenHolder * MR_ObjectLabel_UpcastTo_MR_ObjectChildrenHolder(const MR_ObjectLabel *object)
MRC_API void MR_ObjectLabel_setSourcePointColor(MR_ObjectLabel *_this, const MR_Color *color, const MR_ViewportId *id)
int32_t MR_LabelVisualizePropertyType
Definition MRObjectLabel.h:31
MRC_API const MR_Color * MR_ObjectLabel_getContourColor(const MR_ObjectLabel *_this, const MR_ViewportId *id)
MRC_API float MR_ObjectLabel_getSourcePointSize(const MR_ObjectLabel *_this)
MRC_API MR_ObjectLabel * MR_ObjectLabel_DefaultConstruct(void)
MRC_API const MR_VisualObject * MR_ObjectLabel_UpcastTo_MR_VisualObject(const MR_ObjectLabel *object)
MRC_API float MR_ObjectLabel_getLeaderLineWidth(const MR_ObjectLabel *_this)
MRC_API void MR_ObjectLabel_Destroy(const MR_ObjectLabel *_this)
Destroys a heap-allocated instance of MR_ObjectLabel. Does nothing if the pointer is null.
MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectLabel_clone(const MR_ObjectLabel *_this)
MRC_API MR_ObjectLabel * MR_ObjectLabel_OffsetMutablePtr(MR_ObjectLabel *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 void MR_ObjectLabel_setContourColorsForAllViewports(MR_ObjectLabel *_this, MR_PassBy val_pass_by, MR_ViewportProperty_MR_Color *val)
MRC_API MR_Object * MR_ObjectLabel_MutableUpcastTo_MR_Object(MR_ObjectLabel *object)
Upcasts an instance of MR::ObjectLabel to its base class MR::Object.
MRC_API void MR_ObjectLabel_setPivotPoint(MR_ObjectLabel *_this, const MR_Vector2f *pivotPoint)
MRC_API const MR_std_filesystem_path * MR_ObjectLabel_getFontPath(const MR_ObjectLabel *_this)
MRC_API void MR_ObjectLabel_applyScale(MR_ObjectLabel *_this, float scaleFactor)
MRC_API const MR_Vector2f * MR_ObjectLabel_getPivotShift(const MR_ObjectLabel *_this)
MRC_API MR_std_vector_MR_ViewportMask * MR_ObjectLabel_getAllVisualizeProperties(const MR_ObjectLabel *_this)
MRC_API const MR_Color * MR_ObjectLabel_getSourcePointColor(const MR_ObjectLabel *_this, const MR_ViewportId *id)
MRC_API float MR_ObjectLabel_getBackgroundPadding(const MR_ObjectLabel *_this)
MRC_API MR_uint64_t MR_ObjectLabel_heapBytes(const MR_ObjectLabel *_this)
MRC_API MR_ObjectLabel * MR_ObjectLabel_DefaultConstructArray(size_t num_elems)
MRC_API const MR_ObjectLabel * MR_ObjectLabel_OffsetPtr(const MR_ObjectLabel *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 const MR_Vector2f * MR_ObjectLabel_getPivotPoint(const MR_ObjectLabel *_this)
MRC_API void MR_ObjectLabel_setSourcePointColorsForAllViewports(MR_ObjectLabel *_this, MR_PassBy val_pass_by, MR_ViewportProperty_MR_Color *val)
MRC_API const char * MR_ObjectLabel_typeName(const MR_ObjectLabel *_this)
MRC_API const MR_Object * MR_ObjectLabel_UpcastTo_MR_Object(const MR_ObjectLabel *object)
MRC_API MR_Box3f MR_ObjectLabel_getWorldBox(const MR_ObjectLabel *_this, const MR_ViewportId *_1)
MRC_API const MR_ViewportProperty_MR_Color * MR_ObjectLabel_getLeaderLineColorsForAllViewports(const MR_ObjectLabel *_this)
MRC_API void MR_ObjectLabel_setLabel(MR_ObjectLabel *_this, const MR_PositionedText *label)
MRC_API void MR_ObjectLabel_setBackgroundPadding(MR_ObjectLabel *_this, float padding)
MRC_API const MR_ViewportProperty_MR_Color * MR_ObjectLabel_getSourcePointColorsForAllViewports(const MR_ObjectLabel *_this)
MRC_API void MR_ObjectLabel_setSourcePointSize(MR_ObjectLabel *_this, float size)
MRC_API const MR_ViewportProperty_MR_Color * MR_ObjectLabel_getContourColorsForAllViewports(const MR_ObjectLabel *_this)
MRC_API MR_std_shared_ptr_MR_Object * MR_ObjectLabel_shallowClone(const MR_ObjectLabel *_this)
MRC_API void MR_ObjectLabel_setContourColor(MR_ObjectLabel *_this, const MR_Color *color, const MR_ViewportId *id)
MRC_API const MR_PositionedText * MR_ObjectLabel_getLabel(const MR_ObjectLabel *_this)
MRC_API void MR_ObjectLabel_setFontPath(MR_ObjectLabel *_this, const char *pathToFont, const char *pathToFont_end)
MRC_API void MR_ObjectLabel_DestroyArray(const MR_ObjectLabel *_this)
Destroys a heap-allocated array of MR_ObjectLabel. Does nothing if the pointer is null.
MRC_API MR_VisualObject * MR_ObjectLabel_MutableUpcastTo_MR_VisualObject(MR_ObjectLabel *object)
Upcasts an instance of MR::ObjectLabel to its base class MR::VisualObject.
MRC_API MR_ObjectChildrenHolder * MR_ObjectLabel_MutableUpcastTo_MR_ObjectChildrenHolder(MR_ObjectLabel *object)
Upcasts an instance of MR::ObjectLabel to its base class MR::ObjectChildrenHolder.
@ MR_LabelVisualizePropertyType_Contour
Definition MRObjectLabel.h:37
@ MR_LabelVisualizePropertyType_LeaderLine
Definition MRObjectLabel.h:35
@ MR_LabelVisualizePropertyType_Background
Definition MRObjectLabel.h:36
@ MR_LabelVisualizePropertyType_SourcePoint
Definition MRObjectLabel.h:34
@ MR_LabelVisualizePropertyType__count
Definition MRObjectLabel.h:38
MRC_API MR_ObjectLabel * MR_ObjectLabel_AssignFromAnother(MR_ObjectLabel *_this, MR_PassBy _other_pass_by, MR_ObjectLabel *_other)
MRC_API float MR_ObjectLabel_getFontHeight(const MR_ObjectLabel *_this)
MRC_API const char * MR_ObjectLabel_TypeName(void)
Generated from a method of class MR::ObjectLabel named TypeName.
MRC_API bool MR_ObjectLabel_hasVisualRepresentation(const MR_ObjectLabel *_this)
MRC_API const MR_Color * MR_ObjectLabel_getLeaderLineColor(const MR_ObjectLabel *_this, const MR_ViewportId *id)
MRC_API void MR_ObjectLabel_setLeaderLineColor(MR_ObjectLabel *_this, const MR_Color *color, const MR_ViewportId *id)
MRC_API void MR_ObjectLabel_setLeaderLineWidth(MR_ObjectLabel *_this, float width)
MRC_API const MR_std_shared_ptr_MR_Mesh * MR_ObjectLabel_labelRepresentingMesh(const MR_ObjectLabel *_this)
MRC_API void MR_ObjectLabel_buildMeshFromText(const MR_ObjectLabel *_this)
MRC_API MR_ObjectLabel * MR_ObjectLabel_ConstructFromAnother(MR_PassBy _other_pass_by, MR_ObjectLabel *_other)
struct MR_ObjectLabel MR_ObjectLabel
Definition MRObject.h:29
struct MR_PositionedText MR_PositionedText
Generated from class MR::PositionedText.
Definition MRPositionedText.h:18
struct MR_std_filesystem_path MR_std_filesystem_path
Definition MRSceneRoot.h:15
MR_PassBy
Definition common.h:19
uint64_t MR_uint64_t
Definition common.h:14
#define MRC_API
Definition exports.h:11
size_t size() const
Definition MRBox.h:109
Generated from class MR::Color.
Definition MRColor.h:19
Definition MRVector2.h:44
Definition MRViewportId.h:18