MeshLib C Docs
Loading...
Searching...
No Matches
MRPlaneObject.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMesh/MRMatrix3.h>
4#include <MRCMesh/MRVector3.h>
6#include <MRCMisc/common.h>
7#include <MRCMisc/exports.h>
8
9#include <stddef.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct MR_FeatureObject MR_FeatureObject; // Defined in `#include <MRCMesh/MRFeatureObject.h>`.
16typedef struct MR_FeatureObjectProjectPointResult MR_FeatureObjectProjectPointResult; // Defined in `#include <MRCMesh/MRFeatureObject.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_VisualObject MR_VisualObject; // Defined in `#include <MRCMesh/MRVisualObject.h>`.
20typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object; // Defined in `#include <MRCMisc/std_shared_ptr_MR_Object.h>`.
21typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
22typedef struct MR_std_vector_MR_FeatureObjectSharedProperty MR_std_vector_MR_FeatureObjectSharedProperty; // Defined in `#include <MRCMisc/std_vector_MR_FeatureObjectSharedProperty.h>`.
23typedef struct MR_std_vector_MR_Vector3f MR_std_vector_MR_Vector3f; // Defined in `#include <MRCMisc/std_vector_MR_Vector3f.h>`.
24
25
36
40
45
48
51
55
58
62
65
69
72
76
79
83
89
92
95
100
103
107
112
117
122
127
133
139
146
153
159
165
170
175
181
186
191
192// Returns point considered as base for the feature
197
204
209
210#ifdef __cplusplus
211} // extern "C"
212#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_PlaneObject MR_PlaneObject
Definition MRFeatureObject.h:29
struct MR_Object MR_Object
Definition MRGltf.h:10
MRC_API void MR_PlaneObject_setCenter(MR_PlaneObject *_this, const MR_Vector3f *center, const MR_ViewportId *id)
MRC_API const MR_ObjectChildrenHolder * MR_PlaneObject_UpcastTo_MR_ObjectChildrenHolder(const MR_PlaneObject *object)
MRC_API const MR_FeatureObject * MR_PlaneObject_UpcastTo_MR_FeatureObject(const MR_PlaneObject *object)
MRC_API MR_PlaneObject * MR_PlaneObject_DefaultConstructArray(size_t num_elems)
MRC_API MR_std_shared_ptr_MR_Object * MR_PlaneObject_shallowClone(const MR_PlaneObject *_this)
MRC_API MR_FeatureObjectProjectPointResult * MR_PlaneObject_projectPoint(const MR_PlaneObject *_this, const MR_Vector3f *point, const MR_ViewportId *id)
MRC_API MR_ObjectChildrenHolder * MR_PlaneObject_MutableUpcastTo_MR_ObjectChildrenHolder(MR_PlaneObject *object)
Upcasts an instance of MR::PlaneObject to its base class MR::ObjectChildrenHolder.
MRC_API float MR_PlaneObject_getSizeX(const MR_PlaneObject *_this, const MR_ViewportId *id)
MRC_API const MR_Object * MR_PlaneObject_UpcastTo_MR_Object(const MR_PlaneObject *object)
MRC_API const char * MR_PlaneObject_TypeName(void)
Generated from a method of class MR::PlaneObject named TypeName.
MRC_API MR_Vector3f MR_PlaneObject_getBasePoint(const MR_PlaneObject *_this, const MR_ViewportId *id)
MRC_API MR_Vector3f MR_PlaneObject_getCenter(const MR_PlaneObject *_this, const MR_ViewportId *id)
MRC_API const MR_std_vector_MR_FeatureObjectSharedProperty * MR_PlaneObject_getAllSharedProperties(const MR_PlaneObject *_this)
MRC_API MR_PlaneObject * MR_PlaneObject_DefaultConstruct(void)
MRC_API MR_Object * MR_PlaneObject_MutableUpcastTo_MR_Object(MR_PlaneObject *object)
Upcasts an instance of MR::PlaneObject to its base class MR::Object.
MRC_API void MR_PlaneObject_setNormal(MR_PlaneObject *_this, const MR_Vector3f *normal, const MR_ViewportId *id)
MRC_API MR_PlaneObject * MR_PlaneObject_OffsetMutablePtr(MR_PlaneObject *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 float MR_PlaneObject_getSize(const MR_PlaneObject *_this, const MR_ViewportId *id)
MRC_API MR_std_string * MR_PlaneObject_getClassNameInPlural(const MR_PlaneObject *_this)
MRC_API MR_std_shared_ptr_MR_Object * MR_PlaneObject_clone(const MR_PlaneObject *_this)
MRC_API void MR_PlaneObject_Destroy(const MR_PlaneObject *_this)
Destroys a heap-allocated instance of MR_PlaneObject. Does nothing if the pointer is null.
MRC_API MR_FeatureObject * MR_PlaneObject_MutableUpcastTo_MR_FeatureObject(MR_PlaneObject *object)
Upcasts an instance of MR::PlaneObject to its base class MR::FeatureObject.
MRC_API const MR_PlaneObject * MR_PlaneObject_OffsetPtr(const MR_PlaneObject *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_PlaneObject_setSizeY(MR_PlaneObject *_this, float size, const MR_ViewportId *id)
MRC_API const char * MR_PlaneObject_typeName(const MR_PlaneObject *_this)
MRC_API const MR_VisualObject * MR_PlaneObject_UpcastTo_MR_VisualObject(const MR_PlaneObject *object)
MRC_API MR_Vector3f MR_PlaneObject_getNormal(const MR_PlaneObject *_this, const MR_ViewportId *id)
MRC_API MR_PlaneObject * MR_PlaneObject_ConstructFromAnother(MR_PassBy _other_pass_by, MR_PlaneObject *_other)
MRC_API MR_PlaneObject * MR_PlaneObject_Construct(const MR_std_vector_MR_Vector3f *pointsToApprox)
MRC_API float MR_PlaneObject_getSizeY(const MR_PlaneObject *_this, const MR_ViewportId *id)
MRC_API MR_VisualObject * MR_PlaneObject_MutableUpcastTo_MR_VisualObject(MR_PlaneObject *object)
Upcasts an instance of MR::PlaneObject to its base class MR::VisualObject.
MRC_API void MR_PlaneObject_setSize(MR_PlaneObject *_this, float size, const MR_ViewportId *id)
MRC_API void MR_PlaneObject_setSizeX(MR_PlaneObject *_this, float size, const MR_ViewportId *id)
MRC_API MR_Matrix3f MR_PlaneObject_calcLocalBasis(const MR_PlaneObject *_this, const MR_ViewportId *id)
MRC_API void MR_PlaneObject_DestroyArray(const MR_PlaneObject *_this)
Destroys a heap-allocated array of MR_PlaneObject. Does nothing if the pointer is null.
MRC_API MR_std_string * MR_PlaneObject_getClassName(const MR_PlaneObject *_this)
MRC_API MR_PlaneObject * MR_PlaneObject_AssignFromAnother(MR_PlaneObject *_this, MR_PassBy _other_pass_by, MR_PlaneObject *_other)
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11
size_t size() const
Definition MRMatrix3.h:58
Definition MRVector3.h:51
Definition MRViewportId.h:18