CFx SDK Documentation
2023 SP0
SDK
CFx
dd_inc
Gi
GiClipBoundary.h
Go to the documentation of this file.
1
// Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3
// All rights reserved.
4
//
5
// This software and its documentation and related materials are owned by
6
// the Alliance. The software may only be incorporated into application
7
// programs owned by members of the Alliance, subject to a signed
8
// Membership Agreement and Supplemental Software License Agreement with the
9
// Alliance. The structure and organization of this software are the valuable
10
// trade secrets of the Alliance and its suppliers. The software is also
11
// protected by copyright law and international treaty provisions. Application
12
// programs incorporating this software must include the following statement
13
// with their copyright notices:
14
//
15
// This application incorporates Teigha(R) software pursuant to a license
16
// agreement with Open Design Alliance.
17
// Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18
// All rights reserved.
19
//
20
// By use of this software, its documentation or related materials, you
21
// acknowledge and accept the above terms.
23
24
#ifndef _GI_CLIP_BOUNDARY_H_INCLUDED_
25
#define _GI_CLIP_BOUNDARY_H_INCLUDED_
26
27
#include "
TD_PackPush.h
"
28
29
#include "
Gi/GiExport.h
"
30
#include "
RxObject.h
"
31
#include "
Ge/GePoint2dArray.h
"
32
#include "
Ge/GeVector3d.h
"
33
#include "
Ge/GeMatrix3d.h
"
34
40
struct
OdGiClipBoundary
41
{
42
// FELIX_CHANGE_BEGIN
43
OdGiClipBoundary
()
44
:
m_dFrontClipZ
(0.),
m_dBackClipZ
(0.),
m_bClippingFront
(
false
),
m_bDrawBoundary
(
false
),
m_bClippingBack
(
false
)
45
{
46
}
47
// FELIX_CHANGE_END
48
OdGeVector3d
m_vNormal
;
// Normal vector that defines the plane in which the clip boundary lies.
49
OdGePoint3d
m_ptPoint
;
// Origin of the clip boundary.
50
OdGePoint2dArray
m_Points
;
// Array of points that defines the clip boundary.
51
OdGeMatrix3d
m_xToClipSpace
;
// Transformation matrix from ModelSpace to ClipSpace.
52
OdGeMatrix3d
m_xInverseBlockRefXForm
;
// Transformation matrix from BlockSpace to WorldSpace.
53
double
m_dFrontClipZ
;
// Distance from target point to FrontClip plane.
54
double
m_dBackClipZ
;
// Distance from target point to BackClip plane.
55
bool
m_bClippingFront
;
// Enables front clipping.
56
bool
m_bDrawBoundary
;
// Enables clipping boundary to be drawn.
57
bool
m_bClippingBack
;
// Enables back clipping.
58
};
59
63
ODGI_EXPORT
bool
odgiIsValidClipBoundary
(
const
OdGePoint2dArray
& points);
64
68
ODGI_EXPORT
void
odgiEmptyClipBoundary
(
OdGiClipBoundary
&clipBoundary);
69
70
#include "
TD_PackPop.h
"
71
72
#endif
false
false
Definition:
DimVarDefs.h:165
GeMatrix3d.h
GePoint2dArray.h
GeVector3d.h
odgiIsValidClipBoundary
ODGI_EXPORT bool odgiIsValidClipBoundary(const OdGePoint2dArray &points)
odgiEmptyClipBoundary
ODGI_EXPORT void odgiEmptyClipBoundary(OdGiClipBoundary &clipBoundary)
GiExport.h
ODGI_EXPORT
#define ODGI_EXPORT
Definition:
GiExport.h:35
RxObject.h
TD_PackPop.h
TD_PackPush.h
OdArray< OdGePoint2d, OdMemoryAllocator< OdGePoint2d > >
OdGeMatrix3d
Definition:
GeMatrix3d.h:73
OdGePoint3d
Definition:
GePoint3d.h:55
OdGeVector3d
Definition:
GeVector3d.h:54
OdGiClipBoundary
Definition:
GiClipBoundary.h:41
OdGiClipBoundary::m_bDrawBoundary
bool m_bDrawBoundary
Definition:
GiClipBoundary.h:56
OdGiClipBoundary::m_dFrontClipZ
double m_dFrontClipZ
Definition:
GiClipBoundary.h:53
OdGiClipBoundary::m_bClippingBack
bool m_bClippingBack
Definition:
GiClipBoundary.h:57
OdGiClipBoundary::m_xToClipSpace
OdGeMatrix3d m_xToClipSpace
Definition:
GiClipBoundary.h:51
OdGiClipBoundary::m_Points
OdGePoint2dArray m_Points
Definition:
GiClipBoundary.h:50
OdGiClipBoundary::m_xInverseBlockRefXForm
OdGeMatrix3d m_xInverseBlockRefXForm
Definition:
GiClipBoundary.h:52
OdGiClipBoundary::OdGiClipBoundary
OdGiClipBoundary()
Definition:
GiClipBoundary.h:43
OdGiClipBoundary::m_dBackClipZ
double m_dBackClipZ
Definition:
GiClipBoundary.h:54
OdGiClipBoundary::m_bClippingFront
bool m_bClippingFront
Definition:
GiClipBoundary.h:55
OdGiClipBoundary::m_ptPoint
OdGePoint3d m_ptPoint
Definition:
GiClipBoundary.h:49
OdGiClipBoundary::m_vNormal
OdGeVector3d m_vNormal
Definition:
GiClipBoundary.h:48
Generated on Thu Feb 24 2022 15:09:32