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
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct MR_AnyVisualizeMaskEnum MR_AnyVisualizeMaskEnum; // Defined in `#include <MRCMesh/MRVisualObject.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_PositionedText MR_PositionedText; // Defined in `#include <MRCMesh/MRPositionedText.h>`.
20typedef struct MR_Vector2f MR_Vector2f; // Defined in `#include <MRCMesh/MRVector2.h>`.
21typedef struct MR_ViewportMask MR_ViewportMask; // Defined in `#include <MRCMesh/MRViewportId.h>`.
22typedef struct MR_ViewportProperty_MR_Color MR_ViewportProperty_MR_Color; // Defined in `#include <MRCMesh/MRViewportProperty.h>`.
23typedef struct MR_VisualObject MR_VisualObject; // Defined in `#include <MRCMesh/MRVisualObject.h>`.
24typedef struct MR_std_filesystem_path MR_std_filesystem_path; // Defined in `#include <MRCMisc/std_filesystem_path.h>`.
25typedef struct MR_std_shared_ptr_MR_Mesh MR_std_shared_ptr_MR_Mesh; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Mesh.h>`.
26typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Object.h>`.
27typedef struct MR_std_vector_MR_ViewportMask MR_std_vector_MR_ViewportMask; // Defined in `#include <MRCMisc/std_vector_MR_ViewportMask.h>`.
28
29
38
49
53
58
61
64
68
71
75
78
82
85
89
92
95
100
103
107
110MRC_API void MR_ObjectLabel_applyScale(MR_ObjectLabel *_this, float scaleFactor);
111
115
120
125
130
135
141
146
151MRC_API void MR_ObjectLabel_setFontPath(MR_ObjectLabel *_this, const char *pathToFont, const char *pathToFont_end);
152
157
167
173
179
184
189
194
199
204
209
216
223
230
237
244
251
256
260
265
269
274
278
285
292
297
303
310
316
317#ifdef __cplusplus
318} // extern "C"
319#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:32
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)
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)
MR_LabelVisualizePropertyType
Definition MRObjectLabel.h:31
@ MR_LabelVisualizePropertyType_Contour
Definition MRObjectLabel.h:35
@ MR_LabelVisualizePropertyType_LeaderLine
Definition MRObjectLabel.h:33
@ MR_LabelVisualizePropertyType_Background
Definition MRObjectLabel.h:34
@ MR_LabelVisualizePropertyType_SourcePoint
Definition MRObjectLabel.h:32
@ MR_LabelVisualizePropertyType__count
Definition MRObjectLabel.h:36
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.
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:108
Generated from class MR::Color.
Definition MRColor.h:18
Definition MRVector2.h:43
Definition MRViewportId.h:17