MeshLib C Docs
Loading...
Searching...
No Matches
MRLineObject.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRVector3.h>
5#include <MRCMisc/common.h>
6#include <MRCMisc/exports.h>
7
8#include <stddef.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14typedef struct MR_FeatureObject MR_FeatureObject; // Defined in `#include <MRCMesh/MRFeatureObject.h>`.
15typedef struct MR_FeatureObjectProjectPointResult MR_FeatureObjectProjectPointResult; // Defined in `#include <MRCMesh/MRFeatureObject.h>`.
16typedef struct MR_Object MR_Object; // Defined in `#include <MRCMesh/MRObject.h>`.
17typedef struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder; // Defined in `#include <MRCMesh/MRObject.h>`.
18typedef struct MR_VisualObject MR_VisualObject; // Defined in `#include <MRCMesh/MRVisualObject.h>`.
19typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Object.h>`.
20typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
21typedef struct MR_std_vector_MR_FeatureObjectSharedProperty MR_std_vector_MR_FeatureObjectSharedProperty; // Defined in `#include <MRCMisc/std_vector_MR_FeatureObjectSharedProperty.h>`.
22typedef struct MR_std_vector_MR_Vector3f MR_std_vector_MR_Vector3f; // Defined in `#include <MRCMisc/std_vector_MR_Vector3f.h>`.
23
24
35
39
44
47
50
54
57
61
64
68
71
75
78
82
88
91
94
99
102
106
111
116
121
126
132
138
145
152
158
164
165// Returns point considered as base for the feature
170
176
182
189
194
195#ifdef __cplusplus
196} // extern "C"
197#endif
struct MR_VisualObject MR_VisualObject
Definition MRAddVisualPropertiesMixin.h:21
struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder
Definition MRAddVisualPropertiesMixin.h:18
struct MR_FeatureObject MR_FeatureObject
Definition MRAddVisualPropertiesMixin.h:16
struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object
Definition MRAngleMeasurementObject.h:18
struct MR_std_vector_MR_Vector3f MR_std_vector_MR_Vector3f
Definition MRBestFit.h:26
struct MR_std_vector_MR_FeatureObjectSharedProperty MR_std_vector_MR_FeatureObjectSharedProperty
Definition MRCircleObject.h:22
struct MR_FeatureObjectProjectPointResult MR_FeatureObjectProjectPointResult
Definition MRCircleObject.h:16
struct MR_std_string MR_std_string
Definition MRE57.h:22
struct MR_LineObject MR_LineObject
Definition MRFeatureObject.h:26
struct MR_Object MR_Object
Definition MRGltf.h:10
MRC_API MR_std_string * MR_LineObject_getClassNameInPlural(const MR_LineObject *_this)
MRC_API void MR_LineObject_setDirection(MR_LineObject *_this, const MR_Vector3f *normal, const MR_ViewportId *id)
MRC_API const MR_ObjectChildrenHolder * MR_LineObject_UpcastTo_MR_ObjectChildrenHolder(const MR_LineObject *object)
MRC_API const MR_VisualObject * MR_LineObject_UpcastTo_MR_VisualObject(const MR_LineObject *object)
MRC_API MR_LineObject * MR_LineObject_DefaultConstruct(void)
MRC_API void MR_LineObject_setLength(MR_LineObject *_this, float size, const MR_ViewportId *id)
MRC_API MR_Vector3f MR_LineObject_getDirection(const MR_LineObject *_this, const MR_ViewportId *id)
MRC_API MR_std_shared_ptr_MR_Object * MR_LineObject_shallowClone(const MR_LineObject *_this)
MRC_API const char * MR_LineObject_TypeName(void)
Generated from a method of class MR::LineObject named TypeName.
MRC_API MR_LineObject * MR_LineObject_AssignFromAnother(MR_LineObject *_this, MR_PassBy _other_pass_by, MR_LineObject *_other)
MRC_API const MR_FeatureObject * MR_LineObject_UpcastTo_MR_FeatureObject(const MR_LineObject *object)
MRC_API MR_Object * MR_LineObject_MutableUpcastTo_MR_Object(MR_LineObject *object)
Upcasts an instance of MR::LineObject to its base class MR::Object.
MRC_API const MR_LineObject * MR_LineObject_OffsetPtr(const MR_LineObject *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_ObjectChildrenHolder * MR_LineObject_MutableUpcastTo_MR_ObjectChildrenHolder(MR_LineObject *object)
Upcasts an instance of MR::LineObject to its base class MR::ObjectChildrenHolder.
MRC_API const MR_std_vector_MR_FeatureObjectSharedProperty * MR_LineObject_getAllSharedProperties(const MR_LineObject *_this)
MRC_API void MR_LineObject_DestroyArray(const MR_LineObject *_this)
Destroys a heap-allocated array of MR_LineObject. Does nothing if the pointer is null.
MRC_API MR_std_shared_ptr_MR_Object * MR_LineObject_clone(const MR_LineObject *_this)
MRC_API MR_LineObject * MR_LineObject_OffsetMutablePtr(MR_LineObject *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_Vector3f MR_LineObject_getBasePoint(const MR_LineObject *_this, const MR_ViewportId *id)
MRC_API float MR_LineObject_getLength(const MR_LineObject *_this, const MR_ViewportId *id)
MRC_API void MR_LineObject_Destroy(const MR_LineObject *_this)
Destroys a heap-allocated instance of MR_LineObject. Does nothing if the pointer is null.
MRC_API MR_Vector3f MR_LineObject_getPointB(const MR_LineObject *_this, const MR_ViewportId *id)
MRC_API MR_LineObject * MR_LineObject_Construct(const MR_std_vector_MR_Vector3f *pointsToApprox)
MRC_API MR_LineObject * MR_LineObject_ConstructFromAnother(MR_PassBy _other_pass_by, MR_LineObject *_other)
MRC_API MR_Vector3f MR_LineObject_getPointA(const MR_LineObject *_this, const MR_ViewportId *id)
MRC_API const MR_Object * MR_LineObject_UpcastTo_MR_Object(const MR_LineObject *object)
MRC_API MR_std_string * MR_LineObject_getClassName(const MR_LineObject *_this)
MRC_API MR_LineObject * MR_LineObject_DefaultConstructArray(size_t num_elems)
MRC_API void MR_LineObject_setCenter(MR_LineObject *_this, const MR_Vector3f *center, const MR_ViewportId *id)
MRC_API MR_FeatureObject * MR_LineObject_MutableUpcastTo_MR_FeatureObject(MR_LineObject *object)
Upcasts an instance of MR::LineObject to its base class MR::FeatureObject.
MRC_API MR_VisualObject * MR_LineObject_MutableUpcastTo_MR_VisualObject(MR_LineObject *object)
Upcasts an instance of MR::LineObject to its base class MR::VisualObject.
MRC_API MR_Vector3f MR_LineObject_getCenter(const MR_LineObject *_this, const MR_ViewportId *id)
MRC_API const char * MR_LineObject_typeName(const MR_LineObject *_this)
MRC_API MR_FeatureObjectProjectPointResult * MR_LineObject_projectPoint(const MR_LineObject *_this, const MR_Vector3f *point, const MR_ViewportId *id)
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11
size_t size() const
Definition MRVector3.h:51
Definition MRViewportId.h:18