GraphicsPoint.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
11 
15 struct GEOMDLLIMPEXP GraphicsPoint
16 {
20  double a;
22  int mask;
24  int userData;
26  double b;
28  size_t index;
29 
31 GraphicsPoint ();
33 GraphicsPoint (DPoint4dCR point, double a = 0.0, int userData = 0, int mask = 0, double b = 0.0, size_t index = 0);
35 GraphicsPoint (DPoint3dCR point, double w = 1.0, double a = 0.0, int userData = 0, int mask = 0, double b = 0.0, size_t index = 0);
37 GraphicsPoint (double x, double y, double z = 0.0, double w = 1.0, double a = 0.0, int userData = 0, int mask = 0, double b = 0.0, size_t = 0);
38 
39 
43 void SetPointPreserveWeight (DPoint4dCR inputPoint);
44 
46 bool SetOrder(int order);
48  int GetOrder() const;
49 
51 int GetCurveType () const;
53 int GetPointType () const;
55 bool CheckCurveAndPointType (int curveType, int pointType) const;
56 
58 bool IsCurveBreak () const;
59 
61 bool IsLoopBreak () const;
62 
64 void SetCurveBreak (bool value = true);
66 void SetLoopBreak (bool value = true);
72 bool GetNormalized (DPoint3dR xyz) const;
73 
75 void Zero ();
76 };
#define END_BENTLEY_GEOMETRY_NAMESPACE
Definition: Bentley.r.h:30
4d point coordinates.
Definition: dpoint4d.h:17
int userData
integer value available for application use.
Definition: GraphicsPoint.h:24
struct DPoint3d & DPoint3dR
Definition: msgeomstructs_typedefs.h:79
double a
double value available for application use.
Definition: GraphicsPoint.h:20
int mask
integer mask used by GraphicsPointArray internals.
Definition: GraphicsPoint.h:22
DPoint4d point
Homogeneous point.
Definition: GraphicsPoint.h:18
A point with markup fields.
Definition: GraphicsPoint.h:15
#define BEGIN_BENTLEY_GEOMETRY_NAMESPACE
Definition: Bentley.r.h:29
struct DPoint3d const & DPoint3dCR
Definition: msgeomstructs_typedefs.h:79
struct DPoint4d const & DPoint4dCR
Definition: msgeomstructs_typedefs.h:96
double b
double value used by the GraphicsPointArray internals.
Definition: GraphicsPoint.h:26
size_t index
integer value used by GraphcisPointArray internals.
Definition: GraphicsPoint.h:28

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.